Ready-to-run snippets

Code Examples

Ready-to-run Verilog, SystemVerilog, and UVM examples. Click any to open it live in the IDE.

← All examples

VCD Dump: $dumpfile

Verilog Examples

Runnable example from the Verilog VCD Dump tutorial ($dumpfile)

Open in IDE
testbench.v
module tb;
  initial begin
    $dumpfile("wave1.vcd");     // Dumps into "wave1.vcd"
    // Without this call, the dump goes into the default file "dump.vcd"
  end
endmodule
Admin mode — edit and delete controls are visible on each row. Use the IDE to add new snippets via File → Save as Snippet.