Skip to content

slang: add a SYNTH_BLACKBOXES syntax check - #3766

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:slang-syntax-check
Jan 8, 2026
Merged

maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:slang-syntax-check

Conversation

@oharboe

@oharboe oharboe commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator

Non-existand verilog modules should be ignored to be compartible with Yosys.

Non-existand verilog modules should be ignored to be compartible
with Yosys.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
oharboe requested a review from maliberty January 7, 2026 22:24
@oharboe

oharboe commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator Author

@povik I got the following locally:

11. Executing SLANG frontend.
read_slang: unknown command line argument '--blackboxed-module'
ERROR: Bad command

@povik

povik commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

@oharboe perhaps your yosys-slang submodule is stale (--blackboxed-module was added in recent update #3759)

@oharboe

oharboe commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator Author

@povik @maliberty Merge?

It demonstrates a) that the right version of yosys supporting the required feature is there b) that it is fine to list unknown verilog modules as blackboxes. The latter is a feature that is especially useful when doing parallel abc in bazel.

@maliberty
maliberty requested a review from povik January 8, 2026 06:45
@oharboe

oharboe commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator Author

@oharboe perhaps your yosys-slang submodule is stale (--blackboxed-module was added in recent update #3759)

Ah, I had to pin yosys because newer versions were broken. To fix this I unpinnned yosys and switched to slang.

@povik

povik commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

@oharboe do you still want to see this getting merged now that we know old tools were the cause?

@oharboe

oharboe commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator Author

yes, this is a smoketest of supported use case

Comment thread flow/designs/asap7/uart/config.mk Outdated

export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/$(DESIGN_NICKNAME)/*.v))
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.sdc
# Exercise syntax on command line for a dummy module and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "Smoke test for the option; shouldn't do anything as the named module does not exist" would be clearer as a comment. I want to make sure people understand it's not a load-bearing setting

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Non-existand verilog modules should be ignored to be compartible
with Yosys.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@povik

povik commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

@maliberty please merge

@maliberty
maliberty merged commit 55c404c into The-OpenROAD-Project:master Jan 8, 2026
5 checks passed
@oharboe
oharboe deleted the slang-syntax-check branch January 12, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants