GATE Computer ScienceModerateGATE CS (PYQ pattern)

A virtually indexed, physically tagged L1 cache is 64 KB, 8-way set-associative with 64-byte blocks, and pages are 4 KB. In how many different sets can copies of one physical block appear (synonyms), and what is the smallest page size that removes the problem without changing the cache?

  1. A. 2 sets; 16 KB pages
  2. B. 8 sets; 8 KB pages
  3. C. 2 sets; 8 KB pages
  4. D. 4 sets; 8 KB pages

Correct answer: C. 2 sets; 8 KB pages

Sets = 64 KB / (8 × 64) = 128 → 7 index + 6 offset = 13 bits, one more than the 12-bit page offset. That one virtual bit lets a block sit in 2¹ = 2 sets. With 8 KB pages the offset is 13 bits and covers the whole index.

More Computer Organization and Architecture questions

Exams that ask this topic