GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A write-through, no-write-allocate data cache sends every store to memory. 10% of instructions are stores and 20% are loads (load miss rate 4%, miss penalty 30 cycles). Stores use a write buffer that never fills, so they cost no extra cycles. Ideal CPI is 1.2. What is the CPI?

  1. A. 1.54
  2. B. 1.56
  3. C. 1.44
  4. D. 4.20

Correct answer: C. 1.44

With an unfilled write buffer only load misses stall: 0.2·0.04·30 = 0.24 extra cycles per instruction, CPI = 1.44. Counting stores as potential misses (0.30 · 0.04 · 30) is the trap.

More Computer Organization and Architecture questions

Exams that ask this topic