使用SystemC进行硬件仿真

使用SystemC进行硬件仿真

环境

  • linux-x86-64
  • bash
  • g++

下载解压SystemC

SystemC下载地址

解压下载的包

tar zxvf systemc-2.3.3.tar.gz

进入解压出来的目录,准备编译安装

cd systemc-2.3.3

编译安装

打开安装说明文件INSTALL

vim INSTALL

按照步骤安装

Create a temporary directory

mkdir objdir

Change to the temporary directory

cd objdir

Choose your compiler by setting the CXX environment variable(我的shell是bash)

export CXX=g++

Configure the package for your system

../configure --prefix=/usr/local/systemc-2.3.2

Compile the package(这里使用make命令)

make

Verify the compiled package

make check

Install the package(root用户)

make install

安装好的目录

配置安装的库路径

添加软链接(使用root用户/sudo执行)

ln -s /usr/local/systemc-2.3.2/lib-linux64/libsystemc-2.3.2.so /usr/lib/libsystemc-2.3.2.so

修复动态链接库问题

将安装路径添加都/etc/ld.so.conf.d/目录下(使用root用户/sudo执行)

echo "/usr/local/systemc-2.3.2/lib-linux64/" > /etc/ld.so.conf.d/systemc.conf

刷新动态库

ldconfig

运行测例

跳转至《SystemC入门》书籍给的exanpel中

测例链接: https://pan.baidu.com/s/1ssr81seZcx-s358GcyUJ8w 提取码: khf8

参考链接

1.Setting up SystemC and Eclipse for C++ hardware simulation
2.RedHat7安装Systemc 编译仿真
3.SystemC在ubuntu上的安装

posted @ 2019-04-28 18:33  乔_木  阅读(2919)  评论(0编辑  收藏  举报