diff options
Diffstat (limited to 'circuits/full-adder.txt')
-rw-r--r-- | circuits/full-adder.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/circuits/full-adder.txt b/circuits/full-adder.txt new file mode 100644 index 0000000..d0c3854 --- /dev/null +++ b/circuits/full-adder.txt @@ -0,0 +1,34 @@ +# full adder circuit +# vim:ft=cfg +A: INPUT_HIGH; +B: INPUT_HIGH; +Cin: INPUT_LOW; +Cout: PROBE; +S: PROBE; +NODE1: OR; +NODE2: AND; +NODE3: AND; +NODE4: NOT; +NODE5: AND; +NODE6: OR; +NODE7: NOT; +NODE8: NOT; +NODE9: AND; +NODE10: AND; +NODE11: OR; + +Cin: NODE3,NODE7,NODE10; +A: NODE1,NODE2; +B: NODE1,NODE2; +NODE1: NODE3,NODE5; +NODE2: NODE4,NODE6; +NODE3: NODE6; +NODE4: NODE5; +NODE5: NODE8,NODE9; +NODE6: Cout; +NODE7: NODE9; +NODE8: NODE10; +NODE9: NODE11; +NODE10: NODE11; +NODE11: S; + |