COM (Ternary Gate): Difference between revisions
From TernaryWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 190: | Line 190: | ||
</table> | </table> | ||
</div> | </div> | ||
==References== | |||
* [https://homepage.cs.uiowa.edu/~dwjones/ternary/ The Ternary Manifesto by Douglas W. Jones] | |||
[[Category:Ternary]] | [[Category:Ternary]] | ||
[[Category:Logic_Gates]] | [[Category:Logic_Gates]] | ||
Revision as of 00:43, 4 May 2025
Compare
Uses
This gate is biased towards the A input. Only when A is zero does B have any effect.
A tree of compares can compute if a register is negative, zero, or positive. This is done as part of the ALU Flags.
Truth Tables
COM
| COM | B | |||
| - | 0 | + | ||
| A | - | - | - | - |
| 0 | - | 0 | + | |
| + | + | + | + | |
| COM | ||
| A | B | Y |
| - | - | - |
| - | 0 | - |
| - | + | - |
| 0 | - | - |
| 0 | 0 | 0 |
| 0 | + | + |
| + | - | + |
| + | 0 | + |
| + | + | + |
NCOM
| NCOM | B | |||
| - | 0 | + | ||
| A | - | + | + | + |
| 0 | + | 0 | - | |
| + | - | - | - | |
| NCOM | ||
| A | B | Y |
| - | - | + |
| - | 0 | + |
| - | + | + |
| 0 | - | + |
| 0 | 0 | 0 |
| 0 | + | - |
| + | - | - |
| + | 0 | - |
| + | + | - |