A python module for parsing, processing, and simulating gate-level circuits.
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.
|
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 |