Professional Documents
Culture Documents
Logic Design
1
Outline of this chapter
3.1 Overview
3.2 Switching Algebra
3.3 Basic Gates
3.4 Theorems
3.4.1 One-variable theorems
3.4.2 Two- and Three-variable theorems
3.4.3 n-variable theorems
3.5 Duality
3.6 Standard Representation and Logic Functions
3.6.1 Truth table
3.6.2 Minterm và maxterm
3.6.3 Simplification of logic functions
3.7 Combinational Logic Analysis & Synthesis
2
Reference
• Digital Design: Principles & Practices – John F
Wakerly – Printice Hall
3
3.1 Overview
4
3.1 Boolean Algebra
• 1854: A English mathematician-Gorge Boole
(1815-1864) investigated
• 1938 at Bell Lab: Claude E. Shannon applied
Boole algebra for circuit based on relay,
equivalent with digital circuit.
5
3.2 Axioms
• Axiom 1:
(A1) X = 0 if X ≠ 1
(A1’) X = 1 if X ≠ 0
• Axiom 2: (inverter)
(A2): If X = 0 then X’ = 1
~ X, X
(A2’): If X = 1 then X’ = 0
6
3.2 Axioms
• Axioms 3 , 4 & 5: AND and OR logic gate:
AND : ·
OR : +
7
Basic Gates
8
Basic Gates: NOT
9
Basic Gates: AND
10
Basic Gates: OR
12
More Gates: NAND
13
More Gates: NOR
14
More Gates: XOR
15
More Gates: XNOR
16
Why we manipulate equation?
17
3.4 Theorems
3.4.1 One-variable theorems
18
3.4.2 Two- and Three variable
Theorems
19
3.4.3 n-variable Theorems
20
Ví dụ: Proof by truth table
Theorem 7’
21
Theorems (T8) – (T11)
22
De Morgan’s Theorem
[F(X1,X2,…,Xn)]’ = FD(X1’, X2’,…,Xn’)
23
De Morgan’s Theorem
24
Designing with NAND gates
25
Example of De Morgan’s Theorem
NAND gates: 2 ways to view
26
Designing with NOR gates
27
Example of De Morgan’s Theorem
NOR gates: 2 ways to view
28
Exclusive OR Logic Gates: properties
29
XOR & XNOR Gates
30
Example: Complement Funtion
31
Prove F1=F2 (1/3)
By truth table
32
Prove F1=F2 (2/3)
33
Prove F1=F2 (3/3)
• To be completed in class….
34
Ex 1: minimization
35
Ex 2: Minimization
36
Ex 3:
F=?
37
Minimization of F
38
3.6 Standard Representation and Logic Functions
39
3.6 Standard Representation and Logic Functions
3.6.1 Truth table
40
3.6 Standard Representation and Logic Functions
3.6.1 Truth table
41
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
Basic definitions
42
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
43
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
44
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
Basic definitions
45
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
46
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
47
Sum of minterm
Product of maxterm
48
49
3.6 Standard Representation and Logic Functions
3.6.2 Minterm and maxterm
50
Karnaugh Maps
• Truth table in graphic representation:
51
Karnaugh Map Simplification
52
Simplification: Sum of products
53
2-Varial Map
54
55
Example
56
3-variable map
57
3-variable map
58
Ex: 3-variable map
59
Question 1:
60
4-variable map
61
Example
62
Example 2
63
Incorrected
64
Prime Implicant
65
Ex: K-map with Prime Implicants
66
Ex: K-map with Prime Implicants
• Essential Prime Implicants: EPIs
67
Ex. Covering the other Minterms
68
Example
5-variable K-map
Example
6-variable K-map
69
Converting to Negative Logic
70
Example: SOP of F
71
Karnaugh Maps: Summary
72
Karnaugh Maps: Summary
73
Karnaugh Maps: Summary
• Don’t Care cases:
74
Example: Design procedure
75
BCD and I/O
76
BCD 7-Segment: Truth table
A BC D
77
K-map for ‘a’
79
When the Variable is too much
80
Quine-McCluskey
• Proposed by W.V. Quine và E.J. McCluskey
in 1950s.
81
Quine-McCluskey method to find the
minimized sum of minterm
92
Designing Combinational Circuits
93