2018-12-31 15:23:37 +01:00
|
|
|
# PySysC
|
|
|
|
|
2020-12-23 09:17:31 +01:00
|
|
|
A Python 3 package to use SystemC from Python
|
2018-12-31 15:23:37 +01:00
|
|
|
|
|
|
|
## How to setup the environment
|
|
|
|
|
2020-12-23 09:17:31 +01:00
|
|
|
The installation for PySysC is as follows (using bash shell):
|
2018-12-31 15:23:37 +01:00
|
|
|
|
|
|
|
```
|
2020-12-23 09:17:31 +01:00
|
|
|
# create virtual environment
|
|
|
|
python3 -m venv pysysc-env
|
|
|
|
# and enable it
|
|
|
|
. pysysc-env/bin/activate
|
|
|
|
# install needed packages
|
|
|
|
python3 -m pip install wheel
|
|
|
|
# install cppyy, C++ std version needs to match the version used to build the SystemC library
|
|
|
|
STDCXX=11 python3 -m pip install cppyy
|
|
|
|
# clone of PySysC
|
|
|
|
git clone https://git.minres.com/SystemC/PySysC.git
|
|
|
|
# install PySysC, for development PySysC use 'python3 -m pip install -e`
|
|
|
|
python3 -m pip install -e PySysC
|
2018-12-31 15:23:37 +01:00
|
|
|
```
|
|
|
|
|
2019-01-03 21:15:57 +01:00
|
|
|
## TODO
|
|
|
|
|
2020-12-23 09:17:31 +01:00
|
|
|
* pythonize `sc_module` with iteration protocol (`__next__` and `StopIteration` exception)
|