[Mac + Icarus Verilog + gtkwave] Mac运行Verilog及查看波形图

安装环境

Icarus Verilog 编译

使用HomeBrew安装iVerilog (icarus-verilog):

bash 复制代码
brew install icarus-verilog

gtkwave 查看波形

bash 复制代码
brew install --HEAD randomplum/gtkwave/gtkwave

遇到的问题

macOS cannot verify that this app is free from malware

  • Install the app anyway: If you downloaded an app from a trusted source but still can't open it because of the "macOS cannot verify that this app is free from malware" error, you can try installing the app anyway. To do this, hold down Control and click on the app, then select "Open" from the context menu.
  • Redownload the app: If the digital signature of the app is invalid or corrupted, you can try redownloading the app from the developer's website.
  • Use a different app: If you can't get the app to work, consider using a different app that provides similar functionality.

gtkwave-bin is not compatible with macOS 14 or later

This version of "gtkwave-bin" is not compatible with macOS 14 or later and needs to be updated. Contact the app developer for more information.

bash 复制代码
brew uninstall gtkwave
brew untap randomplum/gtkwave
brew install --HEAD randomplum/gtkwave/gtkwave

示例

(待完善!)

编译Verilog

bash 复制代码
iverilog -o ./out/mycircuit t_Simple_Circuit.v Simple_Circuit.v

生成.vcd文件

bash 复制代码
vvp ./out/mycircuit

查看波形

bash 复制代码
gtkwave out/mytest.vcd

参考

相关推荐
卜锦元1 天前
nvm常用命令(nodejs)
macos·编辑器·nodejs·开发工具
小鸡脚来咯2 天前
怎么配置主机名映射?
linux·windows·macos
牛奔2 天前
macOS 使用 conda,同时本地安装了python,遇到 ModuleNotFoundError: No module named ‘xxx‘` 解决
开发语言·python·macos·conda
川川菜鸟2 天前
Codex+ 中转 API 部署教程(Mac版)
macos
rockage2 天前
【技巧】MacOS下使用LaunchDaemons实现开机自启动
macos
青花锁2 天前
Mac电脑安装Docker
macos·docker·容器
FPGA小迷弟3 天前
modelsim使用教程,仿真技巧,精华帖
fpga开发·verilog·fpga·modelsim
李玮豪Jimmy3 天前
MacOS 上安装 JDK 并实现多版本灵活切换
macos
mixboot3 天前
VoxCPM 1.5.0 macOS
macos·voxcpm
甜可儿3 天前
mac环境安装不同版本maven
java·macos·maven