What is *.vcd file and how can I fix it?

1,450 views
Skip to first unread message

Mr. Nobody

unread,
Apr 21, 2022, 9:06:35 AM4/21/22
to EDA Playground
When I click RUN button while "Open EPWave after run", I recieved below:

[2022-04-21 13:02:45 UTC] iverilog '-Wall' design.sv testbench.sv && unbuffer vvp a.out
Finding VCD file...
No *.vcd file found. EPWave will not open. Did you use '$dumpfile("dump.vcd"); $dumpvars;'?
Done

glenn.c...@gmail.com

unread,
Apr 21, 2022, 4:44:35 PM4/21/22
to EDA Playground
if you care to share the link to the playground, volunteers will be able to have a look.
Message has been deleted

Mr. Nobody

unread,
Apr 21, 2022, 9:08:48 PM4/21/22
to EDA Playground
Thanks! This is my link:

EDA Playground

unread,
Apr 22, 2022, 3:20:14 AM4/22/22
to EDA Playground
A VCD file ("Value Change Dump" file) is a file which contains all the values of the wires and regs in a simulation over time so that they can be displayed on a waveform display. 

You have ticked the "Open EPWave after run" box, so EDA Playground tries to over a waveform display. However, you have not included any code to output a VCD file. The missing code is reported by the error message: $dumpfile("dump.vcd"); $dumpvars;'. These two lines need to be in an initial block in your testbench. 

You don't have a testbench at the moment. I'm not sure whether that is because you haven't got round to writing it yet or whether you don't appreciate the need for one. The name of you design module suggests the latter. You do need a testbench: some code that at least drives the inputs of your design so that you can test it. Your design looks like a full adder, so your testbench wants to be driving all combinations of a, b and cin. (Look at some of the simpler Verilog/SystemVerilog examples on EDA Playground for examples of simple testbenches.)

Reply all
Reply to author
Forward
0 new messages