[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

参考

相关推荐
佳佳乐25032 小时前
mac版 Typora快捷键
macos
不羁的木木8 小时前
MacOS 安装 OpenClaw 并接入飞书机器人(保姆级教程 + 常见问题解决)
macos·机器人·飞书
AuLuo-8 小时前
openclaw(小龙虾)本地安装部署MAC版本homebrew)
macos
DvLee10249 小时前
让旧Mac再战几年:使用 OpenCore Legacy Patcher 升级不支持的 macOS(完整教程)
macos·macbook·opencore
一只小白菜9 小时前
在 macOS 上配置 OpenClaw 连接本地 Ollama 完整指南
macos
一乐小哥10 小时前
Zsh 与 Bash 配置文件:用法、区别、迁移
macos·shell
黄昏贩卖机10 小时前
mac M芯片安装pytorch
人工智能·pytorch·macos
EZ_Python10 小时前
如何在 Windows 上将 Python 脚本打包为 macOS 原生应用
windows·python·macos
NGBQ1213811 小时前
Keep It 2.7.10 全解析:Mac 端专业笔记管理工具深度指南
笔记·macos
米 柴11 小时前
Mac电脑配置环境变量
macos