Skip to content

Update OpenROAD: rsz buffer core-area clamping fix - #4183

Merged
maliberty merged 12 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:secure-update-openroad-rsz-core-clamp
Apr 27, 2026
Merged

maliberty merged 12 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:secure-update-openroad-rsz-core-clamp

Conversation

@openroad-ci

Copy link
Copy Markdown
Member

Summary

Update OpenROAD submodule to include the fix for RSZ-inserted buffers landing outside the core area, causing DPL legalization failures.

  • RSZ wire repeaters, hold/setup buffers, and port buffers are now clamped to the core bounding box at insertion time
  • Prevents DPL legalization failures on designs with die-core gaps where BTerms sit at the die edge

QoR accommodations for clamp-driven shifts

Clamping port buffers changes placement/routing characteristics; a few public designs now sit outside the pre-clamp thresholds. Rules and one density knob adjusted to match the new reality:

  • designs/nangate45/jpeg/rules-base.json: finish__timing__setup__ws -0.144 → -0.152 (measured -0.151)
  • designs/asap7/mock-alu/rules-base.json: 3 setup-TNS thresholds relaxed (cts/globalroute/finish) to match measured regressions (~0.5-1% headroom)
  • designs/nangate45/swerv/config.mk: PLACE_DENSITY_LB_ADDON 0.25 → 0.20 to relieve GRT-0116 congestion caused by clamped port-buffer local density

CI methodology

CI runs against the isolated OR branch (ORFS-master's OR pointer + clamp only, no unrelated drift) so QoR deltas are attributable to the clamp alone.

Dependency

Type of Change

  • Submodule update (bug fix in OpenROAD)
  • Threshold rebase on affected public designs

Impact

  • Designs with die-core gaps will no longer see DPL failures from out-of-core RSZ buffers
  • Port buffers that previously sat at the die edge are now clamped to core

Verification

  • OpenROAD rsz regression 195/195 pass
  • ORFS integration tests (CI) — isolated-OR test branch passed end-to-end

Related Issues

Fixes The-OpenROAD-Project-private/OpenROAD-flow-scripts#1622

Update OpenROAD submodule to include fix for RSZ-inserted
buffers landing outside core area, causing DPL legalization
failures.

OpenROAD PR: The-OpenROAD-Project-private/OpenROAD#3302

Signed-off-by: minjukim55 <mkim@precisioninno.com>
…oad-rsz-core-clamp

Signed-off-by: minjukim55 <mkim@precisioninno.com>

# Conflicts:
#	tools/OpenROAD
Point OR submodule at secure-rsz-core-clamp-only (ORFS master OR +
squashed clamp commit only, without the naming refactors and
dpl-negotiation-fixes that were bundled in the previous OR pointer).

Rules threshold bumps for the 4 designs confirmed clamp-causal
on the baseline experiment:
- gf12/ca53 base: finish hold TNS -2170 -> -3080
- rapidus2hp/hercules_is_int base: GR+finish hold TNS -0.947 -> -1.5
- rapidus2hp/hercules_is_int verific: cts/GR/finish setup+hold loosened
- rapidus2hp/hercules_idecode verific: cts setup TNS -0.392 -> -0.653

jpeg gf12 intentionally not bumped - expected to PASS now with the
non-clamp OR commits removed (dpl-negotiation-fixes was the suspected
cause of its deterministic -13235.9 / -8677.59 regression).

Signed-off-by: minjukim55 <mkim@precisioninno.com>
Signed-off-by: minjukim55 <mkim@precisioninno.com>
Signed-off-by: minjukim55 <mkim@precisioninno.com>
Signed-off-by: minjukim55 <mkim@precisioninno.com>
Build The-OpenROAD-Project#4 on secure-test-clamp-only-with-rules (isolated OR = ORFS-master
base + clamp only) surfaced new metric failures in designs that passed
on PR The-OpenROAD-Project#1637's build The-OpenROAD-Project#5 (master+drift+clamp). Drift commits were masking
these clamp victims; isolated-OR test exposes them.

asap7/mock-alu (base):
  cts__timing__setup__tns       -14100.0 -> -14400.0  (measured -14317.6)
  globalroute__timing__setup__tns -18100.0 -> -20800.0 (measured -20686.1)
  finish__timing__setup__tns    -15700.0 -> -19100.0  (measured -18956.4)

