Lecture 3: Incompletely Specified Functions and K Maps
CSE 140: Components and Design Techniques for Digital Systems Spring 2014
CK Cheng, Diba Mirza
- Dept. of Computer Science and Engineering
University of California, San Diego
1
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: - - PowerPoint PPT Presentation
Lecture 3: Incompletely Specified Functions and K Maps CSE 140: Components and Design Techniques for Digital Systems Spring 2014 CK Cheng, Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego 1
CK Cheng, Diba Mirza
University of California, San Diego
1
2
3
Id a b f (a, b) 0 0 0 1 1 0 1 0 2 1 0 1 3 1 1 X: don’t care
4
Id a b g(a,b,c) 0 0 0 0 1 0 1 X 2 1 0 1 3 1 1 0
5
How to completely specify the truth table in canonical form? We have three types of output which divides the input space into three sets: Onset F: All the input conditions for which the output is 1 Offset R: All the input conditions for which the output is 0 Don’t care D: All the input conditions for which the output is a ‘don’t care’ Id a b g(a,b,c) 0 0 0 0 1 0 1 X 2 1 0 1 3 1 1 0
6
F (a, b) = Σm(2)= m(2) R(a, b) = Σm(0,3) D= m(1) Id a b g(a,b,c) 0 0 0 0 1 0 1 X 2 1 0 1 3 1 1 0
7
Id a b g(a,b,c) 0 0 0 0 1 0 1 X 2 1 0 1 3 1 1 0
8
Id a b g(a,b,c) 0 0 0 0 1 0 1 X 2 1 0 1 3 1 1 0
9
Id a b g(a,b,c) 0 0 0 0 1 0 1 1 2 1 0 1 3 1 1 0
10
Id a b g(a,b,c) 0 0 0 0 1 0 1 1 2 1 0 1 3 1 1 0
11
12
13
Id a b f (a, b) 0 0 0 0 1 0 1 X 2 1 0 1 3 1 1 0
14
Id a b f (a, b) 0 0 0 0 1 0 1 0 2 1 0 1 3 1 1 X
15
Id a b f (a, b) 0 0 0 0 1 0 1 0 2 1 0 1 3 1 1 X
16
17
Flow 1: 1. Specification 2. Truth Table 3. Sum of Products or Product of Sums canonical form 4. Reduced expression using Boolean Algebra 5. Schematic Diagram of Two Level Logic Flow 2: 1. Specification 2. Truth Table 3. Karnaugh Map (truth table in two dimensional space) 4. Reduce using K’Maps 5. Reduced expression (SOP or POS) 6. Schematic Diagram of Two Level Logic
18
A=0 A=1 B=0
B=1
19
20
21
22
A=0 A=1 B=0
B=1
23
ID A B f(A,B) 1 1 1 2 1 1 3 1 1 1
24
ID A B f(A,B) 1 1 1 2 1 1 3 1 1 1
25
Id a b f (a, b) 0 0 0 f (0, 0) 1 0 1 f (0, 1) 2 1 0 f (1, 0) 3 1 1 f (1, 1)
26
(0,1,1,1) (0,1,1,0) (0,0,0,0) (0,0,0,1) (1,0,0,1) (1,1,1,1) (1,1,0,1) (1,0,0,0) (0,0,1,0) (1,1,1,0) (0,0,1,1) (1,0,1,1) (0,1,0,1) (1,0,1,0)
D C B A
27
ID A B C f(A,B,C) f(0,0,0) 1 1 f(0,0,1) 2 1 f(0,1,0) 3 1 1 f(0,1,1) 4 1 f(1,0,0) 5 1 1 f(1,0,1) 6 1 1 f(1,1,0) 7 1 1 1 f(1,1,1)
(A,B)
(0,0) (0,1) (1,0) (1,1) C=0 f(0,0,0) f(0,1,0) f(1,0,0) f(1,1,0) C=1 f(0,0,1) f(0,1,1) f(1,0,1) f(1,1,1)
K Map 1
(A,B)
(0,0) (0,1) (1,1) (1,0) C=0 f(0,0,0) f(0,1,0) f(1,1,0) f(1,0,0) C=1 f(0,0,1) f(0,1,1) f(1,1,1) f(1,0,1)
K Map 2 A: K’ Map 1 B: K’ Map 2 C: Both K Maps 1 and 2 D: Neither K Map 1 or 2
28
ID A B C f(A,B,C) f(0,0,0) 1 1 f(0,0,1) 2 1 f(0,1,0) 3 1 1 f(0,1,1) 4 1 f(1,0,0) 5 1 1 f(1,0,1) 6 1 1 f(1,1,0) 7 1 1 1 f(1,1,1)
(A,B)
(0,0) (0,1) (1,0) (1,1) C=0 f(0,0,0) f(0,1,0) f(1,0,0) f(1,1,0) C=1 f(0,0,1) f(0,1,1) f(1,0,1) f(1,1,1)
K Map 1
(A,B)
(0,0) (0,1) (1,1) (1,0) C=0 f(0,0,0) f(0,1,0) f(1,1,0) f(1,0,0) C=1 f(0,0,1) f(0,1,1) f(1,1,1) f(1,0,1)
K Map 2 A: K’ map 1 B: K’ map 2: Although map 1 is a correct mapping of the truth table it is not useful in getting a reduced expression because terms in adjacent cells cannot be combined C: Both K maps 1 and 2 D: Neither K map 1 or 2
29
0 2 6 4 1 3 7 5
Id a b c f (a,b,c) 0 0 0 0 1 1 0 0 1 0 2 0 1 0 1 3 0 1 1 0 4 1 0 0 1 5 1 0 1 0 6 1 1 0 1 7 1 1 1 0
30
0 2 6 4 1 3 7 5
Id a b c f (a,b,c) 0 0 0 0 1 1 0 0 1 0 2 0 1 0 1 3 0 1 1 0 4 1 0 0 1 5 1 0 1 0 6 1 1 0 1 7 1 1 1 0
31
C 00 01 1 Y 11 10 AB 1 1 C 00 01 1 Y 11 10 AB ABC ABC ABC ABC ABC ABC ABC ABC B C 1 1 1 1 A 1 1 1 1 1 1 1 1 1 1 Y
32
C 00 01 1 Y 11 10 AB 1 1
B C 1 1 1 1 A 1 1 1 1 1 1 1 1 1 1 Y
33
0 2 6 4 1 3 7 5
Id a b c f (a,b,c) 0 0 0 0 0 1 0 0 1 0 2 0 1 0 1 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 X 7 1 1 1 1
34
0 2 6 4 1 3 7 5
Id a b c f (a,b,c) 0 0 0 0 0 1 0 0 1 0 2 0 1 0 1 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 X 7 1 1 1 1
35
0 2 6 4 1 3 7 5
Id a b c f (a,b,c,d) 0 0 0 0 1 1 0 0 1 1 2 0 1 0 X 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 0 7 1 1 1 0
36
0 2 6 4 1 3 7 5
Id a b c f (a,b,c,d) 0 0 0 0 1 1 0 0 1 1 2 0 1 0 X 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 0 7 1 1 1 0
37
0 2 6 4 1 3 7 5
Id a b c f (a,b,c,d) 0 0 0 0 1 1 0 0 1 1 2 0 1 0 X 3 0 1 1 0 4 1 0 0 1 5 1 0 1 1 6 1 1 0 0 7 1 1 1 0
38
C 00 01 1 Y 11 10 AB 1 1 1 1 C 00 01 1 Y 11 10 AB ABC ABC ABC ABC ABC ABC ABC ABC B C 1 1 1 1 A 1 1 1 1 1 1 1 1 1 1 1 1 Y
39