COM (Ternary Gate): Difference between revisions
From T729 Balanced Ternary Computer
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
== Truth Tables == | == Truth Tables == | ||
=== COM === | === COM === | ||
[[File: | [[File:COM_GATE.png|thumb|alt=Com Gate Symbol|Com Gate Symbol]] | ||
<div class="tt"> | <div class="tt"> | ||
<table class="tt"> | <table class="tt"> | ||
Line 103: | Line 103: | ||
<hr /> | <hr /> | ||
=== NCOM === | === NCOM === | ||
[[File: | [[File:NCOM_GATE.png|thumb|alt=Com Gate Symbol|Com Gate Symbol]] | ||
<div class="tt"> | <div class="tt"> | ||
<table class="tt"> | <table class="tt"> |
Revision as of 01:58, 6 July 2024
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 | 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 | - |
+ | + | - |