Revision 1,
404 bytes
checked in by ttvmrc00, 14 years ago
(diff) |
upload iniziale
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | module test_bench_wire ; |
---|
2 | reg a; |
---|
3 | reg [1:0]status; |
---|
4 | reg b; |
---|
5 | |
---|
6 | Wire_3 w1( |
---|
7 | .A(in), |
---|
8 | .B(out), |
---|
9 | .status(status) |
---|
10 | ); |
---|
11 | //assign in = (status == 2'b10 )? 1'bz :a; |
---|
12 | assign in = a ; |
---|
13 | //assign out = b; |
---|
14 | initial |
---|
15 | begin |
---|
16 | status=2'b0; |
---|
17 | a=1; |
---|
18 | b=1'bz; |
---|
19 | end |
---|
20 | always |
---|
21 | #5 status <= status +1; |
---|
22 | always |
---|
23 | begin |
---|
24 | #12.5 a <= 1'bz; |
---|
25 | #25 a <= 1; |
---|
26 | // #10 a<= 1; |
---|
27 | // #12 a<= 0; |
---|
28 | end |
---|
29 | always |
---|
30 | begin |
---|
31 | #17 b<=0; |
---|
32 | #13 b<=1'bz; |
---|
33 | #5b<=1'bz; |
---|
34 | end |
---|
35 | endmodule |
---|
Note: See
TracBrowser
for help on using the repository browser.