Skip to content

Remove redundant STA calls in RepairDesign - #10744

Merged
maliberty merged 8 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:test-resizer6-apply
Jul 14, 2026
Merged

maliberty merged 8 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:test-resizer6-apply

Conversation

@dsengupta0628

Copy link
Copy Markdown
Contributor

Summary

Cleans up redundant STA calls in the resizer's RepairDesign, continuing the work started in #10480

Changes

  • RepairDesign::performEarlySizingRound / repairDesign: drop redundant searchPreamble() + findAllArrivals(), the explicit findRequireds(drvr->level()+1), the delaysInvalid() call, and the per-net incremental-timing block (ensureLevelized/findDelays/findArrivals). These are consolidated into a single findRequired(drvr) prerequisite in performGainBuffering.
  • performGainBuffering: take the driver Vertex* instead of const Pin* (avoids redundant pin→vertex lookups), and add the explicit findRequired(drvr) needed before vertexWorstSlackPath.
  • Replace manual Vertex::setSlewAnnotated(false, ...) loops with the Sta::unsetAnnotatedSlew(...) API; use RiseFall::range() instead of explicit rise/fall pairs.
  • RepairTargetCollector: route makeExceptionTo and findPathEnds through the Sta API instead of sdc_/search_ directly.

Note: this is the first of two steps. A follow-up will add findRequired inside Sta::vertexWorstSlackPath (the proper place for it), after which the explicit findRequireds/findRequired calls that remain in the resizer can be removed.

Type of Change

  • Refactoring

Impact

None

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
@dsengupta0628 dsengupta0628 self-assigned this Jun 23, 2026
@dsengupta0628
dsengupta0628 marked this pull request as ready for review June 23, 2026 23:54
@dsengupta0628
dsengupta0628 requested a review from a team as a code owner June 23, 2026 23:54

@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 refactors the timing analysis and repair flow in RepairDesign and RepairTargetCollector. Key changes include updating performGainBuffering to accept a sta::Vertex* instead of a sta::Pin*, adding a prerequisite call to sta_->findRequired(drvr), and removing redundant incremental timing updates and arrival/required search calls. Additionally, manual loops for un-annotating slews are replaced with sta_->unsetAnnotatedSlew, and sdc_->makeExceptionTo and search_->findPathEnds are updated to use sta_ equivalents. There are no review comments, so I have no feedback to provide.

@dsengupta0628

Copy link
Copy Markdown
Contributor Author

@dsengupta0628
dsengupta0628 requested review from maliberty and povik June 24, 2026 01:50
@maliberty

Copy link
Copy Markdown
Member

@codex review

@maliberty

Copy link
Copy Markdown
Member

If the CI is ok I don't have anything to add.

@dsengupta0628

Copy link
Copy Markdown
Contributor Author

If the CI is ok I don't have anything to add.

secure CI was fine. Public CI had a small variation in GRT TNS though CF TNS was fine. I created a metric PR The-OpenROAD-Project/OpenROAD-flow-scripts#4308

@dsengupta0628 dsengupta0628 changed the title Remove redundant STA calls in RepairDesign [DO NOT MERGE] Remove redundant STA calls in RepairDesign Jun 25, 2026
@dsengupta0628

Copy link
Copy Markdown
Contributor Author

The dashboard shows each and every ORFS design is slowed down on all steps compared to the baseline commit in ORFS https://github.com/The-OpenROAD-Project-private/OpenROAD-flow-scripts/commit/c9c22caf9bf9cfe46c5a4236c6ec7e7ae9863cc3 :|
Would like to investigate a bit more, why

@precisionmoon precisionmoon 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.

Overall code changes look OK. Were there any regression test changes?

@dsengupta0628

Copy link
Copy Markdown
Contributor Author

Overall code changes look OK. Were there any regression test changes?

This is not right change as is as runtime degrades. Not closing this just yet in case we decide something else. Please see the attached pdf:
STA_resizing_PR10744.pdf

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
@dsengupta0628

Copy link
Copy Markdown
Contributor Author

Okay let us hope this version now does not slow down the designs!! If anything- it should help speedup
http://secure-ci:8080/job/SB/job/secure-test-resizer6-apply/

@dsengupta0628

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cdb9df29ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,74 @@
# Gain buffering sink-required ordering vs incremental STA update discipline.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Register the gain_buffering3 regression

The new test files are never referenced by either test list: src/rsz/test/CMakeLists.txt and src/rsz/test/BUILD both omit gain_buffering3. In this state CI never runs this regression, so the STA/QoR behavior this testcase is meant to guard can regress without signal; please add it to both CMake and Bazel lists.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will add

Comment thread src/rsz/test/gain_buffering3.ok Outdated
0.16 slack (MET)


Error: gain_buffering3.tcl, 57 couldn't open "gain_buffering3.vok": no such file or directory

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Regenerate the golden from a passing test run

This checked-in expected log records an OpenROAD Tcl error (couldn't open "gain_buffering3.vok"). The regression wrapper requires exit code 0 before comparing logs, so once the test is registered this golden cannot pass and will stop before validating the gain-buffering output; add the missing .vok/diff or remove that failing path and refresh gain_buffering3.ok from a successful run.

Useful? React with 👍 / 👎.

@dsengupta0628 dsengupta0628 Jul 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh no- need to fix this ok. This was from a previous run I think

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
…tch based fanins for k=1 fast path too

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
@dsengupta0628

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 4fef6fcf0a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@maliberty
maliberty merged commit 1532ac1 into The-OpenROAD-Project:master Jul 14, 2026
16 checks passed
@maliberty
maliberty deleted the test-resizer6-apply branch July 14, 2026 18:14
@dsengupta0628 dsengupta0628 changed the title [DO NOT MERGE] Remove redundant STA calls in RepairDesign Remove redundant STA calls in RepairDesign Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants