Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion flow/scripts/synth_preamble.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ proc read_design_sources { } {
}

if { [env_var_equals SYNTH_HDL_FRONTEND slang] } {
# read_slang is built into Yosys (>=0.67); no plugin load needed.
# read_slang is built into Yosys >= 0.67, which vendors the frontend
# under frontends/slang. Older Yosys needs the same code loaded as an
# out-of-tree plugin; `plugin -i` finds it on YOSYS_PLUGIN_PATH. The
# guard makes this a no-op on a Yosys that has the frontend built in,
# so a build system is free to supply either one.
if { [info commands read_slang] eq "" } {
plugin -i slang
}
set slang_args [list \
-D SYNTHESIS --keep-hierarchy --compat=vcs --ignore-assertions --top $::env(DESIGN_NAME) \
{*}$vIdirsArgs {*}[env_var_or_empty VERILOG_DEFINES]]
Expand Down