GATE Computer ScienceVery hardGATE CSE · NIELIT

In a pipeline with ideal CPI 1, 25% of instructions are loads and 40% of these are immediately followed by a dependent instruction (1 stall cycle even with forwarding). 20% of instructions are branches, 60% of which are taken and cost 2 extra cycles under a predict-not-taken scheme. What is the effective CPI?

  1. A. 1.34
  2. B. 1.44
  3. C. 1.24
  4. D. 1.60

Correct answer: A. 1.34

CPI = 1 + 0.25 × 0.4 × 1 + 0.2 × 0.6 × 2 = 1.34.

More Computer Organization and Architecture questions

Exams that ask this topic