Closed titan73 closed 1 week ago
Oddly a file containing a package (package keyword) is compiled perfectly.
Yosys does not support SystemVerilog imports at the moment, and as far as I know there are no plans to. You can use sv2v, or purchase a commercial license which lets you use the Verific frontend that has SV support.
Ok I used sv2v and it worked. Thanks!
Version
Yosys 0.42+10 (git sha1 ef9045882, clang++ 14.0.0-1ubuntu1.1 -fPIC -Os)
On which OS did this happen?
Linux
Reproduction Steps
Compile a system verilog file with only "import foobar;" or "import foobar::*;"
Expected Behavior
Compile with no error
Actual Behavior
yosys> read_verilog -sv toto.sv