An example project top test and demonstrate PySysC
Go to file
2024-11-22 16:46:52 +01:00
.vscode updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00
scc@85dc2b4e51 updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00
top Remove conan dependency 2021-05-18 16:33:29 +02:00
vp_components Remove conan dependency 2021-05-18 16:33:29 +02:00
.cproject Remove conan dependency 2021-05-18 16:33:29 +02:00
.gitignore updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00
.gitmodules rename submodule 2021-03-14 09:29:38 +01:00
.project Started from SystemC-Quickstart 2018-12-31 16:28:37 +01:00
.pydevproject update scc, move to inline conan, test SC thread supports 2021-08-30 18:08:34 +02:00
CMakeLists.txt updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00
LICENSE Started from SystemC-Quickstart 2018-12-31 16:28:37 +01:00
modules.py updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00
README.md updates README.md 2024-11-22 16:46:52 +01:00
router_example2.py updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00
router_example.py updates build instruction and SCC to latest version 2024-11-22 15:44:08 +01:00

PySysC-SC

A simple C++/SystemC/CMake project to test pysysc

How to build

Currently only Linux and MacOS are tested.

The install instruction below assume using bash.

# clone the PySysC-SC repository 
git clone --recursive -b develop https://git.minres.com/SystemC/PySysC-SC.git
cd PySysC-SC
# install conan 1.x into virtual environment
python3 -mvenv .venv
. .venv/bin/activate
pip install "conan<2.0"
# build the SystemC libraries needed
cmake -S . -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build -j24
# install cppyy and PySysC
export SYSTEMC_HOME=$(grep -A1 rootpath_systemc\] build/conanbuildinfo.txt | tail -1)
export STDCXX=17
pip install "cppyy<3.0" 
pip install https://github.com/Minres/PySysC/tarball/master
pip install scc/contrib/pysysc/
# run the exampoes
python3 router_example.py
python3 router_example2.py
python3 modules.py