`timescale 1ns/10ps module svinterface1_tb; logic clk; logic rst; logic [21:0] outOther; logic [1:0] sig; logic [1:0] sig_out; logic flip; logic [15:0] passThrough; integer outfile; TopModule u_dut ( .clk(clk), .rst(rst), .outOther(outOther), .sig(sig), .flip(flip), .passThrough(passThrough), .sig_out(sig_out) ); initial begin clk = 0; while(1) begin clk = ~clk; #50; end end initial begin outfile = $fopen("output.txt"); rst = 1; sig = 0; flip = 0; @(posedge clk); #(2); rst = 0; @(posedge clk); for(int j=0;j<2;j++) begin for(int i=0;i<20;i++) begin #(2); flip = j; sig = i; @(posedge clk); end end $finish; end always @(negedge clk) begin $fdisplay(outfile, "%d %d %d", outOther, sig_out, passThrough); end endmodule fe734162c6639'/> [no description]
aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include/chdynamic.h
blob: 3ac79a5f4a5cc392685872875ec6ada7a8be717e (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68