01 03 Logic Gate Application
01 03 Logic Gate Application
&
It’s Application
Logic gates
• We send information through computers using
wires that represent 1s and 0s.
Logic Symbol A
AND Y
B
INPUTS OUTPUT
A B Y
Truth Table 0 0 0
0 1 0
1 0 0
1 1 1
AND Gate Truth Table
AND Symbol
Boolean Expression
Y = A x B = A • B = AB
OR Function
Text Description Output Y is TRUE if input A OR B is
TRUE, else it is FALSE.
A
Logic Symbol OR Y
B
INPUTS OUTPUT
A B Y
0 0 0
Truth Table 0 1 1
1 0 1
1 1 1
OR Gate Truth Table
OR Symbol
Boolean Expression Y = A + B
NOT Function (inverter)
Text Description Output Y is TRUE if input A is FALSE,
else it is FALSE. Y is the inverse of A.
INPUT OUTPUT
A Y
0 1
Truth Table 1 0
NOT Gate Truth Table
INPUTS OUTPUT
A B Y
0 0 1
Truth Table 0 1 1
1 0 1
1 1 0
NAND Gate Truth Table
Boolean Expression Y = A x B = AB
NOR Function
Text Description Output Y is FALSE if input A OR B is
TRUE, else it is TRUE.
A bubble is an inverter.
A This is an OR Gate with its output inverted.
Logic Symbol NOR Y
B
INPUTS OUTPUT
A B Y
0 0 1
Truth Table 0 1 0
1 0 0
1 1 0
NOR Gate Truth Table
Boolean Expression Y = A + B
Exclusive-OR Gate
XOR
X Y Z
X
Z 0 0 0
Y
0 1 1
Z = X ^ Y 1 0 1
xor(Z,X,Y)
1 1 0
Exclusive-NOR Gate
XNOR
X Y Z
Z 0 0 1
0 1 0
Z = ~(X ^ Y) 1 0 0
Z = X ~^ Y 1 1 1
xnor(Z,X,Y)
Circuit-to-Truth Table Example
A
AND
B
OR Y
NOT
C
AND
A B C Y
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
2# of Inputs = # of Combinations 1 0 1
1 1 0
23 = 8 1 1 1
Circuit-to-Truth Table Example
0 0
A
0 AND
B
0
OR Y
1
NOT 0
0 AND
C
A B C Y
0 0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Circuit-to-Truth Table Example
0 0
A
0 AND
B
1
OR Y
1
NOT 1
1 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Circuit-to-Truth Table Example
0 0
A
1 AND
B
0
OR Y
1
NOT 0
0 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Circuit-to-Truth Table Example
0 0
A
1 AND
B
1
OR Y
1
NOT 1
1 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Circuit-to-Truth Table Example
1 0
A
0 AND
B
0
OR Y
0
NOT 0
0 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1
1 1 0
1 1 1
Circuit-to-Truth Table Example
1 0
A
0 AND
B
0
OR Y
0
NOT 0
1 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0
1 1 1
Circuit-to-Truth Table Example
1 1
A
1 AND
B
1
OR Y
0
NOT 0
0 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1
Circuit-to-Truth Table Example
1 1
A
1 AND
B
1
OR Y
0
NOT 0
1 AND
C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
Circuit-to-Boolean Equation
AB
A
AND
B
OR Y =AB + AC
A
}
NOT
AND
C
AC A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
A - O - I Logic
A
AND
B
OR Y
NOT
AND
C
AND Gates
Other Logic Arrangements:
OR Gates NAND - NAND Logic
INVERTER Gates NOR - NOR Logic
NAND Gate – Special Application
S NAND T
S T
0 1 A
1 0 NAND Y
B
INPUTS OUTPUT
A B Y
0 0 1
Equivalent To An Inverter Gate 0
1
1
0
1
1
1 1 0
NOR Gate - Special Application
S NOR T
S T
0 1 A
1 0 B
NOR Y
INPUTS OUTPUT
A B Y
0 0 1
0 1 0
1 0 0
Equivalent To An Inverter Gate 1 1 0
NAND IMPLEMENTATION
NOR IMPLEMENTATION
Basic Boolean Identities
De Morgan’s Theorem