Skip to guide

Parallel work to precise state

Computer Architecture

See how a modern processor finds parallel work, predicts control flow, executes speculatively, and still presents precise sequential behavior.

Compare architectural tradeoffs with explicit performance models and trace the mechanisms that recover correctness when speculation fails.

Updated July 20265 connected chaptersInteractive labs + worked examples

Core trace · cycle 184

Speculate wide. Commit in order.

Follow four instructions through prediction, physical-register renaming, readiness-driven execution, branch recovery, and the reorder buffer's precise-state boundary.

Fetch 4 μops/cycleIssue 6-wideBranch I3 mispredictRetire in program order
Physical results

Completion order

  1. 01I2 · MULcycle 188
  2. 02I3 · BRcycle 189
  3. 03I0 · LDcycle 196
  4. 04I1 · ADDcycle 197

I2 and I3 finish while older instructions are still pending.

ROB headPrecise-state gateage wins here
Architectural results

Retirement order

  1. 01I0 · LDcycle 197
  2. 02I1 · ADDcycle 198
  3. 03I2 · MULcycle 198
  4. 04I3 · BRcycle 198

The machine exposes the original program order, never completion order.

Reasoning checkpoints

Questions worth answering without notes.

Each answer states the mechanism first, then the consequence.
01Why does register renaming remove WAR and WAW but not RAW dependencies?

WAR and WAW are name collisions: separate physical registers give the independent values different destinations. RAW is a real value dependency, so the consumer must still wait until its producer has generated the operand.

02How can a correctly predicted taken branch still create a bubble?

Correct direction is only half the fetch decision. A missing or late BTB target, an indirect target mismatch, an instruction-cache or TLB miss, or insufficient fetch bandwidth can prevent the front end from delivering target instructions on the next cycle.

03What happens when another core reads a line held in MESI Exclusive state?

The owner observes the read request and downgrades from Exclusive to Shared. The requester receives a clean copy and also enters Shared; memory remains authoritative because the Exclusive copy was not dirty.

Keep practicing

Move from recognition to explanation.

These links open the existing practice bank without publishing protected solutions on this guide.

Continue the system

Connect the adjacent layer.