Question discussion

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 si…

3687Medium DSSSB TGT Computer Science 0 replies 2 views
0

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:

  • A22
  • B24
  • C25
  • D23
Correct answer: A

Explanation

32 GB = 235, so the physical address has 35 bits. Block size 1 KB gives 10 offset bits. The cache has 32 blocks, which in 4-way sets gives 8 sets, i.e. 3 index bits. Tag = 35 − 3 − 10 = 22 bits.

Discussion 0

Nobody has replied yet. Start the discussion!