介绍
EpicSim是芯华章基于Icarus Verilog开发的开源Verilog仿真软件, Github地址https://github.com/x-epic/EpicSim.
安装依赖包
cmake3
在网站https://cmake.org/download找到Binary distributions下载链接,
wget https://github.com/Kitware/CMake/releases/download/v3.18.3/cmake-3.18.3-Linux-x86_64.tar.gz
tar zxvf cmake-3.18.3-Linux-x86_64.tar.gz
#设置环境
##bash
export PATH=/xxx/cmake-3.18.3-Linux-x86_64/bin:$PATH
##cshell
setenv PATH /xxx/cmake-3.18.3-Linux-x86_64/bin:$PATH
bison, flex, readline, bzip2-devel
yum install bison
yum install flex
yum install readline
yum install bzip2-devel
gperf3
wget http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
tar zxvf gperf-3.1.tar.gz
cd gperf-3.1
./configure
make
su -
<******>
make install
termcap
wget https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
tar zxvf termcap-1.3.1.tar.gz
cd termcap-1.3.1
./configure
make
su -
<******>
make install安装EpicSim下载git clone https://github.com/x-epic/EpicSimInstallcd EpicSim
mkdir build
cd build
cmake ..
make #等待10分钟...
make install #不需要su -, 安装到自己目录配置环境变量#bash
export PATH=/xxx/EpicSim/install/bin
#cshell
setenv PATH /xxx/EpicSim/install/bin:$PATH测试一下#vim test.sv
module test();
initial begin
$display("Hello world!");
end
endmoduleepicsim -g2012 test.sv
#Hello world!