1. 安装依赖
sudo apt-get install git help2man perl python3 make autoconf g++ flex bison ccache
sudo apt-get install libgoogle-perftools-dev numactl perl-doc
sudo apt-get install libfl2 # Ubuntu only (ignore if gives error)
sudo apt-get install libfl-dev # Ubuntu only (ignore if gives error)
sudo apt-get install zlibc zlib1g zlib1g-dev # Ubuntu only (ignore if gives error)
2. 下载代码
git clone https://github.com/verilator/verilator # Only first time
git clone https://mirror.ghproxy.com/https://github.com/verilator/verilator # 这样下载会更快
3. checkout v5.008版本
unset VERILATOR_ROOT # For bash
cd verilator
git checkout v5.008
4. 编译verilator
autoconf # Create ./configure script
./configure # Configure and create Makefile
make -j `nproc` # Build Verilator itself (if error, try just 'make')
sudo make install
1万+

被折叠的 条评论
为什么被折叠?



