source: HDLQ/TestBenches/TBMVBI2.v @ 1

Revision 1, 617 bytes checked in by ttvmrc00, 13 years ago (diff)

upload iniziale

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