source: HDLQ/TestBenches/TBMV.v @ 1

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

upload iniziale

  • Property svn:executable set to *
Line 
1module test_benchMV;
2reg a,b,c,fault1,fault0;
3wire out;
4
5
6MajorityVoter MV (
7        .A (a),
8        .B (b),
9        .C (c),
10        .out(out),
11        .fault1(fault1),
12        .fault0(fault0)
13        );
14initial 
15begin     
16        a = 0;     
17        b = 0;
18        c = 0;
19        fault1 = 0;
20        fault0 = 0;
21end     
22always
23begin
24     #5 a = !a;
25     #1 a =1'bz;
26     #1 a= 1'b1;
27end
28always
29     #10 b = !b;
30always
31     #20 c = !c;
32always
33     #40 fault1 = !fault1;
34always
35     #80 fault0 = !fault0;
36
37endmodule
38
39
40
41
Note: See TracBrowser for help on using the repository browser.