COM (Ternary Gate): Difference between revisions
From TernaryWiki
				
				
				Jump to navigationJump to search
				
				
|  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_..." | No edit summary | ||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
| == Uses == | == Uses == | ||
| This gate is biased towards the A input. Only when A is zero does B have any effect. | |||
| This  | 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 == | == Truth Tables == | ||
| === COM === | === COM === | ||
| <div class="tt"> | <div class="tt"> | ||
| 	<table class="tt"> | 	<table class="tt"> | ||
| Line 192: | Line 190: | ||
| 	</table> | 	</table> | ||
| </div> | </div> | ||
| ==References== | |||
| * [https://homepage.cs.uiowa.edu/~dwjones/ternary/logic.shtml The Ternary Manifesto by Douglas W. Jones - Standard Ternary Logic] | |||
| [[Category:Ternary]] | [[Category:Ternary]] | ||
| [[Category:Logic_Gates]] | [[Category:Logic_Gates]] | ||
Latest revision as of 10:54, 4 August 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 | - | 
| + | + | - | 
