Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

ideal CPI

The cycles per instruction a pipeline would reach if nothing ever stalled: 1 for a simple pipeline that starts one instruction per cycle.

Ideal CPI is the CPI with no stall or flush cycles; real CPI = ideal CPI + average stall cycles per instruction, summed over structural, data and control hazards (and, from Chapter 27, memory waits).

Examples

  • A five-stage pipeline with no stalls has an ideal CPI of 1.

Read the full section →