Repository navigation
flow: retime after global placement with PLACE_RETIME - #4904
paolopedroso wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the PLACE_RETIME flow variable, which runs the OpenROAD retime command after global placement to move registers across gates on failing paths. Since retiming alters the netlist's combinational equivalence, the PR also disables logic equivalence checking (LEC_CHECK) across several design configurations and updates the OpenROAD submodule. The reviewer suggested a valuable improvement to automatically disable LEC_CHECK when PLACE_RETIME is active by modifying its default value in variables.yaml, which would simplify the configuration files and prevent potential flow failures from manual omission.
retime places the cells it creates and re-estimates the parasitics of the nets it changes, so no placement or estimate_parasitics follows it. Signed-off-by: Paolo Pedroso <[email protected]>
asap7 gcd, ibex and tinyRocket, gt2n aes, nangate45 tinyRocket and sky130hd aes: designs where retime finds moves, so that CI shows its effect. Signed-off-by: Paolo Pedroso <[email protected]>
tools/OpenROAD points at the head of The-OpenROAD-Project/OpenROAD#12304, which adds retime. It goes back to a master commit once that PR merges. Signed-off-by: Paolo Pedroso <[email protected]>
0fb3bfa to
dafdeb6
Compare
🔍 QoR checkMetrics reflect the PR merge build — i.e. what will land on the target branch. Commit 62 design(s) checked — 15 with regression(s), 1 without a comparable baseline. ✅ QoR is compared against the master build at this PR's merge base ❌ asap7/chi_async_bridge base — 3 failing metric(s)
❌ asap7/ethmac_lvt base — 2 failing metric(s)
❌ asap7/gcd base — 1 failing metric(s)
❌ asap7/gcd-ccs base — 1 failing metric(s)
❌ asap7/uart base — 3 failing metric(s)
❌ ihp-sg13g2/spi base — 1 failing metric(s)
❌ nangate45/aes base — 2 failing metric(s)
❌ nangate45/swerv base — 1 failing metric(s)
❌ sky130hd/aes base — 1 failing metric(s)
❌ sky130hd/chameleon base — 4 failing metric(s)
❌ sky130hd/jpeg base — 2 failing metric(s)
❌ sky130hd/microwatt base — 1 failing metric(s)
❌ sky130hs/aes base — 1 failing metric(s)
❌ sky130hs/jpeg base — 1 failing metric(s)
❌ sky130hs/riscv32i base — 1 failing metric(s)
|
| log_cmd estimate_parasitics | ||
|
|
||
| if { $::env(PLACE_RETIME) } { | ||
| log_cmd retime |
There was a problem hiding this comment.
CLUSTER_FLOPS re-runs log_cmd estimate_parasitics, shouldn't this be done here?
There was a problem hiding this comment.
retime already updates the parasitics before returning
| log_cmd cluster_flops {*}[env_var_or_empty CLUSTER_FLOPS_ARGS] | ||
| log_cmd estimate_parasitics | ||
| } | ||
|
|
There was a problem hiding this comment.
It would be nice if we could just run log_cmd estimate_parasitics unconditionally here and OpenROAD figured out if should be a no-op having been run above without any further changes, it would avoid iffy tcl
There was a problem hiding this comment.
That would simplify the Tcl. Right now, estimate_parasitics reruns the full placement estimate even when nothing changed.
Signed-off-by: Paolo Pedroso <[email protected]>
Signed-off-by: Paolo Pedroso <[email protected]>
Signed-off-by: Paolo Pedroso <[email protected]>
Summary
Adds
PLACE_RETIME, which runs the OpenROADretimecommand (The-OpenROAD-Project/OpenROAD#12304) in global placement, afterestimate_parasiticsand beforecluster_flops.retimemoves registers forward across gates on paths that fail timing, places the cells it creates and re-estimates the parasitics of the nets it changes, so nothing has to run after it.Retiming makes the final netlist no longer combinationally equivalent to the synthesis netlist, so the designs that set
PLACE_RETIMEalso setLEC_CHECKto 0.Type of Change
Impact
PLACE_RETIMEdefaults to 0. It needs an OpenROAD withretime. Until The-OpenROAD-Project/OpenROAD#12304 merges, the last commit pointstools/OpenROADat its head so that CI can run it. That commit is dropped once ORFS's own OpenROAD update bringsretimein, and this PR stays a draft until then.Verification
tclint,tclfmtandyamlfixpass, anddocs/user/FlowVariables.mdis regenerated fromvariables.yaml.These designs set
PLACE_RETIME, so their QoR in this PR's CI shows its effect:ASAP7
gcd-ccsalso inherits the setting from ASAP7gcd.