GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A processor has base CPI 1.2 for non-memory work (60% of instructions) and every load/store (40% of instructions) takes 1 cycle plus memory stalls. The L1 data cache has a 5% miss rate and a 40-cycle miss penalty. Instruction fetch never misses. What is the overall CPI?

  1. A. 1.92
  2. B. 2.00
  3. C. 1.52
  4. D. 3.20

Correct answer: A. 1.92

CPI = 0.6·1.2 + 0.4·(1 + 0.05·40) = 0.72 + 1.2 = 1.92. Adding the stall to all instructions (1.2 + 0.4·2 = 2.0) double-counts the memory-instruction base cycle of 1.

More Computer Organization and Architecture questions

Exams that ask this topic