【IC设计】Windows和Ubuntu下安装Verilator

本文详细描述了如何在Windows和Ubuntu系统中安装Verilator,包括在Windows上使用Cygwin作为包管理工具,以及在Ubuntu上通过apt安装依赖并执行编译过程。最后,提供检查Verilator版本的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Windows下安装verilator

windows下安装比较麻烦,需要首先安装cygwin,cygwin是一个包管理工具,类似apt,然后通过cygwin安装verilator所需的各种依赖,然后再安装verilator。
参考这篇文章,非常详细

Ubuntu下安装verilator

安装前的准备

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需要这一步 如果报错就跳过 
sudo apt-get install libfl-dev  # 只有ubuntu需要这一步 如果报错就跳过 
sudo apt-get install zlibc zlib1g zlib1g-dev  # 只有ubuntu需要这一步 如果报错就跳过 

git clone https://github.com/verilator/verilator  

如果git报错GnuTLS recv error (-110): The TLS connection was non-properly terminated
参考这篇文章解决

安装verilator

unset VERILATOR_ROOT  
cd verilator
git pull         # 确保git仓库是最新的
git tag          # 查看版本号
#git checkout v3.922 切换到v3.922版本分支 没有版本需求可以忽略
autoconf         # 创建 ./configure 脚本
./configure      # Configure and create Makefile , make这里执行的会比较慢,耐心等待。
make -j `nproc`  # Build Verilator itself (if error, try just 'make')
sudo make install
export VERILATOR_ROOT=$INSTALL_DIR  #这里INSTALL_DIR写verilator要安装的绝对路径

检查

verilator --version

出现版本号就成功了。
在这里插入图片描述

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民真快落

我琢磨着也没人给我打赏呀。。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值