GATE Computer ScienceHardGATE CS (PYQ pattern)
A 16 KB direct-mapped write-back cache has 32-byte blocks; every line stores its data, its tag, one valid bit and one dirty bit, and nothing else. The total storage is 141,312 bits. How much physical memory can the addresses reach?
- A. 4 GB
- B. 16 GB
- C. 8 GB
- D. 128 MB
Correct answer: A. 4 GB
Lines = 16 KB / 32 B = 512, so each line has 141,312 / 512 = 276 bits = 256 data + 2 status + 18 tag. Index = log₂ 512 = 9, offset = 5, so the address is 18 + 9 + 5 = 32 bits → 4 GB. Forgetting both status bits gives a 20-bit tag (16 GB); forgetting only the dirty bit gives 8 GB; leaving out the offset gives 2²⁷ B = 128 MB.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- In a 32-bit ripple-carry adder every full adder produces its carry-out 2 gate delays after its carry-in (inputs a and b are available at t…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) runs: I1: ADD R1, R2, R3; I2: LW R4, 8(R1); I3: AND R5, R4, R1; I4: OR R6, R5, R4; I5: LW…
- A virtually indexed, physically tagged L1 cache has 64-byte blocks, 4 KB pages and must avoid synonym (aliasing) problems with no OS help…
- 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…