Revision 1,
617 bytes
checked in by ttvmrc00, 14 years ago
(diff) |
upload iniziale
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[1] | 1 | module test_benchMV_bi; |
---|
| 2 | reg a,b,fault1,fault0; |
---|
| 3 | wor toZ,toZp; |
---|
| 4 | reg ck,d; |
---|
| 5 | reg regtoZ, regtoZp; |
---|
| 6 | reg [1:0] zone2,zone1; |
---|
| 7 | MajorityVoter_bi4 MV ( |
---|
| 8 | .status (zone2), |
---|
| 9 | .A(a), |
---|
| 10 | .B(b), |
---|
| 11 | .Z(toZ), |
---|
| 12 | .Zp(toZp), |
---|
| 13 | .fault1(fault1), |
---|
| 14 | .fault0(fault0) |
---|
| 15 | ); |
---|
| 16 | assign toZp = regtoZp; |
---|
| 17 | assign toZ = regtoZ; |
---|
| 18 | initial |
---|
| 19 | begin |
---|
| 20 | a = 0; |
---|
| 21 | b = 1; |
---|
| 22 | fault1 = 0; |
---|
| 23 | fault0 = 0; |
---|
| 24 | zone2=2'b00; |
---|
| 25 | regtoZp=1; |
---|
| 26 | regtoZ=1'bz; |
---|
| 27 | end |
---|
| 28 | |
---|
| 29 | always |
---|
| 30 | begin |
---|
| 31 | #5 zone2 =zone2+1; |
---|
| 32 | end |
---|
| 33 | always |
---|
| 34 | begin |
---|
| 35 | #12.5 regtoZp <= 1'bz; |
---|
| 36 | #30 regtoZp <= 1; |
---|
| 37 | #10 regtoZp=1'bz; |
---|
| 38 | end |
---|
| 39 | always |
---|
| 40 | begin |
---|
| 41 | #27 regtoZ <=0; |
---|
| 42 | #17.5 regtoZ <=1; |
---|
| 43 | #7.5 regtoZ <=1'bz; |
---|
| 44 | end |
---|
| 45 | |
---|
| 46 | endmodule |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.