From WikiChip
Difference between revisions of "majority gate"
(→CMOS) |
|||
Line 15: | Line 15: | ||
A 3-input MAJ gate (MAJ3) can be implemented as <math>(a \land b) \lor (a \land c) \lor (b \land c)</math>. | A 3-input MAJ gate (MAJ3) can be implemented as <math>(a \land b) \lor (a \land c) \lor (b \land c)</math>. | ||
===CMOS=== | ===CMOS=== | ||
− | However the naive implementation will result in up to 30 transistors. Since <math>\text{MAJ}(a, b, c) = \overline{\overline{\text{MAJ}(a, b, c)}}</math>, we can | + | However the naive implementation will result in up to 30 transistors. Since |
+ | :<math>\text{MAJ}(a, b, c) = \overline{\overline{\text{MAJ}(a, b, c)}}</math>, | ||
+ | we can define MAJ3 as | ||
+ | :<math>\text{MAJ}(a, b, c) = \overline{\overline{(a \land b) \lor (a \land c) \lor (b \land c)}}</math> | ||
+ | and that can be implemented using a single [[AOI|AOI222]] which is defined as | ||
+ | :<math>\text{AOI222}(a, b, c, d, e, f) = \overline{(a \land b) \lor (c \land d) \lor (e \land f)}</math> | ||
+ | note that by substituting ''a, b, and c'' for ''d, e, and f'' we get MAJ: | ||
+ | :<math>\text{MAJ}(a, b, c) = \overline{AOI222(a, b, c, a, b, c)}</math> | ||
+ | It can also be implemented using a [[OAI|OAI222]] gate the very same way. Since | ||
+ | :<math>\text{OAI222}(a, b, c, d, e, f) = \overline{(a \lor b) \land (c \lor d) \land (e \lor f)}</math>, | ||
+ | then | ||
+ | :<math>\text{MAJ}(a, b, c) = \overline{OAI222(a, b, c, a, b, c)}</math> | ||
[[File:maj gate (cmos).svg|left|200px]] | [[File:maj gate (cmos).svg|left|200px]] | ||
{{clear}} | {{clear}} | ||
+ | |||
== MAJ5 == | == MAJ5 == | ||
{{empty section}} | {{empty section}} |
Revision as of 12:00, 18 February 2016
MAJ Gate | ||||||||||||||||||||||||||||||||||||||||||||
Typical Symbol | ||||||||||||||||||||||||||||||||||||||||||||
Functional | ||||||||||||||||||||||||||||||||||||||||||||
Truth Table | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
|
The majority gate (MAJ gate) is a logic gate that implements the majority function - a device that outputs a HIGH when the majority of its inputs are HIGH, otherwise it outputs a LOW.
Contents
Applications
This section is empty; you can help add the missing info by editing this page. |
MAJ3
A 3-input MAJ gate (MAJ3) can be implemented as .
CMOS
However the naive implementation will result in up to 30 transistors. Since
- ,
we can define MAJ3 as
and that can be implemented using a single AOI222 which is defined as
note that by substituting a, b, and c for d, e, and f we get MAJ:
It can also be implemented using a OAI222 gate the very same way. Since
- ,
then
MAJ5
This section is empty; you can help add the missing info by editing this page. |