edited by
19,456 views
62 votes
62 votes
A cache memory unit with capacity of $N$ words and block size of $B$ words is to be designed. If it is designed as a direct mapped cache, the length of the $\textsf{TAG}$ field is $10$ bits. If the cache unit is now designed as a $16$-way set-associative cache, the length of the $\textsf{TAG}$ field is ____________ bits.
edited by

10 Answers

–1 votes
–1 votes

No of TAG bits in Direct Map Cache : (No. of bits Required for Main Memory Address M)-(number of bits for index I+bits for offset O)

No of TAG bits in 16-way set associative : M -(set bits + offset bits)

number of bits for set : index bits - 4 // 16 way set associative

No of TAG bits in 16-way set associative : M -(index bits - 4 + offset bits)

   : (M-I-O)+4=10+4=14

 

 

Answer:

Related questions