-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathBRWM_tb.v
More file actions
44 lines (36 loc) · 522 Bytes
/
BRWM_tb.v
File metadata and controls
44 lines (36 loc) · 522 Bytes
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
`timescale 1ns/1ns
module BRWM_tb();
reg clk, on_off, clear, rw, pause;
reg [7:0] data_in;
wire [7:0] data_out;
wire done;
BRWM DUT (clk, on_off, rw, clear, pause, data_in, data_out, done);
initial
begin
$dumpfile("../vcd/BRWM_tb.vcd");
$dumpvars(0, BRWM_tb);
data_in = 8'h00;
pause = 0;
on_off = 0;
#150;
clear = 0;
on_off = 1;
rw = 1;
#150;
rw = 0;
#150;
clear = 1;
#150;
on_off = 0;
clear = 0;
#30;
$finish;
end
always
begin
clk = 1'b0;
#1;
clk = 1'b1;
#1;
end
endmodule