embecosm / chiphack

Repository and Wiki for Chip Hack events.
http://chiphack.org
Other
50 stars 17 forks source link

Use SystemVerilog instead of Verilog #12

Open imphil opened 6 years ago

imphil commented 6 years ago

The tutorial slides contain (rightfully so) SystemVerilog statements (like always_comb). For those statements to be available to yosys, the easiest way is to rename all .v files to .sv and adjust the Makefile accordingly to pick up those files. No other changes to the commands are necessary.

It's probably best to do this after the current tutorial session for the next one to reduce confusion.

jeremybennett commented 6 years ago

Many thanks - that's a good idea. I think there may be an option to yosys to say .v is SystemVerilog, in which case we can just change the Makefiles.