Cmake And Dev C++
For a conan-only version please check the conan-only branch.
Cmake Devenv
A simple C++ CMake project to jump-start development of SystemC-based models and systems. It also shows the power of using a package manager:
gets you to build a SystemC simulation. E.g. to deploy SystemC CCI to your project, changing conanfile.txt in the project root to
is sufficient to be able to start using CCI in your models.
Under Windows CMake uses the newest Visual Studio installation as default generator, unless the generator is explicitly specified upon invoking CMake. This behavior is hard coded and cannot be changed. As a work-around you can use a batch wrapper script titled cmake.bat with the following contents: @cmake.exe -G 'MinGW Makefiles'%.
When using Eclipse CDT as developemnt environment it is highly recommended to install Martin Weberscmake4eclipse extension as it imports not only thecmake configuration settings rather also those coming from the conan packages
Currently only Linux and MacOS are tested
Dev C++ Download For Windows 7
Using conan
Building the project from source is simple. First you need to install conan.io according to the instructions and setup the Minres remote:
Then clone the SystemC-Quickstart repo and build the project:
Et voila you completed your first SystemC simulation even with SCV transaction recording!If you would like to analyze the recording output further just download the latest release ofSCViewer to open the transaction_example.txlog.
Without conan
Install needed packages (SystemC and SCV library) and set SYSTEMC_HOME and SCV_HOME accordingly (if you installSCV in the same location than SystemC then SYSTEMC_HOME environment variable is sufficient).
Clone the SystemC-Quickstart repo:
fix the CMakeLists.txt by removing the line
Build the project and run it:
Notes
If you encounter issues using conan when linking wrt. c++11 symbols you might have run into GCC ABI incompatibility introduced from GCC 5.0 onwards. You can fix this by adding '-s compiler.libcxx=libstdc++11' to the conan call or changing compiler.libcxx to
in $HOME/.conan/profiles/default