retagged by
7,632 views
19 votes
19 votes
Consider a set-associative cache of size $\text{2KB (1KB} =2^{10}$ bytes$\text{)}$ with cache block size of $64$ bytes. Assume that the cache is byte-addressable and a $32$ -bit address is used for accessing the cache. If the width of the tag field is $22$ bits, the associativity of the cache is _________
retagged by

5 Answers

0 votes
0 votes
Calculate Tag size in Direct Mapping = MM Size/CM size

MM = 2^32

CM = 2^11

DM TAG = 2^32/2^11 = 2^21 = 21 bit

SET Associative tag  = DM tag + log base 2 N-way

22 = 21 + log base 2 N-way

N-way = 2

that's the answer.

 
Answer:

Related questions