SystemC 下载网址:https://www.accellera.org/downloads/standards/systemc
下载安装
$ wget https://www.accellera.org/images/downloads/standards/systemc/systemc-2.3.3.tar.gz
$ tar xf systemc-2.3.3.tar.gz
$ cd systemc-2.3.3
$ mkdir build
$ cd build
$ …/configure --prefix=/usr/local/systemc2.3.3
$ make
$ make check
$ sudo make install
环境配置
为运行Verilator配置运行环境变量
编辑文件“~/.bashrc”
$ gedit ~/.bashrc
在该文件中增加以下几行:
export SYSTEMC_INCLUDE=/usr/local/systemc2.3.3/include
export SYSTEMC_LIBDIR=/usr/local/systemc2.3.3/lib-linux64
#export LD_LIBRARY_PATH=/usr/local/systemc2.3.3/lib-linux64
然后保存。
让环境变量生效:
$ source ~/.bashrc
$ wget https://github.com/accellera-official/systemc/archive/refs/tags/3.0.0.tar.gz
下载的文件为“system