Skip to content

Commit 32a7b94

Browse files
oharboeclaude
andcommitted
Merge origin/master
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2 parents 4716171 + 9e72ee3 commit 32a7b94

10 files changed

Lines changed: 35 additions & 11 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ configuration file.
135135
| <a name="DETAILED_METRICS"></a>DETAILED_METRICS| If set, then calls report_metrics prior to repair operations in the CTS and global route stages| 0|
136136
| <a name="DETAILED_ROUTE_ARGS"></a>DETAILED_ROUTE_ARGS| Add additional arguments for debugging purposes during detail route.| |
137137
| <a name="DETAILED_ROUTE_END_ITERATION"></a>DETAILED_ROUTE_END_ITERATION| Maximum number of iterations.| 64|
138-
| <a name="DETAIL_PLACEMENT_ARGS"></a>DETAIL_PLACEMENT_ARGS| Specify arguments to the detailed_placement call during placement.| |
138+
| <a name="DETAIL_PLACEMENT_ARGS"></a>DETAIL_PLACEMENT_ARGS| Specify arguments to every detailed_placement call: the one in placement and the re-legalizations after clock tree synthesis, after repair in CTS and after the repairs in global route. A legalizer chosen here (-use_diamond_legalizer, -max_displacement) is therefore the one every stage uses.| |
139139
| <a name="DFF_LIB_FILE"></a>DFF_LIB_FILE| Single Liberty file for flip-flop technology mapping (dfflibmap) during synthesis. Takes precedence over DFF_MAP_FILE when set.| |
140140
| <a name="DFF_MAP_FILE"></a>DFF_MAP_FILE| Optional mapping file supplied to Yosys to map D flip-flops| |
141141
| <a name="DIE_AREA"></a>DIE_AREA| The die area specified as a list of lower-left and upper-right corners in microns (X1 Y1 X2 Y2).| |
@@ -523,6 +523,7 @@ configuration file.
523523
- [CTS_SNAPSHOT](#CTS_SNAPSHOT)
524524
- [CTS_SNAPSHOTS](#CTS_SNAPSHOTS)
525525
- [DETAILED_METRICS](#DETAILED_METRICS)
526+
- [DETAIL_PLACEMENT_ARGS](#DETAIL_PLACEMENT_ARGS)
526527
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)
527528
- [LEC_AUX_VERILOG_FILES](#LEC_AUX_VERILOG_FILES)
528529
- [LEC_CHECK](#LEC_CHECK)
@@ -546,6 +547,7 @@ configuration file.
546547

547548
- [CELL_PAD_IN_SITES_DETAIL_PLACEMENT](#CELL_PAD_IN_SITES_DETAIL_PLACEMENT)
548549
- [DETAILED_METRICS](#DETAILED_METRICS)
550+
- [DETAIL_PLACEMENT_ARGS](#DETAIL_PLACEMENT_ARGS)
549551
- [ENABLE_RESISTANCE_AWARE](#ENABLE_RESISTANCE_AWARE)
550552
- [GLOBAL_ROUTE_ARGS](#GLOBAL_ROUTE_ARGS)
551553
- [GLOBAL_ROUTE_USE_CUGR](#GLOBAL_ROUTE_USE_CUGR)

‎flow/designs/asap7/aes-mbff/config.mk‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ export PLATFORM = asap7
33
export DESIGN_NAME = aes_cipher_top
44
export DESIGN_NICKNAME = aes-mbff
55

6+
# ignore unsynthesizable timing controls
7+
export SYNTH_SLANG_ARGS += --ignore-timing
8+
69
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/aes/*.v))
710
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/aes/constraint.sdc
811

‎flow/scripts/cts.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set_placement_padding -global \
4646
-left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \
4747
-right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT)
4848

49-
set result [catch { log_cmd detailed_placement } msg]
49+
set result [catch { detailed_placement_helper } msg]
5050
if { $result != 0 } {
5151
save_progress 4_1_error
5252
error "Detailed placement failed in CTS: $msg"
@@ -71,7 +71,7 @@ if { !$::env(SKIP_CTS_REPAIR_TIMING) } {
7171
run_lec_test 4_rsz 4_before_rsz_lec.v 4_after_rsz_lec.v
7272
}
7373

74-
set result [catch { log_cmd detailed_placement } msg]
74+
set result [catch { detailed_placement_helper } msg]
7575
if { $result != 0 } {
7676
save_progress 4_1_error
7777
error "Detailed placement failed in CTS: $msg"

‎flow/scripts/detail_place.tcl‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ proc do_dpl { } {
1515
set_placement_padding -global \
1616
-left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \
1717
-right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT)
18-
set dpl_args [env_var_or_empty DETAIL_PLACEMENT_ARGS]
19-
log_cmd detailed_placement {*}$dpl_args
18+
detailed_placement_helper
2019

2120
if { $::env(ENABLE_DPO) } {
2221
if { [env_var_exists_and_non_empty DPO_MAX_DISPLACEMENT] } {

‎flow/scripts/global_route.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ proc global_route_helper { } {
9494
# Running DPL to fix overlapped instances
9595
# Run to get modified net by DPL
9696
log_cmd global_route -start_incremental {*}$allow_congestion
97-
log_cmd detailed_placement
97+
detailed_placement_helper
9898
# Route only the modified net by DPL
9999
if {
100100
![run_global_route_and_catch_failures -end_incremental {*}$res_aware \
@@ -115,7 +115,7 @@ proc global_route_helper { } {
115115
}
116116

117117
log_cmd global_route -start_incremental {*}$allow_congestion
118-
log_cmd detailed_placement
118+
detailed_placement_helper
119119
log_cmd check_placement -verbose
120120
# Route only the modified net by DPL
121121
if {

‎flow/scripts/synth.tcl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ if {
143143
synth -flatten -run coarse:fine {*}$synth_full_args
144144
}
145145

146+
# Resolve internal tristates left by the slang frontend ---
147+
if { [env_var_equals SYNTH_HDL_FRONTEND slang] } {
148+
tribuf -logic
149+
opt_clean
150+
}
146151

147152
if { $::env(SYNTH_MOCK_LARGE_MEMORIES) } {
148153
memory_collect

‎flow/scripts/util.tcl‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ proc repair_timing_helper { args } {
4545
log_cmd repair_timing {*}$additional_args
4646
}
4747

48+
# Every detailed_placement in the flow goes through here, so the design's
49+
# DETAIL_PLACEMENT_ARGS (the legalizer and its window, say) apply to the
50+
# placement stage and to every re-legalization after it alike.
51+
proc detailed_placement_helper { args } {
52+
log_cmd detailed_placement {*}[env_var_or_empty DETAIL_PLACEMENT_ARGS] {*}$args
53+
}
54+
4855
proc repair_design_helper { } {
4956
puts "Perform buffer insertion and gate resizing..."
5057

‎flow/scripts/variables.json‎

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flow/scripts/variables.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,15 @@ CELL_PAD_IN_SITES_GLOBAL_PLACEMENT:
627627
tunable: 1
628628
DETAIL_PLACEMENT_ARGS:
629629
description: >
630-
Specify arguments to the detailed_placement call during placement.
630+
Specify arguments to every detailed_placement call: the one in placement
631+
and the re-legalizations after clock tree synthesis, after repair in
632+
CTS and after the repairs in global route. A legalizer chosen here
633+
(-use_diamond_legalizer, -max_displacement) is therefore the one every
634+
stage uses.
631635
stages:
632636
- place
637+
- cts
638+
- grt
633639
CELL_PAD_IN_SITES_DETAIL_PLACEMENT:
634640
description: >
635641
Cell padding on both sides in site widths to ease routability in detail

‎tools/OpenROAD‎

Submodule OpenROAD updated 487 files

0 commit comments

Comments
 (0)