Skip to content
Tactiverge
DC-06✦ Level 5 · Research EngineerComputer Architecture and Digital SystemsProgramming and Computational EngineeringEngineering Research, Economics and Design

Pick your pipeline

Which processor upgrades are worth their hardware?

The brief

For a fixed workload of 1000 instructions (30 % dependent, 15 % branches, 60 % of them taken), choose forwarding and branch resolution so the 5-stage pipeline averages at most 1.3 clocks per instruction, with the least extra hardware.

You start from

A 5-stage pipeline with no forwarding and a 3-clock taken-branch penalty: CPI near 1.9, so nearly half its clocks are wasted.

Constraints

  • CPI ≤ 1.30

    The product needs at least 77 % of the ideal pipelined throughput.

The lab

Runs in your browser · Pipeline throughput vs hazard rate

1 · Change the design

0–1

Forwarding paths remove most data-hazard stalls, at the cost of multiplexers and wires.

0–3 clocks

Resolving branches earlier cuts the flush penalty, but needs a comparator and adder earlier in the pipe.

Fixed by the brief: Instructions executed = 1000; Hazard rate = 0.3000; Share of hazards after a load = 0.2500; Branch rate = 0.1500; Taken fraction = 0.6000.

Live check against the constraints

  • CPI✗ miss · 1.87 ≤ 1.30
Record a design to start your trade-off plot: Extra hardware (units) against CPI (clocks per instruction).

3 · Your attempts

No designs recorded yet. Run the starting design first: it is your baseline.

What does your chosen design give up compared with your other valid designs, and why is that the right trade? Quote numbers.

Name two assumptions of the model that could change your decision in the real world, and how you would test one.

6 · Submit

Choose a design in the attempts table. Saving needs an account; every attempt is re-run on the server and your work stays private to you.

Experiments to try

  1. 1. Iron law

    Execution time = instructions × CPI × clock period. If forwarding stretched the clock period by 5 %, would it still be worth it? Use your numbers.

  2. 2. Where do the stalls come from?

    Split the stalls into data and control for each design. Which upgrade attacks which kind?

The trade-offs

  • Forwarding is the biggest single win for dependent code; early branch resolution helps branch-heavy code.
  • The hardware proxy is a teaching device: real costs depend on the design and the process.

What to submit

  • Your chosen design (one of your attempts; the server re-runs it).
  • Every attempt you made, so the server can check your exploration.
  • A trade-off justification: what your design gives up and why (100–300 words).
  • A technical reflection: two model assumptions that could change your decision.

Rubric

  • Meets every constraintObjective · re-checked on the server

    The submitted design meets every constraint when the server re-runs the model on every challenge seed.

    Engineering design

  • Explored the design spaceObjective · re-checked on the server

    At least five distinct designs were tried, so the choice is informed rather than lucky.

    Experimental reasoning

  • Found more than one valid designObjective · re-checked on the server

    At least two distinct designs meet every constraint, so there is a real choice to justify.

    Engineering design

  • Justifies the trade-offNeeds a qualified reviewer

    Explains, with numbers from the attempts, what the chosen design gives up compared with the other valid designs, and why that is the right trade for the stated user.

    Engineering design

  • Knows the model's limitsNeeds a qualified reviewer

    Names at least two assumptions of the model that could change the decision in the real world, and how one could be tested.

    Conceptual understanding

  • Communicates clearlyNeeds a qualified reviewer

    A stranger could repeat the reasoning from the write-up: units on every number, one idea per sentence, the decision stated first.

    Independent inquiry

Lessons that help

The model

Pipeline throughput vs hazard rate: a simplified educational model, not a digital twin.

  • Every stage takes exactly one time unit; there is no pipeline-register overhead.
  • Every hazard is between neighbouring instructions (distance 1).
  • Branches are predicted not-taken and resolved in EX.
  • No structural hazards, cache misses or interrupts.
  • Counts are rounded to whole instructions, so results are whole clocks.

Open it on the full Experiment Bench · Silicon Studio

Concepts

Part of Build a Computer.

Content status: technically checked (automated checks only). Not yet reviewed by an educator.