Number of Sets = 128
2 way Set Associative mapping, it means that covering two blocks making 1 set
#f blocks = Total Size of the cache /(Number of sets * set size)
=4K Bytes/(128*2) = 2^12/2^8 = 16 blocks.
Block size = Cache size /#f blocks= 4K Bytes/16 = 256.
Memory Block is addressed with 21 bit.
Tag bit |
Set index |
word/block offset |
6 |
7 |
8 |