GATE Computer ScienceModerateGATE CS (PYQ pattern)

A virtually indexed, physically tagged L1 cache has 64-byte blocks, 4 KB pages and must avoid synonym (aliasing) problems with no OS help. What is the largest 8-way set-associative cache size possible, and the least associativity required for a 64 KB cache?

  1. A. 64 KB; 16-way
  2. B. 32 KB; 16-way
  3. C. 32 KB; 8-way
  4. D. 4 KB; 16-way

Correct answer: B. 32 KB; 16-way

Index + offset must fit in the 12-bit page offset, so size ≤ associativity × page size: 8 × 4 KB = 32 KB; a 64 KB cache needs 64 KB / 4 KB = 16 ways.

More Computer Organization and Architecture questions

Exams that ask this topic