You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
197 B
11 lines
197 B
4 years ago
|
module gates (a, b, o0, o1 );
|
||
|
input a;
|
||
|
input b;
|
||
|
output o0;
|
||
|
output o1;
|
||
|
|
||
|
AND2X1 andgate (.IN1 ( a ) , .IN2 ( b ) , .Q ( o0 ) ) ;
|
||
|
NAND2X1 nandgate (.IN1 ( a ) , .IN2 ( b ) , .QN ( o1 ) ) ;
|
||
|
|
||
|
|
||
|
endmodule
|