My Verilog code is stored in C:\FA
. There are three files:
FA.v, fa.vvp, TM_FA.v
I followed my book steps.
- iverilog -o fa.vvp
- vvp fa.vvp
- finish
- getwave fa.vcd &
When I use getwave fa.vcd &
to simulate it, and then it shows:
Error opening .vcd file 'fa.vcd'.
Why: No such file or directory
I firstly use Icarus and GTKwave, then I don't know how to fix it.
You need to add code in your Verilog testbench to explicitly tell
iverilog
to create a VCD file. The iverilog documentation states: