Compare commits
2 Commits
baeb759824
...
4bb3f3424a
Author | SHA1 | Date |
---|---|---|
Stefan Holst | 4bb3f3424a | 1 year ago |
Stefan Holst | a6243b43f6 | 1 year ago |
6 changed files with 59 additions and 21 deletions
@ -1,11 +1,15 @@
@@ -1,11 +1,15 @@
|
||||
module gates (a, b, o0, o1 ); |
||||
module gates (a, b, c, o0, o1, o2, o3 ); |
||||
input a; |
||||
input b; |
||||
input c; |
||||
output o0; |
||||
output o1; |
||||
output o2; |
||||
output o3; |
||||
|
||||
AND2X1 andgate (.IN1 ( a ) , .IN2 ( b ) , .Q ( o0 ) ) ; |
||||
NAND2X1 nandgate (.IN1 ( a ) , .IN2 ( b ) , .QN ( o1 ) ) ; |
||||
|
||||
AND2_X1 andgate (.A1 ( a ) , .A2 ( b ) , .ZN ( o0 ) ) ; |
||||
NAND2_X1 nandgate (.A1 ( a ) , .A2 ( b ) , .ZN ( o1 ) ) ; |
||||
OAI21_X1 oai21gate (.B1(a), .B2(b), .A(c), .ZN(o2) ) ; |
||||
MUX2_X1 mux2gate (.A(a), .B(b), .S(c), .Z(o3)) ; |
||||
|
||||
endmodule |
Loading…
Reference in new issue