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?
- A. 64 KB; 16-way
- B. 32 KB; 16-way
- C. 32 KB; 8-way
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A disk spins at 6000 rpm with 500 sectors of 512 B per track and 4 recording surfaces. A long file fills whole cylinders in order…
- A direct-mapped cache has 2 lines of 4 words each. The word-address trace is ['W0', 'W1', 'W2', 'W3', 'R0', 'R1', 'W8', 'W9', 'R8', 'R0']…
- Which of the following statements about I/O are correct? I. A DMA controller must become the bus master to transfer data to memory. II. In…
- A physically indexed L2 cache is 2 MB, 8-way set-associative with 64-byte blocks. How many page colours (classes of frames that map to the…
- A multiplexed bus needs 1 address cycle and 3 wait cycles before data. Option P: a 32-bit bus that transfers 4-word bursts (1 + 3 + 4…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file is written in the first half of a cycle and read in…