Skip to content
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

Module not found #2322

Open
rodrigomelo9 opened this issue Feb 9, 2024 · 2 comments
Open

Module not found #2322

rodrigomelo9 opened this issue Feb 9, 2024 · 2 comments

Comments

@rodrigomelo9
Copy link

Using yosys and synlig compiled from sources, I'm trying to convert SV into V (without synthesis), as follows:

yosys -Q -p "
plugin -i systemverilog
read_systemverilog counter.sv
hierarchy -top counter
write_verilog -noattr counter.v
"

And it fails:

ERROR: Module `counter' not found!

-- Running command `
plugin -i systemverilog
read_systemverilog counter.sv
hierarchy -top counter
write_verilog -noattr counter.v
' --
    -noassert
        ignore assert() statements
    -debug
        alias for -dump_ast1 -dump_ast2 -dump_vlog1 -dump_vlog2

Some comments:

  • Not sure if I'm doing things 100% right, but it worked 5 months ago (and yes, counter exists). Moreover, I'm successfully doing the same with VHDL (using ghdl-yosys-plugin).
  • I know in this case specifying the top level is not needed, but I'm looking for a general-purpose solution where multiple files will be specified.
  • Why, after Running command, a list of options is displayed? I think it was not there 5 months ago and it doesn't happen with ghdl-yosys-plugin.
@alaindargelas
Copy link
Collaborator

Make sure you use the yosys built by Synlig, not any other Yosys you built yourself. The Yosys built by Synlig has the plugin installed. It looks like your plugin and Yosys are not compatible.
Synlig has 100s of regressions passing on GitHub actions, none show the behavior you are seeing

@rodrigomelo9
Copy link
Author

I see... So, following "Installation" I can use the Yosys built by Debian, but with "Installation from source" I need a particular Yosys version... I will try.

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

No branches or pull requests

2 participants