Repository navigation
Keep power activity annotations across scan_replace and cluster_flops #12025
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 9 commits into
The-OpenROAD-Project:master
from
The-OpenROAD-Project-staging:or_sta_power_analysis_phase1-bugfix
Nov 3, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2a106b5
keep annotated powers appropriately accross network edits, delete onl…
dsengupta0628 9b22a8d
Merge branch 'master' into or_sta_power_analysis_phase1-bugfix
dsengupta0628 ed14ba7
dbSta, dft, gpl: keep power activity annotations on replaced pins
dsengupta0628 868d3a0
dbSta: copy activity annotations only with the OpenSTA fork
dsengupta0628 313082d
ci: retrigger
dsengupta0628 0943e7e
use sta master now as it has the necessary bugfixes to retain annotat…
dsengupta0628 9a4379f
Merge remote-tracking branch 'origin/master' into or_sta_power_analys…
dsengupta0628 9496d5d
dbSta: drop the STA_OPENROAD_FORK guard in copyUserActivity
dsengupta0628 6ae9da0
dft: regolden scan_replace_activity_sky130 for the new scan cell ranking
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
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,23 @@ | ||
| [INFO ODB-0227] LEF file: sky130hd/sky130hd.tlef, created 13 layers, 25 vias | ||
| [INFO ODB-0227] LEF file: sky130hd/sky130_fd_sc_hd_merged.lef, created 437 library cells | ||
| [INFO ODB-0128] Design: one_cell | ||
| [INFO ODB-0130] Created 4 pins. | ||
| [INFO ODB-0131] Created 1 components and 6 component-terminals. | ||
| [INFO ODB-0133] Created 4 nets and 4 connections. | ||
| Instance ff1 | ||
| Cell: sky130_fd_sc_hd__sdfstp_1 | ||
| Library: sky130_fd_sc_hd_merged | ||
| Path cells: sky130_fd_sc_hd__sdfstp_1 | ||
| Input pins: | ||
| D input port1 | ||
| SCD input (unconnected) | ||
| SCE input (unconnected) | ||
| SET_B input set_b | ||
| CLK input clock | ||
| Output pins: | ||
| Q output output1 | ||
| input 1 | ||
| unannotated 9 | ||
| Annotated pins: | ||
| user ff1/Q | ||
| ff1/Q 2.50000e+07 0.500 user |
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,16 @@ | ||
| # scan_replace keeps the activity annotation of the replaced flop's pins | ||
| source "helpers.tcl" | ||
|
|
||
| read_lef sky130hd/sky130hd.tlef | ||
| read_lef sky130hd/sky130_fd_sc_hd_merged.lef | ||
| read_liberty sky130hd/sky130_fd_sc_hd__tt_025C_1v80.lib | ||
|
|
||
| read_def one_cell_sky130.def | ||
|
|
||
| create_clock -name main_clock -period 2.0000 -waveform {0.0000 1.0000} [get_ports {clock}] | ||
|
|
||
| set_power_activity -pins [get_pins ff1/Q] -activity 0.05 | ||
| scan_replace | ||
| report_instance ff1 | ||
| report_activity_annotation -report_annotated | ||
| puts "ff1/Q [get_property [get_pins ff1/Q] activity]" |
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,37 @@ | ||
| [INFO ODB-0227] LEF file: ./asap7/asap7_tech_1x_201209.lef, created 30 layers, 9 vias | ||
| [INFO ODB-0227] LEF file: ./SingleBit/asap7sc7p5t_28_L_1x_220121a.lef, created 212 library cells | ||
| [INFO ODB-0227] LEF file: ./4BitTrayH4/asap7sc7p5t_DFFHQNV4X.lef, created 9 library cells | ||
| [WARNING IFP-0028] Core area lower left (1.000, 1.000) snapped to (1.026, 1.080). | ||
| [INFO IFP-0001] Added 29 rows of 147 site asap7sc7p5t. | ||
| [INFO IFP-0100] Die BBox: ( 0.000 0.000 ) ( 10.000 10.000 ) um | ||
| [INFO IFP-0101] Core BBox: ( 1.026 1.080 ) ( 8.964 8.910 ) um | ||
| [INFO IFP-0102] Core area: 62.155 um^2 | ||
| [INFO IFP-0103] Total instances area: 1.166 um^2 | ||
| [INFO IFP-0104] Effective utilization: 0.019 | ||
| [INFO IFP-0105] Number of instances: 4 | ||
| Alpha = 40.0, Beta = 1.0, #paths = 0, max size = -1 | ||
| Total ILP Cost: 112.644 | ||
| Total Timing Critical Path Displacement: 0.0 | ||
| Average slot-to-flop displacement: 1.730 | ||
| Final Objective Value: 112.644 | ||
| Sizes used | ||
| 4-bit: 1 | ||
| input 8 | ||
| unannotated 10 | ||
| Annotated pins: | ||
| user _tray_size4_7/D0 | ||
| user _tray_size4_7/D1 | ||
| user _tray_size4_7/D2 | ||
| user _tray_size4_7/D3 | ||
| user _tray_size4_7/QN0 | ||
| user _tray_size4_7/QN1 | ||
| user _tray_size4_7/QN2 | ||
| user _tray_size4_7/QN3 | ||
| _tray_size4_7/D0 8.00000e+07 0.500 user | ||
| _tray_size4_7/D1 7.00000e+07 0.500 user | ||
| _tray_size4_7/D2 5.00000e+07 0.500 user | ||
| _tray_size4_7/D3 6.00000e+07 0.500 user | ||
| _tray_size4_7/QN0 4.00000e+07 0.500 user | ||
| _tray_size4_7/QN1 3.00000e+07 0.500 user | ||
| _tray_size4_7/QN2 1.00000e+07 0.500 user | ||
| _tray_size4_7/QN3 2.00000e+07 0.500 user |
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,41 @@ | ||
| # cluster_flops keeps the activity annotation of each flop pin on its tray pin | ||
| source helpers.tcl | ||
|
|
||
| read_lef ./asap7/asap7_tech_1x_201209.lef | ||
| read_lef ./SingleBit/asap7sc7p5t_28_L_1x_220121a.lef | ||
| read_liberty ./SingleBit/asap7sc7p5t_SEQ_LVT_TT_nldm_220123.lib | ||
| read_lef ./4BitTrayH4/asap7sc7p5t_DFFHQNV4X.lef | ||
| read_liberty ./4BitTrayH4/asap7sc7p5t_DFFHQNV4X_LVT_TT_nldm_FAKE.lib | ||
|
|
||
| read_verilog ./mbff_orig_name.v | ||
| link_design tray_test | ||
|
|
||
| initialize_floorplan -die_area "0 0 10 10" \ | ||
| -core_area "1 1 9 9" \ | ||
| -site asap7sc7p5t | ||
|
|
||
| place_inst -name ff1 -origin {6 6} -status PLACED | ||
| place_inst -name ff2 -origin {4 6} -status PLACED | ||
| place_inst -name ff3 -origin {4 4} -status PLACED | ||
| place_inst -name ff4 -origin {6 4} -status PLACED | ||
|
|
||
| create_clock -name clk -period 1000 [get_ports clk1] | ||
|
|
||
| set_power_activity -pins [get_pins ff1/QN] -activity 0.01 | ||
| set_power_activity -pins [get_pins ff2/QN] -activity 0.02 | ||
| set_power_activity -pins [get_pins ff3/QN] -activity 0.03 | ||
| set_power_activity -pins [get_pins ff4/QN] -activity 0.04 | ||
| set_power_activity -pins [get_pins ff1/D] -activity 0.05 | ||
| set_power_activity -pins [get_pins ff2/D] -activity 0.06 | ||
| set_power_activity -pins [get_pins ff3/D] -activity 0.07 | ||
| set_power_activity -pins [get_pins ff4/D] -activity 0.08 | ||
|
|
||
| cluster_flops -tray_weight 40.0 \ | ||
| -timing_weight 1.0 \ | ||
| -max_split_size -1 \ | ||
| -num_paths 0 | ||
|
|
||
| report_activity_annotation -report_annotated | ||
| foreach pin [get_pins {_tray_size4_*/D* _tray_size4_*/QN*}] { | ||
| puts "[get_full_name $pin] [get_property $pin activity]" | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.