GATE Computer ScienceHardGATE CS (PYQ pattern)

A physically tagged 64 KB, 4-way cache has 64-byte blocks, 48-bit physical addresses and 4 KB pages. How many tag bits does each line store, and how many index bits lie above the 12-bit page offset (so would come from the virtual page number if the cache were virtually indexed)?

  1. A. 40 tag bits; 2 index bits above the page offset
  2. B. 32 tag bits; 2 index bits above the page offset
  3. C. 34 tag bits; 2 index bits above the page offset
  4. D. 34 tag bits; 0 index bits above the page offset

Correct answer: C. 34 tag bits; 2 index bits above the page offset

Sets = 64 KB/(4 × 64) = 256 → 8 index bits + 6 offset bits = 14 bits. Tag = 48 − 14 = 34. The 14 low bits exceed the 12-bit page offset by 2 bits.

More Computer Organization and Architecture questions

Exams that ask this topic