diff --git a/Changes b/Changes index 023477ec9..e740aff86 100644 --- a/Changes +++ b/Changes @@ -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'. diff --git a/bin/verilator b/bin/verilator index b059d87e7..ac88b8e2a 100755 --- a/bin/verilator +++ b/bin/verilator @@ -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 diff --git a/src/V3Options.cpp b/src/V3Options.cpp index d0bae2ff4..3b49377ed 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -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*/)) {