GATE Computer ScienceVery hardGATE CS
A write-back, write-allocate cache is direct mapped with 4 lines of one word (line = address mod 4). Starting empty, it serves these (operation, word address) pairs: R0, W4, R0, W1, R5, W5, R2, W6, R1, W2, R3, R7, W0, R4. Count one memory transaction for every line fill and for every write-back of a dirty line that is evicted (do not flush the cache at the end). How many memory transactions occur?
- A. 12
- B. 19
- C. 13
- D. 17
Correct answer: D. 17
Simulation shows 12 of the 14 accesses miss (12 line fills) and 5 dirty lines are evicted, so 12 + 5 = 17. A write-through no-allocate cache would need 13.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Twenty-eight 32-bit numbers are added with a tree of carry-save adders (3:2 compressors) that reduces every group of three operands to…
- A direct-mapped write-back cache of 8 KB has 64-byte blocks and each block is divided into 4 sub-blocks of 16 bytes with their own valid…
- A loop body occupies the 160 bytes from address 0x1000 to 0x109F and runs 100 iterations. The instruction cache is direct mapped, 128…
- The 16-bit multiplier 0x6DB6 (0110 1101 1011 0110) is used by a Booth multiplier. Radix-2 Booth recoding performs one add or subtract for…
- Machines A and B run four benchmarks with execution times (in seconds) A: 12, 30, 8, 50 and B: 24, 15, 16, 25. Which statement is correct?
- A 32 KB direct-mapped cache has 64-byte blocks and the processor issues 32-bit byte addresses. How many tag bits does each cache line store?