安装VERILATOR并仿真实现双控开关 ysyx
VERILATOR官网如下:
参考:https://verilator.org/guide/latest/install.html
安装
利用github git得到v4.210版本的
git clone https://github.com/verilator/verilator
# 环境变量
unsetenv VERILATOR_ROOT #有问题没关系
unset VERILATOR_ROOT
cd verilator
# 安装依赖
sudo apt-get install git help2man perl python3 make
sudo apt-get install g++ # Alternatively, clang
sudo apt-get install libgz # Non-Ubuntu (ignore if gives error)
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

文章介绍了如何安装VERILATOR工具,并提供了双控开关的Verilog实现及测试程序的步骤。用户需克隆VERILATOR仓库,安装依赖,然后编译和安装VERILATOR。在仿真实例中,展示了双控开关逻辑的Verilog代码(top.v)以及C++测试平台(test_our.cpp)的编写,最后通过verilator命令执行仿真。
最低0.47元/天 解锁文章
4092

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



