steveicarus / iverilog

Icarus Verilog
https://steveicarus.github.io/iverilog/
GNU General Public License v2.0
2.81k stars 522 forks source link

Default to SystemVerilog 2012 #485

Open RandyR54 opened 3 years ago

RandyR54 commented 3 years ago

Hi. Today most designs use some aspects of SystemVerilog, so how about setting the default to SV2012? An alternative thought would be to add a file that contains default switches.

Thanks, Randy

caryr commented 3 years ago

This certainly makes sense. There could be some work needed to make sure ivtest does not break because it is making an assumption regarding the generation. If we decide to switch this I expect it would only be done for development and V12 when it is released.

martinwhitaker commented 3 years ago

Changing the default would break existing test scripts, so I would discourage that. If I wanted this, I'd just add an alias, e.g. isv = iverilog -g2012.