Digital Logic Design - Lecture 2
Digital Logic Design - Lecture 2
Faraz Hasan
Lecture 02
Logic Gates
1 output
2 inputs
3 inputs
4 inputs 0 &
0
Multiple inputs
0
AND Gate function
Input Output
F A B
A B F
0 0 0 F A B C .... N
0 1 0
1 0 0
1 1 1
AND Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
F
OR Gate
1 output
2 inputs
3 inputs
4 inputs
Multiple inputs 0 >=1
0
0
OR Gate function
Input Output F A B
A B F
0 0 0
0 1 1
F A B C .. N
1 0 1
1 1 1
OR Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
F
NOT Gate
1 input
1 output
NOT Gate function
Invert function
Input Output
A F
0 1
1 0
FA
NOT Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
F
AND Gate Applications
Enable/Disable Device
Counter counts when it receives pulses
B1
A
Reset B8
Carry out
B ENB
Disable
Enable
OR Gate Applications
1 output
2 inputs
3 inputs
4 inputs 0 &
0
0
Multiple inputs
NAND Gate function
NOT-AND function
Input Output
A B F F A B
0 0 1 F A B C .... N
0 1 1
1 0 1
1 1 0
NAND Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
F
NAND Universal Gate
Input Output
A B F
0 0 1
0 1 1
1 0 1
1 1 0
NAND Universal Gate
Input Output
A B F
0 0 0
0 1 1 1
1 0 1 3
2
1 1 1
NOR Gate
1 output
2 inputs
3 inputs
4 inputs 0 >=1
0
0
Multiple inputs
NOR Gate function
NOT-OR function
Input Output
A B F F A B
0 0 1 F A B C .... N
0 1 0
1 0 0
1 1 0
NOR Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
NOR Universal Gate
Input Output
A B F
0 0 0
0 1 1
1 2
1 0 1
1 1 1
NOR Universal Gate
Input Output
A B F
0 0 0
1
0 1 0 3
1 0 0 2
1 1 1
NAND-NOR Universal Gate
1 1
3 4 3 4
2 2
NAND Gate Applications
Device Failure Alarm
ALARM
NOR Gate Applications
Washing Machine Controller
Switch
XOR Gate
1 output
2 inputs
Multiple inputs
0 =1
0
0
XOR Gate function
Input Output
F A B
A B F
0 0 0
0 1 1
1 0 1
1 1 0
XOR Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
XNOR Gate
1 output
2 inputs
Multiple inputs
0 =
0
0
XNOR Gate function
Input Output
A B F F A B
0 0 1
0 1 0
1 0 0
1 1 1
XNOR Gate Timing Diagram
t0 t1 t2 t3 t4 t5 t6
TTL/CMOS NOT Gate
+VCC +VDD
P-Type
MOSFET
Vi/p Vo/p
Vo/p
+V
Vi/p NPN
Transistor N-Type
MOSFET
Logic Gate Integrated Circuits
14 13 12 11 10 9 8 14 13 12 11 10 9 8
1 2 3 4 5 6 7 1 2 3 4 5 6 7
7408 7432
Four 2-Input AND Gate Four 2-Input OR Gate
14 13 12 11 10 9 8 14 13 12 11 10 9 8
1 2 3 4 5 6 7 1 2 3 4 5 6 7
7404 7400
Hex Inverters Four 2-Input NAND Gate
Logic Gate Integrated Circuits
14 13 12 11 10 9 8
1 2 3 4 5 6 7
7402
Four 2-Input NOR Gate
14 13 12 11 10 9 8 14 13 12 11 10 9 8
1 2 3 4 5 6 7 1 2 3 4 5 6 7
7486 74266
Four 2-Input XOR Gate Four 2-Input XNOR Gate
Boolean Addition & Multiplication
■ Boolean Addition performed by OR gate
■ Sum Term describes Boolean Addition
■ Sum of literals
1. A+0=A 7. A.A = A
2. A+1=1 8. A. =0
3. A.0 = 0 9. =A
4. A.1 = A 10. A + A.B = A
= A+B.C
Demorgan’s Theorems
■ First Theorem
■ Second Theorem
Demorgan’s Theorems
■ Any number of variables
■ Combination of variables
Boolean Analysis of Logic Circuits
■ Boolean Algebra provides concise way to
represent operation of a logic circuit
■ Complete function of a logic circuit can be
determined by evaluating the Boolean
expression using different input combinations
Boolean Analysis of Logic Circuits
■ Product-of-Sums form
Implementation of SOP expression
Implementation of POS expression
Conversion of general expression to
SOP form