Laurent Maillet-Contoz, STMicroelectronics
Andrew C. Goodrich
-
IMPORTANT
-
What's new in this release?
-
New features
-
Bug fixes and enhancements
-
Incompatibilities with previous releases
-
C++17 support
-
Experimental features
-
Known problems
-
Fixed-point library
This is the release of the SystemC 3.0.1 Class Library. This release implements the IEEE 1666-2023 Language Reference Manual.
- This release is supported on the following platform combinations for which it has been tested:
OS | Target | Compiler |
---|---|---|
Ubuntu 20.04 | amd64 | gcc 9.4.0 |
Ubuntu 20.04 | arm64 | gcc 9.4.0 |
Ubuntu 22.04 | amd64 | gcc 11.4.0 |
Ubuntu 22.04 | arm64 | gcc 11.4.0 |
AlmaLinux 8 | amd64 | gcc 8.5.0 |
AlmaLinux 8 | arm64 | gcc 8.5.0 |
AlmaLinux 9 | amd64 | gcc 11.4.1 |
AlmaLinux 9 | arm64 | gcc 11.4.1 |
Debian 12.5 | amd64 | gcc 12.3.0 |
Debian 12.5 | amd64 | gcc 13.2.0 |
Debian 12.5 | amd64 | gcc 13.2.0 with --std=c++20 |
Rhel 7.9 | x86_64 | gcc 9.3.0 |
Rhel 8.8 | amd64 | gcc 9.4.0 |
Rhel 8.8 | amd64 | gcc 13.1.0 |
Rhel 8.8 | amd64 | clang 17.0.6 |
Rhel 8.9 | amd64 | gcc 8.5.0 |
Rhel 8.9 | amd64 | gcc 11.2.1 |
Rhel 8.9 | amd64 | gcc 12.2.1 |
Rhel 8.9 | amd64 | coside clang 16.0.6 |
Rhel 8.9 | amd64 | coside gcc 13.1.0 |
Windows 10 | msvc16 (2019) | |
Windows 11 | msvc16 (2019) | |
Windows 11 | msvc17 (2022) | |
macOS 12 (Monterey) | x86_64 | AppleClang 13 |
macOS 12 (Monterey) | arm64 | AppleClang 13 |
macOS 13 (Ventura) | x86_64 | AppleClang 14 |
macOS 13 (Ventura) | arm64 | AppleClang 14 |
macOS 14 (Sonoma) | x86_64 | AppleClang 14 |
macOS 14 (Sonoma) | arm64 | AppleClang 14 |
macOS 14 (Sonoma) | x86_64 | AppleClang 15 |
macOS 14 (Sonoma) | arm64 | AppleClang 15 |
Warning: The fixed-point data-types are not working as defined on MSVC 2017 and later in Release x64 mode.
This release has not been tested or is known not to work as expected on the following formerly supported platforms:
- GNU C++ compiler versions prior to 9.3.0 (all platforms)
- FreeBSD 9.0 or later (x86, x86_64) with GNU C++ compiler
- HP-UX 11.00 or later with GNU C++ or HP C++ compiler
- Sun/Oracle Solaris, with GNU C++ or Sun/Solaris Studio compiler
- macOS prior to 11.6 (Big Sur) and/or on the x86, PowerPC architectures
- Microsoft Visual C++ versions prior to 2017 (15.0)
- Cygwin 1.7 or later (x86, x86_64) with GNU C++ compiler
- Msys/MinGW32 GNU C++ compiler
- (In)compatibility note
While it is possible to build SystemC as a shared library (both on ELF-based systems and well as a DLL on Windows), there is no explicitly defined binary interface across different
- SystemC implementations (e.g. from multiple vendors)
- SystemC library versions
- Compilers or compiler versions
- Operating systems or OS versions
Some differences might be caught at link time, while other incompatibilities could just silently lead to undefined behavior during simulation. Please carefully ensure a consistent build configuration, when integrating binary SystemC models built from separate sources.
This version of SystemC contains bug fixes and minor improvements of Reference Implementation simulator.
Please consult the IEEE Std. 1666-2023 SystemC Language Reference Manual for details about the current SystemC standard.
Compared to the 3.0.0 release, this release has the following new items:
-
Bug fixes and enhancements, see section 4.
-
Deprecated features, see section 5.
-
Experimental features (some disabled by default), see section 7. Testing and feedback welcome via the Accellera SystemC forums at http://forums.accellera.org/forum/9-systemc/.
Being a bug fix release, SystemC 3.0.1 does not provide new features.
Following is the list of bug fixes and enhancements for the 3.0.1 release:
-
Implemented remaining changes to match sc_bind up to the IEEE1666-2023 revised definition
-
Updated implementation of reset event notification in sc_process_b::trigger_reset_event to align to IEEE1666-2023
-
Refactored integer tracing & file writing in sc_{vcd,wif}_trace
-
Fixed issue in QuickThreads assembly on Arm 64-bit architectures
-
Cleaned up various compiler warnings
-
Improved sanitizers setup and addressed sanitizers findings
-
Addressed sanitizers findings in tests
-
Fixed SC_METHOD,SC_(C)THREAD false-positive warning on GCC/ARM64
-
Cleaned up member initialization for simple_target_socket{,_tagged}
-
Fixed failing signal_rv tests
-
Update Linux/AArch64 support & cleaned up redundant golden log files in tests
-
Fixed result type mismatches in sc_big_ops.h
-
Fixed several value initialization issues with sc_bv and sc_lv variables
-
Fixed assignment issue to sc_uint and sc_int
-
Fixed issues in autotools build targets install, uninstall, dist and distcheck
-
Removed no longer supported configurations from build flows
No new deprecated features in this release.
IEEE Std. 1666-2023 mandates C++17 as the baseline for SystemC implementations.
std::string_view
is used in new APIs. However, const char *
are still used
in several locations and will be progressively cleaned-up in the upcoming
releases.
Some of these features are not enabled in the default library configuration and need to be explicitly activated during at library build time. See INSTALL.md file.
-
This implementation currently truncates "small"
sc_time
objects toSC_ZERO_TIME
, while "too big” objects wrap-aroundsc_max_time()
and lead to a value modulo the maximum time. In both cases, no warning is generated, even though such a warning is mandated by IEEE Std. 1666-2023. -
Some typos have not been fixed yet in the version of the IEEE Std. 1666-2023 document available online, but have been implemented from SystemC 3.0.0 onwards:
- the following stage callbacks are implemented
void sc_register_stage_callback( sc_stage_callback_if&, int ); void sc_unregister_stage_callback( sc_stage_callback_if&, int );
static const sc_event & none()
is implementedIEEE_1666_SYSTEMC
is set to202301L
- the following stage callbacks are implemented
-
The sign-extension of mixed-signedness logic expressions (&,|) involving one
sc_bigint<>
operand and C++ builtin integral types (int, short, etc.) is inconsistent between 32-bit and 64-bit platforms in some cases. Convert both operands tosc_bigint<>
first. -
The definition of
sc_dt::(u)int64
differs fromstd::(u)int64_t
types on some platforms. This may lead to problems with function overloads and/or format-string placeholders. As a workaround, convert these values explicitly to the correct type before passing them to functions expecting one of these types. Forsc_time
, use the new nested typesc_time::value_type
to hold values of the underlying representation. -
The current implementation of bit-wise operations on
sc_bv
and other bit types implicitly uses the left-hand argument as the size of the result rather than the size of the larger operand, as required by the IEEE Std. 1666 standard. -
Some paths in this release are longer than the historical 99 character limit of tar archives, and several Windows archivers (e.g. WinZip) have been reported to trip over this. The open source archiver 7-zip (http://7-zip.org) is known to work.
SystemC contains a fixed-point data-types package.
Compile-time macro SC_INCLUDE_FX
must be defined in order to build
applications that use fixed point types. You can specify a compiler
flag, e.g., g++ -DSC_INCLUDE_FX
or use a define statement before
you include systemc.h
, e.g.:
#define SC_INCLUDE_FX
#include "systemc.h"