安装环境
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