Line 1:
Line 1:
− {{title|Majority (MAJ) Gate}}{{logic device
+ {{title|Majority Gate (MAJ)}}{{logic device
|title = MAJ Gate
|title = MAJ Gate
|symbol title = Typical Symbol
|symbol title = Typical Symbol
Revision as of 03:01, 21 June 2016
MAJ Gate
Typical Symbol
Functional
Truth Table
3-input Majority Gate
Inputs
Outputs
A
B
C
Q
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
1
1
0
0
0
1
0
1
1
1
1
0
1
1
1
1
1
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 .
Applications
MAJ3
A 3-input MAJ gate (MAJ3) can be implemented as
Equation
left-parenthesis a logical-and b right-parenthesis logical-or left-parenthesis a logical-and c right-parenthesis logical-or left-parenthesis b logical-and c right-parenthesis
.
CMOS
However the naive implementation will result in up to 30 transistors. Since
Equation
MAJ left-parenthesis a comma b comma c right-parenthesis equals ModifyingAbove Above ModifyingAbove MAJ left-parenthesis a comma b comma c right-parenthesis With bar With bar
,
we can define MAJ3 as
Equation
MAJ left-parenthesis a comma b comma c right-parenthesis equals ModifyingAbove Above ModifyingAbove left-parenthesis a logical-and b right-parenthesis logical-or left-parenthesis a logical-and c right-parenthesis logical-or left-parenthesis b logical-and c right-parenthesis With bar With bar
and that can be implemented using a single AOI222 which is defined as
Equation
AOI 222 left-parenthesis a comma b comma c comma d comma e comma f right-parenthesis equals ModifyingAbove left-parenthesis a logical-and b right-parenthesis logical-or left-parenthesis c logical-and d right-parenthesis logical-or left-parenthesis e logical-and f right-parenthesis With bar
note that by substituting a, b, and c for d, e, and f we get MAJ:
Equation
MAJ left-parenthesis a comma b comma c right-parenthesis equals ModifyingAbove upper A upper O upper I Baseline 222 left-parenthesis a comma b comma c comma a comma b comma c right-parenthesis With bar
It can also be implemented using a OAI222 gate the very same way. Since
Equation
OAI 222 left-parenthesis a comma b comma c comma d comma e comma f right-parenthesis equals ModifyingAbove left-parenthesis a logical-or b right-parenthesis logical-and left-parenthesis c logical-or d right-parenthesis logical-and left-parenthesis e logical-or f right-parenthesis With bar
,
then
Equation
MAJ left-parenthesis a comma b comma c right-parenthesis equals ModifyingAbove upper O upper A upper I Baseline 222 left-parenthesis a comma b comma c comma a comma b comma c right-parenthesis With bar
MAJ5
See also