编译与运行 | Noxim

使用两种方式(二进制安装和源码编译)在 Linux 和 macOS 上安装 Noxim。

直接安装(Linux)

1
2
3
4
5
6
7
wget --no-check-certificate https://raw.githubusercontent.com/davidepatti/noxim/master/other/setup/ubuntu.sh

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/zhongtian/NOC/noxim/bin/libs/systemc-2.3.1/lib-linux64

cd noxim/bin

./noxim -config ../config_examples/default_config.yaml -power power.yaml

源码编译

安装依赖

Ubuntu

1
2
sudo apt-get install build-essential
sudo apt-get install libboost-dev libyaml-cpp-dev

macOS

1
brew install yaml-cpp

编译安装 SystemC

1
2
3
4
5
6
7
8
9
wget http://www.accellera.org/images/downloads/standards/systemc/systemc-2.3.1.zip
unzip systemc-2.3.1.zip
cd systemc-2.3.1
mkdir build
cd build
export CXX=g++
../configure --enable-debug
make
make install

编译安装 Noxim

1
2
3
4
git clone https://github.com/davidepatti/noxim.git
cd noxim/bin
# 编辑 `Makefile` 文件中的 `SYSTEMC` 和 `YAML` 项,分别填入 SystemC 和 yaml-cpp 的路径
make -j4

运行

1
./noxim -config ../config_examples/default_config.yaml -power power.yaml

参考

https://github.com/davidepatti/noxim/blob/master/doc/INSTALL.txt

作者

zhongtian

发布于

2019-12-24

更新于

2023-12-16

许可协议

评论