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?
- A. 2 sets; 16 KB pages
- B. 8 sets; 8 KB pages
- C. 2 sets; 8 KB pages
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 64M × 8 DRAM chip uses multiplexed row/column addressing with a square cell array. How many address pins does the chip need (excluding…
- A 16-bit instruction format has 4-bit address fields and expanding opcodes. 14 three-address instructions, 30 two-address instructions and…
- A cache with 4 ns access backs a 120 ns memory. Find the minimum hit ratio for an average access time of at most 14 ns (a) when memory is…
- A 64-byte, 2-way set-associative cache with 8-byte blocks and LRU replacement is empty. The processor reads these byte addresses in order…
- In IEEE 754 single precision with round-to-nearest-even (every operation rounded to single), which of these are true? I. 0.1f + 0.2f ==…
- An 8-bit data word d1…d8 = 1 0 1 1 0 0 1 0 is stored with a 12-bit single-error-correcting Hamming code: positions 1, 2, 4, 8 hold check…