Every Tomasulo-style pipeline tracks five activities:
| Activity | Tomasulo original | Data-in-ROB | Unified physical RF |
|---|---|---|---|
| 1 Rename | Rename table | Rename table | Decode map + committed map |
| 2 Pre-issue operands | Per-unit reservation stations | ROB | UPRF |
| 3 Pre-commit results | None | ROB | UPRF |
| 4 Committed values | ARF | ARF | UPRF |
| 5 Program order | None (no separate commit) | ROB | Separate ROB, no data |
ld x1, (x3) ld P1, (Px) addi x3, x1, #4 addi P2, P1, #4 sub x6, x7, x9 sub P3, Py, Pz add x3, x3, x6 add P4, P2, P3 ld x6, (x1) ld P5, (P1) add x6, x6, x3 add P6, P5, P4 sd x6, (x1) sd P6, (P1) ld x6, (x11) ld P7, (Pw)
ld P1 commits is wrongld P5, (P1) and sd P6, (P1) still read itx1 is P1x1 commitsStart: rename x1→P8, x3→P7, x6→P5, x7→P6 (all present). Free list: P0, P1, P3, P2, P4. LPRd = previous mapping of the destination.
| Instruction | p1 | PR1 | p2 | PR2 | Rd | LPRd | PRd | Rename after |
|---|---|---|---|---|---|---|---|---|
ld x1, 0(x3) | p | P7 | x1 | P8 | P0 | x1→P0 | ||
addi x3, x1, #4 | P0 | x3 | P7 | P1 | x3→P1 | |||
sub x6, x7, x6 | p | P6 | p | P5 | x6 | P5 | P3 | x6→P3 |
add x3, x3, x6 | P1 | P3 | x3 | P1 | P2 | x3→P2 | ||
ld x6, 0(x1) | P0 | x6 | P3 | P4 | x6→P4 |
Reading LPRd needs a third rename-table read port per instruction.
ld x1 executes: writes P0, sets present; broadcasts P0
addi and the second ld (PR1 = P0) set p1ld x1 commits: LPRd = P8 → free list (no one can need old x1 now)addi x3 executes: writes P1; broadcast wakes add (PR1 = P1)addi x3 commits: LPRd = P7 → free listsd x1, (x2) then ld x3, (x4), is x2 == x4?Load bypass: search store buffer and L1 in parallel. Hit in both → use the store buffer. Two buffer matches → use the youngest store older than the load.
sd x1, (x2) ld x3, (x4) # x4 ready long before x2
| Strategy | Rule | Trade-off |
|---|---|---|
| Conservative (MIPS R10K, 16-entry queue) | Run the load only if all older store addresses are known and differ (partial check, e.g. low 12 bits) | Never squashes; stalls whenever any older store address is slow |
| Address speculation | Guess x4 ≠ x2, run now; when the store address arrives, check younger completed loads; match → squash load and everything after | Big win when aliasing is rare; big penalty when wrong |
| Memory dependence prediction (Alpha 21264) | Speculate; on a squash mark the load PC store-wait so it waits next time; clear bits periodically | Speculation without repeated squashes |