-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'show -format dot' fails on a .sv file #4873
Comments
This is nothing to do with show and is just because logic is a systemverilog keyword and not a verilog keyword. Running I will also note that as for the discussion of why yosys-slang isn't working in the mentioned apio issue, there is a slang option to ignore unknown modules that may help: This is the default behaviour for Yosys' built in verilog frontend. |
Thanks George. It works. |
This can introduce subtle correctness issues in elaboration of the design since the frontend doesn't know the direction and sizes of ports on blackboxes and instead goes by best guesses. That's why I don't recommend using the option to anyone and I may need to remove it in the future.
It is, but the fact that the elaboration of modules isn't informed by definitions (even when they are available) leads to bugs. If you elaborate
with the built-in frontend, the |
Hi @povik, below are the commands we used in Apio to build and to graph projects, regardless if it has Build
Graph
|
Hi @zapta, those seem to be reasonable commands if you are using the built-in frontend, i.e. read_verilog. As an alternative there's read_slang with better SV support, but it's also harder to set up for FPGA targets. Some discussion of what it would take was held at |
Wrong link, I've meant to link povik/yosys-slang#72 |
Thanks @povik, please ping us here or on the other thread when there will be a better choice of yosys commands for apio. |
Version
Yosys 0.49+3 (git sha1 9d46304, x86_64-apple-darwin23.5-clang++ 18.1.8 -fPIC -O3)
On which OS did this happen?
macOS
Reproduction Steps
Unzip the zip file below in an empty directory.
Run the command below. It succeeds.
work.zip
Source file:
Expected Behavior
The command should succeed and generate a .dot file with the graph.
Actual Behavior
The command fails.
The text was updated successfully, but these errors were encountered: