-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfifo_top.sv
More file actions
55 lines (46 loc) · 1.12 KB
/
Copy pathfifo_top.sv
File metadata and controls
55 lines (46 loc) · 1.12 KB
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
50
51
52
53
54
55
//TOP
import uvm_pkg::*;
`include "uvm_macros.svh"
`include "defines.sv"
`include "fifo_if.sv"
`include "fifo_seq_item.sv"
`include "fifo_sequence.sv"
`include "fifo_sequencer.sv"
`include "fifo_driver.sv"
`include "fifo_monitor.sv"
`include "fifo_agent.sv"
`include "fifo_coverage.sv"
`include "fifo_scoreboard.sv"
`include "fifo_environment.sv"
`include "fifo_test.sv"
module tb;
bit clk;
bit rstn;
always #5 clk = ~clk;
initial begin
clk = 1;
rstn = 0;
#5;
rstn = 1;
end
fifo_if fif(clk, rstn);
my_fifo dut(.clk(fif.clk),
.rstn(fif.rstn),
.i_wrdata(fif.i_wrdata),
.i_wren(fif.i_wren),
.i_rden(fif.i_rden),
.o_full(fif.o_full),
.o_alm_full(fif.o_alm_full),
.o_alm_empty(fif.o_alm_empty),
.o_empty(fif.o_empty),
.o_rddata(fif.o_rddata));
initial begin
uvm_config_db#(virtual fifo_if)::set(null, "", "vif", fif);
$dumpfile("dump.vcd");
$dumpvars;
run_test("fifo_test");
end
initial begin
#25000000 $finish;
end
endmodule