-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_wrapped.sv
46 lines (42 loc) · 928 Bytes
/
test_wrapped.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
module tb_Conv();
logic [11:0] io_in;
logic clock, reset;
logic [3:0] io_out;
my_chip DUT (.*);
initial begin
clock = '0;
forever #5 clock = ~clock;
end
initial begin
@(posedge clock);
reset = 1;
$monitor ($time,, "A = %b, B = %b, out = %b",
io_in[11:6], io_in[5:0], io_out);
io_in = 12'b110110110110;
@(posedge clock);
@(posedge clock);
reset = 1'b0;
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
@(posedge clock);
$display("Done. Expect = 4'b0100");
#1;
$finish;
end
endmodule: tb_Conv