Академический Документы
Профессиональный Документы
Культура Документы
Lecture 3: 1
Announcements
• Lab 2 is on CMS
– Tutorial B: CAD tool installation
Lecture 3: 2
Boolean Function Representations
• Y = 1 if and only if A•B ≠ (B’+C) ABC Y
000 1
• Step 1: Lay out the truth table 001 1
010 0
• Step 2: Derive canonical forms 011 1
– Canonical sum 100 1
Y = A’•B’•C’ + A’•B’•C + A’•B•C + A•B’•C’ 101 1
+ A•B’•C + A•B•C’ = ∑A,B,C (0,1,3,4,5,6) 110 1
– Canonical product
111 0
Y = (A+B’+C)(A’+B’+C’) = ∏A,B,C (2,7)
Lecture 3: 4
Two-Level Logic: Sum-of-Products
• Sum of product terms (SOP)
– e.g., A’•B’ + A’•C’ + A•B•C
inputs output
AND-OR
Lecture 3: 5
Two-Level Logic: Product-of-Sums
• Product of sum terms (POS)
– e.g., (A’+C’) • (B’+C’) • (A+B+C)
OR-AND
Combinational logic can be expressed as SOP or POS
Lecture 3: 6
Algebraic Simplification
• Apply theorems to canonical sum (product) to
reduce (1) the number of terms, and (2) the
number of literals in each term
Lecture 3: 7
Algebraic Simplification Example
A
• Binary adder B
S
Cout
– inputs: A, B, Carry-in (Cin) Cin
– outputs: Sum, Carry-out (Cout)
Lecture 3: 9
Reduction in Hardware Cost
3 inverters
3 two-input ANDs
4 three-input ANDs à 1 three-input OR
1 four-input OR
Lecture 3: 10
Karnaugh Map (K-Map)
• Idea: Use combining and idempotency theorems
visually to simplify canonical forms (into two-
level SOP or POS)
Lecture 3: 12
Some K-Map Definitions
• 1-cell: Minterm of a canonical sum
1 0 1 1 1
Lecture 3: 13
Minimization Using K-Map
• Goal: Cover all 1-cells with the minimum number
of prime implicants
• Procedure
– Plot 1’s corresponding to minterms of function
– Circle largest possible rectangular sets of 1’s
• Must be power of 2
• Including “wrap-around” sets
– Repeat until all minterms are covered
– OR product terms derived from each circle
AB
Cin 00 01 11 10
Ovals result from
0 0 0 1 0 applying combining
theorem
1 0 1 1 1 Idempotency theorem
allows ovals to overlap
Lecture 3: 15
3 Variable K-Map Example
F=ΣA,B,C(4,5,6,7)
AB
C 00 01 11 10
0 1 1
F=A
1 1 1
Lecture 3: 16
Another Example
F=ΣA,B,C(0,1,2,4,5,7)
AB
C 00 01 11 10
0 1 1 1
A’•C’
1 1 1 1
B’ A•C
F = A’•C’ + B’ + A•C
Lecture 3: 17
4 Variable K-Map
AB
CD 00 01 11 10
00
01
11
10
Lecture 3: 18
Combining Theorem in Action
AB
CD 00 01 11 10
00
01 1 1
11 1 1
10
00 1 1
01
11
10 1 1
00 1
01 1 1
11 1 1
10 1
F = B•D + A•B
Lecture 3: 21
Another Example
• Detect all even digits from 0 to 15 except 6
– F=ΣA,B,C,D(0,2,4,8,10,12,14)
AB
CD 00 01 11 10
00 1 1 1 1
01
11
10 1 1 1
Lecture 3: 23
Product-of-Sums Example
F=πA,B,C,D(0, 2, 6, 7, 8, 10)
AB
CD 00 01 11 10
Corners:
00 0 0 B+D
01 Other:
11 0 A+B’+C’
10 0 0 0
F=(B+D)•(A+B’+C’)
Lecture 3: 24
Before Next Class
• H&H 1.7, 2.8
Next Time
CMOS Logic
Lecture 3: 25