GATE Computer ScienceVery hardGATE CSE
A 64-byte direct-mapped cache with 16-byte lines is write-back and write-allocate (line = block mod 4). Accesses (type, byte address) in order: W0, R64, R0, W16, W80, R16, R32, W96, R0, W48, R112, R48. Counting 16 bytes for every line fill and 16 bytes for every write-back of a dirty evicted line (no final flush), how many bytes are exchanged with memory?
- A. 224
- B. 256
- C. 240
- D. 272
Correct answer: C. 240
Simulating line states (valid/dirty) over the 12 accesses gives 15 line transfers = 240 bytes.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A task is split into four pipeline stages with delays 120, 90, 150 and 100 ns, and each pipeline latch adds 10 ns. A non-pipelined…
- A branch with the repeating outcome pattern T, T, T, N (period 4, repeated 10 times, 40 executions) is predicted by a single 2-bit…
- The backward branch of an inner loop executes 10 times per entry (taken 9 times, then not taken once), and the inner loop is entered 20…
- A 256×256 array of 4-byte integers is stored in row-major order starting at address 0. A 16 KB direct-mapped cache has 32-byte lines (512…
- In IEEE 754 single precision with round-to-nearest-even, let x = 2^24 = 16777216. What are the values of (x + 1) + 1 and x + (1 + 1)?
- A 4 KB direct-mapped cache has 32-byte lines. The loop "for i = 0..127: sum += A[i] + B[i]" reads 4-byte integers, A starting at address 0…