Add (Ternary): Difference between revisions
From TernaryWiki
Jump to navigationJump to search
Created page with "<big><b>Ternary Addition</b></big> == 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 == <div class="tt"> <table class="tt"> <tr> <td class="tt_bb"><b>A</b></td> <td class="tt_bb"><b>B</b></td> <td class="tt_bb"><b>Ci</b></td> <td class="tt_bl tt_bb"><b>Co</b></td> <td class="tt_bb"><b>S</b></td> </tr> <tr> <td class="tt_r">-<..." |
(No difference)
|
Revision as of 13:21, 13 April 2025
Ternary Addition
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 |