RISC, CISC and Pipelining
Overlapped fetch, decode, operand fetch, execute and write back finish one instruction every clock cycle, until a long instruction, a waiting operand or an interrupt breaks the flow.
↺
A Level
Can five instructions work at once?
Tap or drag each instruction into IF, then press Tick so all five units work together.
Instructions
Program order in instruction memory
01
02
03
04
ADD destination, source, sourceA → B → C → DGoal: same result · no register waits
Clock
Not startedProcessor
Before the first cycleGeneral-purpose registers contain their starting values.
Clock cycles
Clock has not started.
Dashed cells: the instruction stayed in that stage.
A simplified five-stage teaching processor with chosen instruction costs. Programs do not branch; there is no forwarding. Real processors differ.