Skip to content

Commit 4e80f5c

Browse files
committed
flow: move netlist transforms from floorplan.tcl into synth_odb.tcl
replace_arith_modules (under SWAP_ARITH_OPERATORS), remove_buffers and repair_timing_helper (under REMOVE_ABC_BUFFERS) are netlist-level transforms that do not depend on having a floorplan. Move them into synth_odb.tcl, before source_step_tcl POST SYNTH, so the synthesized netlist hand-off (1_synth.odb) reflects what the synthesis stage actually produced. This also drops the stale ordering comment on repair_tie_fanout that warned about preceding remove_buffers — repair_tie_fanout now runs in a later stage where the constraint is no longer relevant. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent e5477f1 commit 4e80f5c

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

‎flow/scripts/floorplan.tcl‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ if { [env_var_exists_and_non_empty FASTROUTE_TCL] } {
7676
source_env_var_if_exists FOOTPRINT_TCL
7777

7878
if { !$::env(SKIP_REPAIR_TIE_FANOUT) } {
79-
# This needs to come before any call to remove_buffers. You could have one
80-
# tie driving multiple buffers that drive multiple outputs.
8179
# Repair tie lo fanout
8280
puts "Repair tie lo fanout..."
8381
set tielo_cell_name [lindex $::env(TIELO_CELL_AND_PORT) 0]
@@ -93,20 +91,6 @@ if { !$::env(SKIP_REPAIR_TIE_FANOUT) } {
9391
repair_tie_fanout -separation $::env(TIE_SEPARATION) $tiehi_pin
9492
}
9593

96-
if { [env_var_exists_and_non_empty SWAP_ARITH_OPERATORS] } {
97-
# Enable sanity checker until replace_arith_modules becomes stable
98-
set_debug_level ODB replace_design_check_sanity 1
99-
replace_arith_modules
100-
}
101-
102-
if { $::env(REMOVE_ABC_BUFFERS) } {
103-
# remove buffers inserted by yosys/abc
104-
remove_buffers
105-
} else {
106-
# Skip clone & split
107-
repair_timing_helper -setup -skip_last_gasp -sequence "unbuffer,sizeup,swap,vt_swap"
108-
}
109-
11094
puts "Default units for flow"
11195
report_units
11296
report_units_metric

‎flow/scripts/synth_odb.tcl‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ check_setup
5151
set num_instances [llength [get_cells -hier *]]
5252
puts "number instances in verilog is $num_instances"
5353

54+
if { [env_var_exists_and_non_empty SWAP_ARITH_OPERATORS] } {
55+
# Enable sanity checker until replace_arith_modules becomes stable
56+
set_debug_level ODB replace_design_check_sanity 1
57+
replace_arith_modules
58+
}
59+
60+
if { $::env(REMOVE_ABC_BUFFERS) } {
61+
# remove buffers inserted by yosys/abc
62+
remove_buffers
63+
} else {
64+
# Skip clone & split
65+
repair_timing_helper -setup -skip_last_gasp -sequence "unbuffer,sizeup,swap,vt_swap"
66+
}
67+
5468
source_step_tcl POST SYNTH
5569
orfs_write_db $::env(RESULTS_DIR)/1_synth.odb
5670
# Canonicalize 1_synth.sdc. The original SDC_FILE provided by

0 commit comments

Comments
 (0)