Skip to content

Commit d298d83

Browse files
committed
flow: enable AUTO_MEMORIES and SYNTH_BLACKBOXES for all frontends
1 parent b90ef46 commit d298d83

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

‎flow/scripts/memories/extract_memories.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
66

7-
# Read all RTL sources using active frontend (slang, verific, or yosys verilog)
7+
# Read all RTL sources using active frontend
88
read_design_sources
99

1010
# Elaborate hierarchy

‎flow/scripts/synth_preamble.tcl‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,19 @@ proc read_design_sources { } {
127127
chparam -set $key $value $::env(DESIGN_NAME)
128128
}
129129

130-
if { [env_var_exists_and_non_empty SYNTH_BLACKBOXES] } {
131-
error "Non-empty SYNTH_BLACKBOXES unsupported with HDL frontend \"verific\""
130+
set auto_blackboxes [auto_memories_blackboxes]
131+
if { [llength $auto_blackboxes] > 0 } {
132+
hierarchy -top $::env(DESIGN_NAME)
133+
foreach m $auto_blackboxes {
134+
blackbox $m
135+
}
136+
hierarchy -check -top $::env(DESIGN_NAME)
132137
}
133-
if { [llength [auto_memories_blackboxes]] > 0 } {
134-
error "AUTO_MEMORIES unsupported with HDL frontend \"verific\""
138+
if { [env_var_exists_and_non_empty SYNTH_BLACKBOXES] } {
139+
hierarchy -check -top $::env(DESIGN_NAME)
140+
foreach m $::env(SYNTH_BLACKBOXES) {
141+
blackbox $m
142+
}
135143
}
136144
} elseif { ![env_var_exists_and_non_empty SYNTH_HDL_FRONTEND] } {
137145
verilog_defaults -push

0 commit comments

Comments
 (0)