GATE Computer ScienceModerateGATE CS (PYQ pattern)
A 16 KB, 4-way set-associative cache with 16-byte blocks uses 32-bit addresses. Its block size is doubled to 32 bytes and, at the same time, its associativity is doubled to 8-way, keeping the capacity. How do the (offset, index, tag) widths change, and how many tag comparators work in parallel afterwards?
- A. offset +1, index −2, tag +1; 8 comparators
- B. offset +1, index −1, tag unchanged; 8 comparators
- C. offset +1, index −2, tag +1; 4 comparators
- D. offset unchanged, index −1, tag +1; 8 comparators
Correct answer: A. offset +1, index −2, tag +1; 8 comparators
Before: offset 4, sets = 16 KB/(4 × 16) = 256 → index 8, tag 20. After: offset 5, sets = 16 KB/(8 × 32) = 64 → index 6, tag 21. So offset +1, index −2, tag +1, and all 8 ways of a set are compared at once. Doubling only the block size would leave the tag unchanged.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A processor's logic takes 60 ns per instruction unpipelined. Split into k stages, the cycle time is 60/k + L ns (L = latch overhead) and…
- A DRAM controller uses an open-page policy: a row-buffer hit costs 15 ns and a miss 45 ns (precharge + activate + column). Under a…
- An in-order 2-issue processor starts up to two consecutive instructions per cycle. The second is issued with the first only if it has no…
- A direct-mapped L1 has hit time 1 cycle and miss rate 5%. A small victim cache catches 30% of the L1 misses at a cost of 2 cycles (instead…
- A 5-stage pipeline with full forwarding has a base CPI of 1. 30% of instructions are loads and half of the loads are immediately followed…
- A 4-way set-associative cache of 64 KB uses 32-byte blocks and 32-bit physical addresses. Each block has one valid bit and one dirty bit…