GATE Computer ScienceHardGATE CS · ISRO
A write-back, write-allocate, direct-mapped cache has 4 one-block lines (line = block number mod 4) and starts empty. The block accesses in order are W0, R4, W8, R0, W4, R12, W0, R8, W12, R4 (W = write, R = read). How many dirty blocks are written back to memory during the sequence, not counting those still dirty in the cache at the end?
- A. 6
- B. 7
- C. 5
- D. 4
Correct answer: C. 5
All the blocks map to line 0; each replacement of a dirty block causes one write-back, and the simulation gives 5.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A memory has 4 low-order interleaved banks, each needing 40 ns per access, and the bus can start a new bank access every 10 ns. Starting…
- A 7-bit even-parity Hamming codeword (bit positions 1 to 7, parity bits at positions 1, 2 and 4) is received as 1010110 (position 1…
- In a pipeline with ideal CPI 1, 25% of instructions are loads and 40% of these are immediately followed by a dependent instruction (1…
- A fully associative cache with FIFO replacement sees the block references 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many misses occur with 3…
- 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…
- In IEEE 754 single precision with round-to-nearest-even, the value 0.1 (itself rounded to single precision) is added to an accumulator…