From c8178186b3456472e726ccd30dfb2fba075672da Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 23 Mar 2024 13:39:04 +0000 Subject: [PATCH] Bump default standard version to 2008 --- NEWS.md | 3 ++- README.md | 6 +++--- nvc.1 | 2 +- src/common.c | 4 ++-- test/regress/cmdline5.sh | 4 ++-- test/regress/issue472.sh | 2 +- test/run_vests.rb | 2 +- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/NEWS.md b/NEWS.md index b24522d1..dadde924 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,7 +10,7 @@ function call, as required by the LRM (#835). - The implementation of conversions in port maps has been reworked and fixes a number of long-standing issues (#843). -- Added support for `inertial` keyword in port maps (#843). +- Added support for `inertial` keyword in port maps (#843). - Fixed a bug where `'last_value` could give the wrong result if the signal has multiple sources. - Updated to OSVVM 2023.09a and UVVM 2023.09.16 for `nvc --install`. @@ -21,6 +21,7 @@ - The parameter for attributes with dimensions such as `'length(N)` may be any integer type when `--relaxed` is passed (#862). - Resolved several other minor issues (#654, #854, #855, #859, #863). +- The default standard version was changed to VHDL-2008. ## Version 1.11.3 - 2024-02-04 - Fixed incorrect effective value when a signal has multiple sources due diff --git a/README.md b/README.md index e84971f7..e471eabb 100644 --- a/README.md +++ b/README.md @@ -169,9 +169,9 @@ listed in [THANKS.md](THANKS.md). VHDL standard revisions are commonly referred to by the year they were published. For example IEEE 1076-2008 is known as VHDL-2008. The -default standard in NVC is currently VHDL-2002 but this can be changed -with the `--std` argument. For example `--std=2008` selects the -VHDL-2008 standard. +default standard in NVC is currently VHDL-2008 but this can be changed +with the `--std` argument. For example `--std=1993` selects the +VHDL-1993 standard. The 1993, 2000, and 2002 revisions of the standard are fully supported. Please raise bugs for any missing or incorrectly implemented features diff --git a/nvc.1 b/nvc.1 index 5ec04cfb..dff95899 100644 --- a/nvc.1 +++ b/nvc.1 @@ -165,7 +165,7 @@ commonly referred to by the year they were published. For example IEEE 1993 or just the last two digits such as 93. The accepted revisions are 1993, 2000, 2002, 2008, 2019. Note there is very limited supported VHDL-2019 at present and VHDL-87 is not supported. The default standard -revision is VHDL-2002. +revision is VHDL-2008. .\" --stderr .It Fl \-stderr Ns = Ns Ar level Print error messages with the given severity or higher to diff --git a/src/common.c b/src/common.c index 4a33402c..21525dad 100644 --- a/src/common.c +++ b/src/common.c @@ -1,5 +1,5 @@ // -// Copyright (C) 2013-2023 Nick Gasson +// Copyright (C) 2013-2024 Nick Gasson // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -35,7 +35,7 @@ #include #include -static vhdl_standard_t current_std = STD_02; +static vhdl_standard_t current_std = STD_08; static bool have_set_std = false; static ident_t id_cache[NUM_WELL_KNOWN]; static text_buf_t *syntax_buf = NULL; diff --git a/test/regress/cmdline5.sh b/test/regress/cmdline5.sh index b7b5f2ac..4e914a73 100644 --- a/test/regress/cmdline5.sh +++ b/test/regress/cmdline5.sh @@ -3,7 +3,7 @@ set -xe pwd which nvc -nvc -a $TESTDIR/regress/ieee1.vhd +nvc --std=1993 -a $TESTDIR/regress/ieee1.vhd -nvc --print-deps IEEE1 IEEE1-TEST \ +nvc --std=1993 --print-deps IEEE1 IEEE1-TEST \ | grep -E ".*WORK.IEEE1-TEST: .*test/regress/ieee1.vhd .*std/STD.STANDARD .*ieee/IEEE.STD_LOGIC_1164" diff --git a/test/regress/issue472.sh b/test/regress/issue472.sh index 310e4d55..a8bdd651 100644 --- a/test/regress/issue472.sh +++ b/test/regress/issue472.sh @@ -3,7 +3,7 @@ set -xe pwd which nvc -nvc --std=2008 -a $TESTDIR/regress/wait1.vhd +nvc --std=2019 -a $TESTDIR/regress/wait1.vhd # This should set the default standard from the analysed unit nvc -e wait1 -r diff --git a/test/run_vests.rb b/test/run_vests.rb index e080e3b1..4cfee189 100755 --- a/test/run_vests.rb +++ b/test/run_vests.rb @@ -87,7 +87,7 @@ Dir.mktmpdir do |tmpdir| Dir.mktmpdir do |workdir| f = File.realpath "#{Billowitch}/#{tc}" top = guess_top f - cmd = "#{Tool} --work=work:#{workdir}/work -a #{f} -e #{top} -r" + cmd = "#{Tool} --std=1993 --work=work:#{workdir}/work -a #{f} -e #{top} -r" expfail = io =~ /EXPFAIL/ result = run_cmd cmd, expfail -- 2.39.2