From 914a6edd33b7963a83daadf76e04052468e658a8 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 7 Apr 2020 19:58:17 -0400 Subject: [PATCH] Add error if use SystemC 2.2 and earlier (pre-2011) as is deprecated. --- Changes | 2 ++ bin/verilator | 8 +++++--- include/verilated.h | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 62bfc017b..c97291111 100644 --- a/Changes +++ b/Changes @@ -13,6 +13,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Support $ferror, and $fflush without arguments, #1638. +**** Add error if use SystemC 2.2 and earlier (pre-2011) as is deprecated. + * Verilator 4.032 2020-04-04 diff --git a/bin/verilator b/bin/verilator index 2c544eeb0..2c8a4ee88 100755 --- a/bin/verilator +++ b/bin/verilator @@ -4819,10 +4819,12 @@ configured with --enable-prec11. This flag will be removed and C++11 compilers will be required for both compiling Verilator and compiling Verilated models no sooner than September 2020. -=item SystemC 2.1 and earlier support +=item SystemC 2.2 and earlier support -Support for SystemC versions 2.1 and earlier and the related sc_clock -variable attribute will be removed no sooner than July 2020. +Support for SystemC versions 2.2 and earlier including the related sc_clock +variable attribute will be removed no sooner than August 2020. The +supported versions will be SystemC 2.3.0 (SYSTEMC_VERSION 20111121) and +later (presently 2.3.0, 2.3.1, 2.3.2, 2.3.3). =item Configuration File -msg diff --git a/include/verilated.h b/include/verilated.h index 037f74121..8fff5a4d0 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -52,6 +52,11 @@ # define WAVES 1 // Set backward compatibility flag #endif +// Version check +#if defined(SYSTEMC_VERSION) && (SYSTEMC_VERSION < 20111121) +# warning "Verilator soon requires SystemC 2.3.*; see manual for deprecated other versions." +#endif + //========================================================================= // Basic types