COM (Ternary Gate)

From TernaryWiki
Revision as of 13:19, 13 April 2025 by MrDyne (talk | contribs) (Created page with "<big><b>Compare</b></big> == Uses == A tree of compares can compute if a register is negative, zero, or positive. This is done as part of the ALU Flags. I do not know yet if this gate is useful to Compare say two registers. This gate is biased towards the A input. Only when A is zero does B have any effect. == Truth Tables == === COM === thumb|alt=Com Gate Symbol|Com Gate Symbol <div class="tt"> <table class="tt"> <tr> <td class="tt_br tt_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Compare

Uses

A tree of compares can compute if a register is negative, zero, or positive. This is done as part of the ALU Flags.

I do not know yet if this gate is useful to Compare say two registers.

This gate is biased towards the A input. Only when A is zero does B have any effect.

Truth Tables

COM

Com Gate Symbol
Com Gate Symbol
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 -
+ + -