GATE Computer ScienceHardGATE CS (PYQ pattern)
A direct-mapped cache has 2 lines of 4 words each. A program writes (once each) to word addresses 0, 4, 8, 12, 16, 20, 24, 28 and never reads or revisits them. Counting block fetches, single-word writes and dirty-block write-backs (no flush at the end), how many transactions are there under (i) write-back + write-allocate and (ii) write-through + no-write-allocate?
- A. (14, 16)
- B. (12, 8)
- C. (8, 14)
- D. (14, 8)
Correct answer: D. (14, 8)
Write-allocate fetches the block for every write miss (8) and later writes back the dirty ones (6); no-write-allocate just forwards each word write (8). Streaming writes with no reuse is the case where write-allocate loses.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A processor encodes branch targets as a 16-bit signed offset relative to the incremented PC in 2-byte instruction units (target = PC + 2 ×…
- A synchronous 100 MHz bus has a multiplexed 32-bit address/data path. A block read takes 1 address cycle, 3 wait cycles, then one data…
- A memory-mapped device in a 32-bit byte-addressed system is selected when A31 = 1, A30 = 1 and A15–A12 = 0101; A3–A0 select one of its 16…
- An 8 KB cache with 16-byte blocks and 32-bit addresses can be built fully associative or 4-way set-associative. How many more tag bits…
- Processor A runs a program at 3.0 GHz with CPI 1.6. Processor B, with the same ISA and the same compiled program, runs at 2.4 GHz. What is…
- A write-back cache has 64-byte blocks, 2 ns hit time and 5% miss rate. Over an 8-byte bus, memory delivers the first 8 bytes 60 ns after a…