Change -sv option to select 1800-2017 instead of 1800-2005.

This commit is contained in:
Wilson Snyder 2020-11-27 21:49:47 -05:00
parent d77beecc6e
commit cf2810db8b
3 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
* Verilator 4.105 devel
*** Change -sv option to select 1800-2017 instead of 1800-2005.
*** Support $random and $urandom seeds.
*** Support 'super'.

View File

@ -1461,7 +1461,7 @@ future version of Verilator no longer always packs unpacked structures.
=item -sv
Specifies SystemVerilog language features should be enabled; equivalent to
"--language 1800-2005". This option is selected by default, it exists for
"--language 1800-2017". This option is selected by default, it exists for
compatibility with other simulators.
=item +systemverilogext+I<ext>

View File

@ -1101,7 +1101,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
} else if (onoff(sw, "-structs-unpacked", flag /*ref*/)) {
m_structsPacked = flag;
} else if (!strcmp(sw, "-sv")) {
m_defaultLanguage = V3LangCode::L1800_2005;
m_defaultLanguage = V3LangCode::L1800_2017;
} else if (onoff(sw, "-threads-coarsen", flag /*ref*/)) { // Undocumented, debug
m_threadsCoarsen = flag;
} else if (onoff(sw, "-trace", flag /*ref*/)) {