Skip to content

Commit 776b4c5

Browse files
committed
slang: add SYNTH_SLANG_ARGS
fixes #3644 Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 2b52c77 commit 776b4c5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

flow/scripts/synth_preamble.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ proc read_design_sources { } {
4747
# slang requires all files at once
4848
plugin -i slang
4949
yosys read_slang -D SYNTHESIS --keep-hierarchy --compat=vcs \
50-
--ignore-assertions --no-implicit-memories --top $::env(DESIGN_NAME) \
50+
--ignore-assertions {*}$::env(SYNTH_SLANG_ARGS) --top $::env(DESIGN_NAME) \
5151
{*}$vIdirsArgs {*}$::env(VERILOG_FILES) {*}[env_var_or_empty VERILOG_DEFINES]
5252
# Workaround for yosys-slang#119
5353
setattr -unset init

flow/scripts/variables.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ SYNTH_HDL_FRONTEND:
184184
command.
185185
stages:
186186
- synth
187+
SYNTH_SLANG_ARGS:
188+
description: >
189+
Additional arguments passed to the slang frontend during synthesis.
190+
stages:
191+
- synth
192+
default: ""
187193
SYNTH_BLACKBOXES:
188194
description: >
189195
List of cells treated as a black box by Yosys. With Bazel, this can be used

0 commit comments

Comments
 (0)