Skip to content

Commit a916f33

Browse files
committed
synth: fix renaming of registers and wires
do the renaming earlier so that names of non-private registers are preserved Signed-off-by: Øyvind Harboe <[email protected]>
1 parent cb4a239 commit a916f33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flow/scripts/synth.tcl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ if { [info exist ::env(SYNTH_GUT)] && $::env(SYNTH_GUT) == 1 } {
1414

1515
synthesize_check $::env(SYNTH_FULL_ARGS)
1616

17+
# rename registers to have the verilog register name in its name
18+
# of the form \regName$_DFF_P_. We should fix yosys to make it the reg name.
19+
# At least this is predictable.
20+
renames -wire
21+
1722
if { [info exists ::env(USE_LSORACLE)] } {
1823
set lso_script [open $::env(OBJECTS_DIR)/lso.script w]
1924
puts $lso_script "ps -a"
@@ -47,11 +52,6 @@ if {[info exist ::env(LATCH_MAP_FILE)]} {
4752
techmap -map $::env(LATCH_MAP_FILE)
4853
}
4954

50-
# rename registers to have the verilog register name in its name
51-
# of the form \regName$_DFF_P_. We should fix yosys to make it the reg name.
52-
# At least this is predictable.
53-
renames -wire
54-
5555
set dfflibmap_args ""
5656
foreach cell $::env(DONT_USE_CELLS) {
5757
lappend dfflibmap_args -dont_use $cell

0 commit comments

Comments
 (0)