Skip to content

Commit 8f68e19

Browse files
authored
Merge pull request #2943 from Pinata-Consulting/synth-params-fix
Synth params fix
2 parents 9299682 + 7cca785 commit 8f68e19

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

flow/designs/asap7/uart/config.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ export TNS_END_PERCENT = 100
1313
export EQUIVALENCE_CHECK ?= 1
1414
export REMOVE_CELLS_FOR_EQY = TAPCELL*
1515
export SKIP_GATE_CLONING = 1
16+
export VERILOG_TOP_PARAMS = DATA_WIDTH 8

flow/scripts/synth_canonicalize.tcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
2+
3+
dict for {key value} $::env(VERILOG_TOP_PARAMS) {
4+
# Apply toplevel parameters
5+
chparam -set $key $value $::env(DESIGN_NAME)
6+
}
7+
28
hierarchy -check -top $::env(DESIGN_NAME)
39
# Get rid of unused modules
410
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)

flow/scripts/variables.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ VERILOG_TOP_PARAMS:
658658
Apply toplevel params (if exist).
659659
stages:
660660
- synth
661+
default: ""
661662
CORE_ASPECT_RATIO:
662663
description: >
663664
The core aspect ratio (height / width). This value is ignored if

0 commit comments

Comments
 (0)