File: mipdnot1.v

package info (click to toggle)
gplcver 2.12a-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,604 kB
  • ctags: 9,129
  • sloc: ansic: 126,201; sh: 1,539; makefile: 86; perl: 22
file content (40 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module xx;
 wire w1, w2; 
 reg r1, r2;

 modnot i1(w1, r1);
 modnot i2(w2, r2);

 initial 
  begin
   $monitor($stime,, "w1=%b, r1=%b, w2=%b, r2=%b", w1, r1, w2, r2);
   #100 r1 = 0;
   #100 r2 = 0;

   #100 r1 = 1;
   #100 r2 = 1;

   #100 r1 = 0;
   #100 r2 = 0;

   #100 r1 = 1'bx;
   #100 r2 = 1'bx;

   #100 r1 = 0;
   #100 r2 = 0;

   #100 r1 = 1'bz;
   #100 r2 = 1'bz;

   #100 r1 = 1;
   #100 r2 = 1;
  end
endmodule

module modnot(out, a);
 output out;
 input a;

 not (out, a); 
endmodule