A four-way set-associative cache memory unit with a capacity of 32 KB is built using a block size of 1 K. The word length is 8 bits. The size of physical…
A four-way set-associative cache memory unit with a capacity of 32 KB is built using a block size of 1 K. The word length is 8 bits. The size of physical address space is 32 GB. The number of bits for the TAG field is:
Show answerHide answer
Correct answer: (A) 22
Explanation
32 KB / 1 KB = 32 blocks, and with 4 ways that is 8 sets (3 set bits). The block offset is 10 bits and the address is 35 bits (32 GB = 2³⁵ bytes). Tag = 35 − 3 − 10 = 22 bits.