nangate45/jpeg (base):
  finish__timing__setup__ws     -0.144 -> -0.152     (measured -0.151125)

Margins chosen to slightly exceed measured (~0.5-1%) to absorb run-to-run
variance observed between baseline #1 and The-OpenROAD-Project#2 on same SHA.

Separately: nangate45/swerv hit GRT-0116 congestion error; not a
rules-metric failure, needs different treatment.

Signed-off-by: minjukim55 <mkim@precisioninno.com>
Build The-OpenROAD-Project#4 on secure-test-clamp-only-with-rules surfaced nangate45/swerv
GRT-0116 routing congestion not present on pre-clamp baseline. Clamped
port buffers concentrate local density; with util=65% and addon=0.25 the
target density forces packing too tight for routing.

Formula (flow/scripts/util.tcl:179):
  target_density = util + (1 - util) * addon + 0.01
Before: 0.65 + 0.35 * 0.25 + 0.01 = 0.7475
After:  0.65 + 0.35 * 0.20 + 0.01 = 0.7300

Modest reduction matching gf180/jpeg level. If still congested, drop
further toward sky130hd/jpeg (0.15) or ihp-sg13g2/ibex (0.10).

Signed-off-by: minjukim55 <mkim@precisioninno.com>
OR submodule pointer bump: 44712df461 -> 506b437ff2

The prior squashed clamp commit accidentally included two local CTest
output files under src/rsz/test/Testing/Temporary/ (CTestCostData.txt
and LastTest.log) that should never be tracked. Amended the clamp
commit in OpenROAD repo to drop them and force-pushed to
secure-rsz-instance-outside-core. Bumping the pointer here so ORFS
tracks the clean commit.

No functional change.

Signed-off-by: minjukim55 <mkim@precisioninno.com>
…oad-rsz-core-clamp

Signed-off-by: minjukim55 <mkim@precisioninno.com>

# Conflicts:
#	flow/designs/rapidus2hp/hercules_is_int/rules-verific.json

@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 updates design rules and configuration parameters across several designs, including timing thresholds, area constraints, and instance counts. It also includes a subproject update for OpenROAD. A review comment highlights a potential inconsistency in the hercules_is_int verific rules, where the globalroute setup TNS was updated but the corresponding finish setup TNS was left unchanged, unlike other related metrics in the same file.

},
"globalroute__timing__setup__tns": {
"value": -1190.0,
"value": -1020.0,

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.

medium

The update to globalroute__timing__setup__tns to -1020.0 is inconsistent with finish__timing__setup__tns (line 71), which remains at -1190.0. Since these metrics were identical before and other timing pairs in this file (such as setup/hold WS) were updated in tandem, finish__timing__setup__tns should likely also be updated to -1020.0 to maintain consistency.

…oad-rsz-core-clamp

# Conflicts:
#	flow/designs/asap7/mock-alu/rules-base.json
#	flow/designs/rapidus2hp/hercules_idecode/rules-verific.json
#	flow/designs/rapidus2hp/hercules_is_int/rules-base.json
#	flow/designs/rapidus2hp/hercules_is_int/rules-verific.json
#	tools/OpenROAD
Previous merge had OR pointer at 27fb91548 (rebased onto OR origin/master
HEAD e6afe2abf1, which is 7 commits ahead of the OR pointer that ORFS
master records: 927ca5dfef). That introduces unrelated OR drift into
the ORFS CI run for this PR.

Per the "OR-pointer alignment" guideline, the OR submodule on this
ORFS PR should equal ORFS-master's current OR commit + only this PR's
change. Re-rebased OR onto 927ca5dfef and updated the pointer to the
resulting HEAD (7ac212ca6), which is exactly clamp + testcase on top
of the ORFS-master OR baseline. Clean isolation of the clamp effect
in CI.

Signed-off-by: minjukim55 <mkim@precisioninno.com>
@maliberty
maliberty merged commit cffc79c into The-OpenROAD-Project:master Apr 27, 2026
5 checks passed
@maliberty
maliberty deleted the secure-update-openroad-rsz-core-clamp branch April 27, 2026 23:15
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