blob: 9b85bc70af0050ba08b6fc137023b5aef5396308 (
plain)
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
|
# 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;
|