编译与运行 | Noxim
本文最后更新于:2020年11月7日
使用两种方式(二进制安装和源码编译)在 Linux 和 macOS 上安装 Noxim。
直接安装(Linux)
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
sudo apt-get install build-essential
sudo apt-get install libboost-dev libyaml-cpp-dev
macOS
brew install yaml-cpp
编译安装 SystemC
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
git clone https://github.com/davidepatti/noxim.git
cd noxim/bin
# 编辑 `Makefile` 文件中的 `SYSTEMC` 和 `YAML` 项,分别填入 SystemC 和 yaml-cpp 的路径
make -j4
运行
./noxim -config ../config_examples/default_config.yaml -power power.yaml
参考
https://github.com/davidepatti/noxim/blob/master/doc/INSTALL.txt
评论系统采用 utterances ,加载有延迟,请稍等片刻。