MUL (Ternary Gate): Difference between revisions
From TernaryWiki
Jump to navigationJump to search
m MrDyne moved page EOR (Ternary Gate) to MUL (Ternary Gate) without leaving a redirect: Rename. Ternary XOR is actual Multiply by -1, 0, 1. |
No edit summary |
||
| Line 1: | Line 1: | ||
<big><b> | <big><b>Multiply</b></big> | ||
<b>Ternary XOR</b> | |||
== Uses == | == Uses == | ||
| Line 5: | Line 6: | ||
Useful as a controllable Buffer or [[NEG (Ternary Gate)|Negate]]. | Useful as a controllable Buffer or [[NEG (Ternary Gate)|Negate]]. | ||
Useful to toggle between add and subtract modes within an Adder. | |||
Used in ternary [[Multiply (Ternary)|mutiply.]] | |||
== Truth Tables == | == Truth Tables == | ||
=== | === MUL === | ||
<div class="tt"> | <div class="tt"> | ||
<table class="tt"> | <table class="tt"> | ||
<tr> | <tr> | ||
<td class="tt_br tt_bb" colspan="2" rowspan="2"> | <td class="tt_br tt_bb" colspan="2" rowspan="2">MUL</td> | ||
<td colspan="3" class="tce"><b>B</b></td> | <td colspan="3" class="tce"><b>B</b></td> | ||
</tr> | </tr> | ||
| Line 44: | Line 47: | ||
<table class="tt"> | <table class="tt"> | ||
<tr> | <tr> | ||
<td colspan="3"> | <td colspan="3">MUL</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
| Line 100: | Line 103: | ||
<hr /> | <hr /> | ||
=== | === NMUL === | ||
<div class="tt"> | <div class="tt"> | ||
<table class="tt"> | <table class="tt"> | ||
<tr> | <tr> | ||
<td class="tt_br tt_bb" colspan="2" rowspan="2"> | <td class="tt_br tt_bb" colspan="2" rowspan="2">NMUL</td> | ||
<td colspan="3" class="tce"><b>B</b></td> | <td colspan="3" class="tce"><b>B</b></td> | ||
</tr> | </tr> | ||
| Line 135: | Line 138: | ||
<table class="tt"> | <table class="tt"> | ||
<tr> | <tr> | ||
<td colspan="3"> | <td colspan="3">NMUL</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Revision as of 13:27, 10 February 2026
Multiply Ternary XOR
Uses
Useful as a controllable Buffer or Negate.
Useful to toggle between add and subtract modes within an Adder.
Used in ternary mutiply.
Truth Tables
MUL
| MUL | B | |||
| - | 0 | + | ||
| A | - | - | 0 | + |
| 0 | 0 | 0 | 0 | |
| + | + | 0 | - | |
| MUL | ||
| A | B | Y |
| - | - | - |
| - | 0 | 0 |
| - | + | + |
| 0 | - | 0 |
| 0 | 0 | 0 |
| 0 | + | 0 |
| + | - | + |
| + | 0 | 0 |
| + | + | - |
NMUL
| NMUL | B | |||
| - | 0 | + | ||
| A | - | + | 0 | - |
| 0 | 0 | 0 | 0 | |
| + | - | 0 | + | |
| NMUL | ||
| A | B | Y |
| - | - | + |
| - | 0 | 0 |
| - | + | - |
| 0 | - | 0 |
| 0 | 0 | 0 |
| 0 | + | 0 |
| + | - | - |
| + | 0 | 0 |
| + | + | + |