GATE Computer ScienceHardGATE CS (PYQ pattern)
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'] (R = read, W = write). Count memory transactions as block fetches + single-word writes + dirty-block write-backs, and do not flush dirty blocks at the end. How many transactions occur under (i) write-back with write-allocate and (ii) write-through with no-write-allocate, as (i, ii)?
- A. (6, 9)
- B. (9, 5)
- C. (5, 11)
- D. (5, 9)
Correct answer: D. (5, 9)
(i) WB+WA: block fetches, plus dirty write-backs on eviction (fetch, ww, wb) = (3, 0, 2); (ii) WT+NWA: write misses go straight to memory and every write sends a word: (fetch, ww, wb) = (3, 6, 0). Simulate the two lines block by block.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- A hierarchy has L1 (1 ns), L2 (4 ns), L3 (15 ns) and DRAM (120 ns); each level is accessed only after the previous one misses. Measured…
- A 16 × 16 matrix of 4-byte ints is stored in row-major order from address 0. It is traversed column by column on a direct-mapped 2 KB…