Skip to content

Commit b69923d

Browse files
committed
slang: add a SYNTH_BLACKBOXES syntax check, part II
Non-existand verilog modules should be ignored to be compartible with Yosys. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 770502a commit b69923d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ configuration file.
241241
| <a name="SLEW_MARGIN"></a>SLEW_MARGIN| Specifies a slew margin when fixing max slew violations. This option allows you to overfix.| |
242242
| <a name="SWAP_ARITH_OPERATORS"></a>SWAP_ARITH_OPERATORS| Improve timing QoR by swapping ALU and MULT arithmetic operators.| |
243243
| <a name="SYNTH_ARGS"></a>SYNTH_ARGS| Optional synthesis variables for yosys.| |
244-
| <a name="SYNTH_BLACKBOXES"></a>SYNTH_BLACKBOXES| List of cells treated as a black box by Yosys. With Bazel, this can be used to run synthesis in parallel for the large modules of the design.| |
244+
| <a name="SYNTH_BLACKBOXES"></a>SYNTH_BLACKBOXES| List of cells treated as a black box by Yosys. With Bazel, this can be used to run synthesis in parallel for the large modules of the design. Non-existant modules are ignored silently, useful when listing modules statically, even if modules come and go dynamically.| |
245245
| <a name="SYNTH_CANONICALIZE_TCL"></a>SYNTH_CANONICALIZE_TCL| Specifies a Tcl script with commands to run as part of the synth canonicalize step.| |
246246
| <a name="SYNTH_GUT"></a>SYNTH_GUT| Load design and remove all internal logic before doing synthesis. This is useful when creating a mock .lef abstract that has a smaller area than the amount of logic would allow. bazel-orfs uses this to mock SRAMs, for instance.| 0|
247247
| <a name="SYNTH_HDL_FRONTEND"></a>SYNTH_HDL_FRONTEND| Select an alternative language frontend to ingest the design. Available option is "slang". If the variable is empty, design is read with the Yosys read_verilog command.| |

‎flow/designs/asap7/uart/config.mk‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export DESIGN_NAME = uart
55

66
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/*.v))
77
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
8-
# Exercise syntax on command line for a dummy module and
9-
# check that non-existant modules are silently ignored.
8+
# Smoke test for the option; doesn't do anything as the named
9+
# module does not exist
1010
export SYNTH_BLACKBOXES = dummy
1111

1212
export PLACE_DENSITY = 0.70

‎flow/scripts/variables.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ SYNTH_BLACKBOXES:
255255
description: >
256256
List of cells treated as a black box by Yosys. With Bazel, this can be used
257257
to run synthesis in parallel for the large modules of the design.
258+
259+
Non-existant modules are ignored silently, useful when listing modules
260+
statically, even if modules come and go dynamically.
258261
stages:
259262
- synth
260263
SYNTH_NETLIST_FILES:

0 commit comments

Comments
 (0)