User guide
21-20
OpenVera Native Testbench
In this example configuration file, the prog1.vr, prog2.vr and prog3.vr
files contain the OpenVera program construct. The OpenVera files
task11.vr and task12.vr are two files needed by the program in the
prog1.vr file. task21.vr and taks22.vr are OpenVera files needed by
program in prog2.vr
Multiple program example:
top.v file
module duv_test_top;
parameter simulation_cycle = 100;
reg SystemClock;
wire [7:0] d1;
wire [7:0] d2;
wire rst_;
wire clk;
wire [7:0] q1;
wire [7:0] q2;
assign clk = SystemClock;
duv_test1 u1(
.SystemClock (SystemClock),
.\duv1.d (d1),
.\duv1.q (q1),
.\duv1.rst_ (rst_),
.\duv1.clk (clk)
);
duv_test2 u2(
.SystemClock (SystemClock),
.\duv2.d (d2),
.\duv2.q (q2),
.\duv2.rst_ (rst_),
.\duv2.clk (clk)
);
duv dut(
.d1 (d1),