Add (Ternary): Difference between revisions
From T729 Balanced Ternary Computer
Jump to navigationJump to search
No edit summary Tag: Manual revert |
No edit summary |
||
Line 4: | Line 4: | ||
Adds two inputs and a carry in together. Outputs sum and carry out. | Adds two inputs and a carry in together. Outputs sum and carry out. | ||
[[NEG (Ternary Gate)|Negating]] the B input will result in a subtraction. | |||
== Truth Tables == | == Truth Tables == |
Revision as of 17:44, 10 March 2025
Add
Uses
Adds two inputs and a carry in together. Outputs sum and carry out.
Negating the B input will result in a subtraction.
Truth Tables
A | B | Ci | Co | S |
- | - | - | - | 0 |
- | - | 0 | - | + |
- | - | + | 0 | - |
- | 0 | - | - | + |
- | 0 | 0 | 0 | - |
- | 0 | + | 0 | 0 |
- | + | - | 0 | - |
- | + | 0 | 0 | 0 |
- | + | + | 0 | + |
0 | - | - | - | + |
0 | - | 0 | 0 | - |
0 | - | + | 0 | 0 |
0 | 0 | - | 0 | - |
0 | 0 | 0 | 0 | 0 |
0 | 0 | + | 0 | + |
0 | + | - | 0 | 0 |
0 | + | 0 | 0 | + |
0 | + | + | + | - |
+ | - | - | 0 | - |
+ | - | 0 | 0 | 0 |
+ | - | + | 0 | + |
+ | 0 | - | 0 | 0 |
+ | 0 | 0 | 0 | + |
+ | 0 | + | + | - |
+ | + | - | 0 | + |
+ | + | 0 | + | - |
+ | + | + | + | 0 |