source: HDLQ/TestBenches/TBCW.v @ 1

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

upload iniziale

  • Property svn:executable set to *
Line 
1module test_benchCW;
2reg in1,in2,fault1,fault0;
3wire out1, out2;
4
5
6Crosswire CW (
7        .in1 (in1),
8        .in2 (in2),
9        .out1 (out1),
10        .out2 (out2),
11        .fault1(fault1),
12        .fault0(fault0)
13        );
14initial 
15begin     
16        in1 = 0;     
17        in2 = 0;
18        fault1 = 0;
19        fault0 = 0;
20end     
21always
22     #5 in1 = !in1;
23always
24     #10 in2 = !in2;
25always
26     #20 fault1 = !fault1;
27always
28     #40 fault0 = !fault0;
29
30endmodule
31
32
33
34
Note: See TracBrowser for help on using the repository browser.