User guide

7-19
VCD and VPD File Utilities
The following is an example of a configuration file:
Example 7-1 Configuration File
top.ad1
testbench
//moduleGeneration
module adder (out,in1,in2);
input in1,in2;
output [1:0] out;
You can use a different name and location for the configuration file
but if you do you must enter it as an argument to the -vgen option.
For example:
vcat filename.vcd -vgen /u/design1/vgen2.cfg
Example 7-2 Source Code
Consider the following source code:
module top;
reg r1,r2;
wire int1,int2;
wire [1:0] result;
initial
begin
$dumpfile("exp3.vcd");
$dumpvars(0,top.pa1,top.ad1);
#0 r1=0;
#10 r2=0;
#10 r1=1;
#10 r2=1;
#10 r1=0;
#10 r2=0;
#10 r1=1;
#10 r2=1;
#10 r1=0;
#10 r2=0;