Simulators

5-stage pipeline simulator

Type a short program. The diagram has one row per instruction and one column per clock cycle through the IF, ID, EX, MEM and WB stages, and shows the stalls a data hazard causes.

The simulator

5-stage pipeline simulator: how to use it

Turn forwarding on and off to see how many stalls it saves, and step through the cycles to fill the diagram in.

Lessons that use it

  • Pipeline hazards (Architecture)When the pipeline cannot simply go on: data hazards and forwarding, the load-use stall, control hazards and branch prediction, and structural hazards.

See also