IC的帆哥 - systemC
https://www.icfgblog.com/index.php/tag/systemC/
-
systemc-2.3.3的安装与测试排坑
https://www.icfgblog.com/index.php/software/46.html
2020-08-30T11:29:00+08:00
参考:https://blog.csdn.net/Zhjzhh59421/article/details/104669436
1.准备
系统:ubuntu 18.04 64bit
安装包:systemc-2.3.3.tar.gz
2.安装
tar xvf systemc-2.3.3.tar.gz
cd systemc-2.3.3
#创建临时文件夹
mkdir objdir
cd objdir
#规定systemc待安装文件夹位置
../configure -prefix=/想要安装的路径/systemc
make
make install
3.环境配置
sudo gedit ~/.bashrc
#在最下面添加
export SYSTEMC_HOME=/自己安装的路径/systemc
export LD_LIBRARY_PATH=/自己安装的路径/systemc/lib-linux64:$LD_LIBRARY_PATH
#保存退出
source ~/.bashrc
4.测试
写一个hello.cpp
#ifndef _HELLO_H
#define _HELLO_H
#include "systemc.h"
SC_MODULE(hello)
{
SC_CTOR(hello)
{
cout