Skip to content

Commit 95768f5

Browse files
committed
synth: apply VERILOG_TOP_PARAMS during canonicalization
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent c1992e9 commit 95768f5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

flow/scripts/synth_canonicalize.tcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
2+
3+
# Apply toplevel parameters (if exist)
4+
if {[env_var_exists_and_non_empty VERILOG_TOP_PARAMS]} {
5+
dict for {key value} $::env(VERILOG_TOP_PARAMS) {
6+
chparam -set $key $value $::env(DESIGN_NAME)
7+
}
8+
}
9+
210
hierarchy -check -top $::env(DESIGN_NAME)
311
# Get rid of unused modules
412
opt_clean -purge

flow/scripts/synth_preamble.tcl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ foreach file $::env(VERILOG_FILES) {
4444

4545
source $::env(SCRIPTS_DIR)/synth_stdcells.tcl
4646

47-
# Apply toplevel parameters (if exist)
48-
if {[env_var_exists_and_non_empty VERILOG_TOP_PARAMS]} {
49-
dict for {key value} $::env(VERILOG_TOP_PARAMS) {
50-
chparam -set $key $value $::env(DESIGN_NAME)
51-
}
52-
}
53-
5447
# Read platform specific mapfile for OPENROAD_CLKGATE cells
5548
if {[env_var_exists_and_non_empty CLKGATE_MAP_FILE]} {
5649
read_verilog -defer $::env(CLKGATE_MAP_FILE)

0 commit comments

Comments
 (0)