Skip to content

flow: retime after global placement with PLACE_RETIME - #4904

Draft
paolopedroso wants to merge 6 commits into
The-OpenROAD-Project:masterfrom
paolopedroso:place-retime
Draft

paolopedroso wants to merge 6 commits into
The-OpenROAD-Project:masterfrom
paolopedroso:place-retime

Conversation

@paolopedroso

@paolopedroso paolopedroso commented Nov 28, 2026 •

Copy link
Copy Markdown

Summary

Adds PLACE_RETIME, which runs the OpenROAD retime command (The-OpenROAD-Project/OpenROAD#12304) in global placement, after estimate_parasitics and before cluster_flops. retime moves 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_RETIME also set LEC_CHECK to 0.

Type of Change

  • New feature

Impact

PLACE_RETIME defaults to 0. It needs an OpenROAD with retime. Until The-OpenROAD-Project/OpenROAD#12304 merges, the last commit points tools/OpenROAD at its head so that CI can run it. That commit is dropped once ORFS's own OpenROAD update brings retime in, and this PR stays a draft until then.

Verification

tclint, tclfmt and yamlfix pass, and docs/user/FlowVariables.md is regenerated from variables.yaml.

These designs set PLACE_RETIME, so their QoR in this PR's CI shows its effect:

  • asap7 gcd
  • asap7 ibex
  • asap7 tinyRocket
  • gt2n aes
  • nangate45 tinyRocket
  • sky130hd aes
  • sky130hd ibex
  • sky130hd jpeg
  • sky130hs aes

ASAP7 gcd-ccs also inherits the setting from ASAP7 gcd.

@paolopedroso paolopedroso changed the title Place retime flow: retime after global placement with PLACE_RETIME Nov 28, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread flow/scripts/variables.yaml Resolved
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]>
@openroad-ci

openroad-ci commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

🔍 QoR check

Metrics reflect the PR merge build — i.e. what will land on the target branch.

Commit b011ff8 · Jenkins build #3 · Baseline: build · View build on dashboard

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 58710a4.

❌ asap7/chi_async_bridge base — 3 failing metric(s)
Metric target base delta limit band
cts__timing__setup__tns -8832.470 -4090.800 -115.911% -4908.960 PeriodPadding 20.000%
finish__timing__setup__tns -8478.160 -2000.110 -323.885% -2400.132 PeriodPadding 20.000%
globalroute__timing__setup__tns -7700.870 -3101.360 -148.306% -3721.632 PeriodPadding 20.000%
❌ asap7/ethmac_lvt base — 2 failing metric(s)
Metric target base delta limit band
cts__timing__setup__tns -374.799 -266.602 -40.584% -326.602 PeriodPadding 20.000%
globalroute__timing__setup__tns -360.506 -299.864 -20.223% -359.864 PeriodPadding 20.000%
❌ asap7/gcd base — 1 failing metric(s)
Metric target base delta limit band
detailedroute__route__wirelength 981.000 833.000 17.767% 957.950 Padding 15.000%
❌ asap7/gcd-ccs base — 1 failing metric(s)
Metric target base delta limit band
finish__design__instance__area 53.421 45.665 16.986% 52.514 Padding 15.000%
❌ asap7/uart base — 3 failing metric(s)
Metric target base delta limit band
cts__timing__setup__tns -606.737 -504.285 -20.316% -605.142 PeriodPadding 20.000%
finish__timing__setup__tns -603.038 -479.081 -25.874% -574.897 PeriodPadding 20.000%
globalroute__timing__setup__tns -976.505 -646.982 -50.932% -776.378 PeriodPadding 20.000%
❌ ihp-sg13g2/spi base — 1 failing metric(s)
Metric target base delta limit band
cts__timing__setup__tns -0.523 -0.288 -81.971% -0.448 PeriodPadding 20.000%
❌ nangate45/aes base — 2 failing metric(s)
Metric target base delta limit band
globalroute__timing__setup__tns -1.195 -0.0242 -4830.003% -0.188 PeriodPadding 20.000%
globalroute__timing__setup__ws -0.162 -0.0110 -1371.908% -0.0520 PeriodPadding 5.000%
❌ nangate45/swerv base — 1 failing metric(s)
Metric target base delta limit band
globalroute__timing__setup__tns -282.015 -224.661 -25.529% -269.593 PeriodPadding 20.000%
❌ sky130hd/aes base — 1 failing metric(s)
Metric target base delta limit band
finish__timing__setup__tns -3.801 -1.975 -92.421% -2.695 PeriodPadding 20.000%
❌ sky130hd/chameleon base — 4 failing metric(s)
Metric target base delta limit band
finish__timing__setup__tns -60.082 -9.383 -540.304% -11.260 PeriodPadding 20.000%
finish__timing__setup__ws -1.907 -0.455 -318.805% -0.605 PeriodPadding 5.000%
globalroute__antenna_diodes_count 711.000 272.000 161.397% 272.272 Metric 0.100%
globalroute__timing__setup__tns -17.512 -2.605 -572.253% -3.205 PeriodPadding 20.000%
❌ sky130hd/jpeg base — 2 failing metric(s)
Metric target base delta limit band
globalroute__antenna_diodes_count 244.000 68.000 258.824% 100.000 Metric 0.100%
globalroute__timing__setup__tns -48.081 -38.625 -24.482% -46.350 PeriodPadding 20.000%
❌ sky130hd/microwatt base — 1 failing metric(s)
Metric target base delta limit band
globalroute__antenna_diodes_count 5618.000 2342.000 139.880% 2344.342 Metric 0.100%
❌ sky130hs/aes base — 1 failing metric(s)
Metric target base delta limit band
globalroute__antenna_diodes_count 104.000 53.000 96.226% 100.000 Metric 0.100%
❌ sky130hs/jpeg base — 1 failing metric(s)
Metric target base delta limit band
globalroute__antenna_diodes_count 226.000 56.000 303.571% 100.000 Metric 0.100%
❌ sky130hs/riscv32i base — 1 failing metric(s)
Metric target base delta limit band
cts__timing__setup__tns -9.607 -7.740 -24.114% -9.288 PeriodPadding 20.000%

log_cmd estimate_parasitics

if { $::env(PLACE_RETIME) } {
log_cmd retime

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLUSTER_FLOPS re-runs log_cmd estimate_parasitics, shouldn't this be done here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retime already updates the parasitics before returning

log_cmd cluster_flops {*}[env_var_or_empty CLUSTER_FLOPS_ARGS]
log_cmd estimate_parasitics
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would simplify the Tcl. Right now, estimate_parasitics reruns the full placement estimate even when nothing changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants