synlig icon indicating copy to clipboard operation
synlig copied to clipboard

Module not found

Open rodrigomelo9 opened this issue 1 year ago • 2 comments

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.

rodrigomelo9 avatar Feb 09 '24 02:02 rodrigomelo9

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

alaindargelas avatar Feb 09 '24 04:02 alaindargelas

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.

rodrigomelo9 avatar Feb 10 '24 17:02 rodrigomelo9