-
Notifications
You must be signed in to change notification settings - Fork 0
/
testbench.sv
49 lines (38 loc) · 825 Bytes
/
testbench.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
`include "uvm_macros.svh"
`include "dut_if.sv"
`include "vip_pkg.svh"
module tb_top;
import uvm_pkg::*;
import vip_test_pkg::*;
reg clk = 0;
reg reset =1;
design_if dut_if(clk, reset);
my_design dut(._if(dut_if));
initial
begin
uvm_config_db#(vip_pkg::vip_vif)::set(null,"*.tb",
"vip_vif", dut_if);
end
initial
begin
//run_test("c_base_test");
//run_test("vseq_simple_test");
run_test("simple_test");
end
//always
initial
begin
#100 reset = ~reset;
end
initial
begin
forever #10 clk = ~clk;
end
initial
begin
// Dump waves
$dumpfile("dump.vcd");
$dumpvars(1, tb_top);
$dumpvars(1, tb_top.dut);
end
endmodule