EEE 211 Lecture 8
EEE 211 Lecture 8
EEE 211 Lecture 8
EEE211
Lecture 8
Dr Atiqur Rahman
Dept. of Electrical and Computer Engineering
North South University
Other Gate Types
• Why?
– Low cost implementation
– Useful in implementing Boolean functions
– Convenient conceptual representation
• Gate classifications
– Primitive gate - a gate that can be described using a
single primitive operation type (AND or OR) plus
optional inversion(s).
– Complex gate - a gate that requires more than one
primitive operation type for its description
• Primitive gates will be covered first
NAND Gate
• The basic NAND gate has the following symbol and
truth table:
– AND-Invert (NAND) Symbol: X Y NAND
0 0 1
0 1 1
X
X·Y 1 0 1
Y 1 1 0
• NAND represents NOT AND. The small “bubble”
circle represents the invert function
• The NAND gate is implemented efficiently in CMOS
technology in terms of chip area and speed
NAND Gate: Invert-OR Symbol
• Applying DeMorgan's Law: Invert-OR = NAND
X
X + Y = X · Y = NAND
Y
• This NAND symbol is called Invert-OR
– Since inputs are inverted and then ORed together
• AND-Invert & Invert-OR both represent NAND gate
– Having both makes visualization of circuit function easier
• Unlike AND, the NAND operation is NOT associative
(X NAND Y) NAND Z ≠ X NAND (Y NAND Z)
The NAND Gate is Universal
• NAND gates can implement any Boolean function
• NAND gates can be used as inverters, or to
implement AND / OR operations
• A NAND gate with one input is an inverter
• AND is equivalent to NAND with inverted output
X X·Y X X·Y X·Y
≡
Y Y
X X
X Y X Y
Y Y
XOR / XNOR Identities
X0 X X 1 X
XX 0 XX 1
XY YX
XY XY= X Y
( X Y) Z X ( Y Z ) = X Y Z
( X Y) Z X ( Y Z ) = X Y Z
XYZ 11 1 1
10 1 1
WXYZ
Odd and Even Functions
0 1 0 0 X 0 IN0
0 1 0 1 X 1 OUT
EN1
1 0 1 X 0 0
IN1
1 0 1 X 1 1