Register Renaming and Out-of-Order Execution

Distinguish true data dependencies from name reuse and trace how physical registers hold values that are still in flight.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A reused architectural name need not mean reused storage
  2. A true producer–consumer edge still constrains order

A reused architectural name need not mean reused storage

Suppose an older instruction reads architectural register \(r\) and a later independent instruction writes \(r\). They use the same name but the write need not overwrite the physical storage still needed by the read. On issue, a renaming map can allocate a new physical register for the later definition and give later consumers its new mapping. The older consumer retains its earlier physical source.

A true producer–consumer edge still constrains order

If a consumer needs a particular producer’s result, renaming identifies that result but cannot make it ready before production. A scheduler can choose other ready instructions in the meantime. Physical register capacity and other machine queues bound how much work remains active. Data hazards explain when a produced value becomes usable. Precise exceptions describe which completed values may become architecturally committed.[1][2]

References

  1. RISC-V International, The RISC-V Instruction Set Manual: Unprivileged Architecture ↩
  2. MIT OpenCourseWare, Computation Structures ↩