GATE Computer ScienceVery hardGATE CS · ISRO
A virtually indexed cache is 64 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. How many distinct page colours (values of the cache-index bits that lie above the page offset) can occur?
- A. 8
- B. 1
- C. 4
- D. 16
Correct answer: C. 4
Sets = 64K/(4×32) = 512, so index + offset use 14 bits; with a 12-bit page offset, 2 bits come from the page number, giving 2^2 = 4 colours.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- In IEEE 754 single precision with round-to-nearest-even, the value 0.1 (itself rounded to single precision) is added to an accumulator…
- A 16 × 16 unsigned multiplier generates 16 partial products, which are reduced to two rows by a Wallace tree of 3:2 carry-save adders…
- A DMA controller moves a 4 KB block over a 64-bit bus clocked at 100 MHz. Each burst needs 10 cycles of arbitration and then transfers 64…
- A branch is executed 20 times with the outcome pattern T, T, T, N repeated 5 times. A 2-bit saturating counter (states 0–3, predicts taken…
- L1 has a hit time of 1 cycle and a miss rate of 8%. The L2 hit time is 10 cycles and a main-memory access takes 120 cycles. The target…
- A 16-bit instruction has 5-bit address fields and expanding opcodes. There are 40 two-address instructions and 600 one-address…