Repository navigation
Remove redundant STA calls in RepairDesign #10744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maliberty
merged 8 commits into
The-OpenROAD-Project:master
from
The-OpenROAD-Project-staging:test-resizer6-apply
Jul 14, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
fdedc4b
cleanup phase
dsengupta0628 0c0c2fe
Merge branch 'master' into test-resizer6-apply
dsengupta0628 7417235
fix repairtargetcollector slow down
dsengupta0628 5dc6dc2
revert performgainbuffering changes
dsengupta0628 2c5823b
Merge branch 'master' into test-resizer6-apply
dsengupta0628 cdb9df2
restore rsz CMakeLists.txt and README.md mangled by clang-format
dsengupta0628 2b752fc
fix testcase and add bazel
dsengupta0628 4fef6fc
merged with latest master and updated RepairTargetCollector to use la…
dsengupta0628 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| [INFO ODB-0227] LEF file: sky130hd/sky130hd.tlef, created 13 layers, 25 vias | ||
| [INFO ODB-0227] LEF file: sky130hd/sky130hd_std_cell.lef, created 437 library cells | ||
| [WARNING EST-0027] no estimated parasitics. Using wire load models. | ||
| Iteration | Area | Resized | Buffers | Nets repaired | Remaining | ||
| --------------------------------------------------------------------- | ||
| 0 | +1.1% | 0 | 1 | 2 | 53 | ||
| final | +1.1% | 0 | 1 | 2 | 0 | ||
| --------------------------------------------------------------------- | ||
| [INFO RSZ-0038] Inserted 1 buffers in 2 nets. | ||
| Startpoint: f_src (rising edge-triggered flip-flop clocked by clk) | ||
| Endpoint: fa0 (rising edge-triggered flip-flop clocked by clk) | ||
| Path Group: clk | ||
| Path Type: max | ||
|
|
||
| Fanout Delay Time Description | ||
| --------------------------------------------------------------- | ||
| 0.00 0.00 clock clk (rise edge) | ||
| 0.00 0.00 clock network delay (ideal) | ||
| 0.00 0.00 ^ f_src/CLK (sky130_fd_sc_hd__dfxtp_1) | ||
| 1 0.27 0.27 v f_src/Q (sky130_fd_sc_hd__dfxtp_1) | ||
| 2 0.05 0.32 ^ GB/Y (sky130_fd_sc_hd__inv_1) | ||
| 8 0.21 0.53 ^ gain1/X (sky130_fd_sc_hd__buf_1) | ||
| 1 0.08 0.61 v s_thru/Y (sky130_fd_sc_hd__inv_1) | ||
| 8 0.15 0.76 ^ GA/Y (sky130_fd_sc_hd__clkinvlp_2) | ||
| 1 0.05 0.81 v a0/Y (sky130_fd_sc_hd__inv_1) | ||
| 0.00 0.81 v fa0/D (sky130_fd_sc_hd__dfxtp_1) | ||
| 0.81 data arrival time | ||
|
|
||
| 1.00 1.00 clock clk (rise edge) | ||
| 0.00 1.00 clock network delay (ideal) | ||
| 0.00 1.00 clock reconvergence pessimism | ||
| 1.00 ^ fa0/CLK (sky130_fd_sc_hd__dfxtp_1) | ||
| -0.12 0.88 library setup time | ||
| 0.88 data required time | ||
| --------------------------------------------------------------- | ||
| 0.88 data required time | ||
| -0.81 data arrival time | ||
| --------------------------------------------------------------- | ||
| 0.07 slack (MET) | ||
|
|
||
|
|
||
| s_thru/A net: net1 | ||
| d7/A net: nb | ||
| No differences found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # Gain buffering sink-required ordering vs incremental STA update discipline. | ||
| # | ||
| # performGainBuffering() sorts the sinks of each net by required time and | ||
| # buffers the least-critical prefix (bounded here by set_max_fanout 8), so | ||
| # the sink at the group boundary is decided by the required times seen at | ||
| # that moment. Net "nb" has nine sinks: s_thru, whose required path runs | ||
| # through GA and the buffer tree inserted on net "na" earlier in the same | ||
| # early-sizing pass, and d0-d7, whose paths run through private inverter | ||
| # chains. The required times of s_thru and d7 are close enough that the | ||
| # choice of which one joins the buffered group depends on how fresh the | ||
| # delays behind them are (bounded cone refresh vs full findAllArrivals | ||
| # refresh between nets). | ||
| # | ||
| # Expected behavior (no golden files yet -- inspect the output): | ||
| # | ||
| # current code (bounded incremental STA: upfront findAllArrivals seed, | ||
| # per-driver findRequireds(level+1), end-of-net cone-bounded | ||
| # findDelays/findArrivals -- the fdedc4be STA-discipline changes were | ||
| # reverted; see rebuffer_sta_findings.md sections 9-10): | ||
| # - buffered group on nb = {d0..d6, s_thru}: s_thru is buffered, | ||
| # d7 stays directly on nb | ||
| # - report_checks: worst slack 0.07 (endpoint fa0; the nb gain buffer | ||
| # stacks onto the s_thru -> GA -> na path) | ||
| # | ||
| # with a per-net full refresh instead (sta_->findRequired(drvr), as in | ||
| # commit fdedc4be): | ||
| # - buffered group on nb = {d0..d7}: d7 is buffered, | ||
| # s_thru stays directly on nb | ||
| # - report_checks: worst slack 0.16 (endpoint fd7) | ||
| # | ||
| # The 90 ps WNS delta between the two disciplines is the QoR deviation. | ||
| source "helpers.tcl" | ||
| read_lef sky130hd/sky130hd.tlef | ||
| read_lef sky130hd/sky130hd_std_cell.lef | ||
| read_liberty sky130hd/sky130hd_tt.lib | ||
|
|
||
| read_verilog gain_buffering3.v | ||
| link_design top | ||
|
|
||
| create_clock -name clk -period 1.0 [get_ports clk] | ||
|
|
||
| set_dont_use {sky130_fd_sc_hd__probe_* | ||
| sky130_fd_sc_hd__lpflow_* | ||
| sky130_fd_sc_hd__clkdly* | ||
| sky130_fd_sc_hd__dlygate* | ||
| sky130_fd_sc_hd__dlymetal* | ||
| sky130_fd_sc_hd__clkbuf_* | ||
| sky130_fd_sc_hd__bufbuf_* | ||
| sky130_fd_sc_hd__buf_2 | ||
| sky130_fd_sc_hd__buf_4 | ||
| sky130_fd_sc_hd__buf_6 | ||
| sky130_fd_sc_hd__buf_8 | ||
| sky130_fd_sc_hd__buf_12 | ||
| sky130_fd_sc_hd__buf_16 | ||
| sky130_fd_sc_hd__inv_2 | ||
| sky130_fd_sc_hd__inv_4 | ||
| sky130_fd_sc_hd__inv_6 | ||
| sky130_fd_sc_hd__inv_8 | ||
| sky130_fd_sc_hd__inv_12 | ||
| sky130_fd_sc_hd__inv_16} | ||
|
|
||
| set_max_fanout 8 [current_design] | ||
|
|
||
| repair_design -pre_placement | ||
| report_checks -fields {fanout} | ||
|
|
||
| # Show which sink ended up behind the gain buffer (d7 with current code, | ||
| # s_thru with the legacy bounded-refresh code). | ||
| puts "s_thru/A net: [get_full_name [get_nets -of_objects [get_pins s_thru/A]]]" | ||
| puts "d7/A net: [get_full_name [get_nets -of_objects [get_pins d7/A]]]" | ||
|
|
||
| set test_name "gain_buffering3" | ||
| set verilog_file [make_result_file "${test_name}.v"] | ||
| write_verilog $verilog_file | ||
| diff_files ${test_name}.vok $verilog_file | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new test files are never referenced by either test list:
src/rsz/test/CMakeLists.txtandsrc/rsz/test/BUILDboth omitgain_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 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add