K Maps in higher dimensions, Elements of Sequential Circuits (Latches)
CSE 140: Components and Design Techniques for Digital Systems
Diba Mirza
- Dept. of Computer Science and Engineering
University of California, San Diego
1
K Maps in higher dimensions, Elements of Sequential Circuits - - PowerPoint PPT Presentation
K Maps in higher dimensions, Elements of Sequential Circuits (Latches) CSE 140: Components and Design Techniques for Digital Systems Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego 1 Review Some
Diba Mirza
University of California, San Diego
1
2
3
Given f (a,b,c) = Σm (3, 5) + Σd (0, 4)
0 2 6 4 1 3 7 5
4
Given f (a,b,c) = Σm (3, 5) + Σd(0, 4)
0 2 6 4 1 3 7 5
5
Min exp: f(a,b,c) = (a+b)(c )(a’+b’)
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10
6
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10
7
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10
8
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 9
K-map
10
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10
Prime Implicates: ΠM (3,11), ΠM (12,13), ΠM(10,11), ΠM (4,12), ΠM (8,10,12,14) PI Q: Which of the following is a non-essential prime implicate?
11
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10
12 0 2 6 4 1 3 7 5
(V) (25pts) (Karnaugh Map) Use Karnaugh map to simplify function f (a, b, c) = Σ m(1, 6) +Σ d(0, 5). List all possible minimal product of sums expres-
13 0 2 6 4 1 3 7 5
0 4 12 8
1 5 13 9 3 7 15 11 2 6 14 10 16 20 28 24
17 21 29 25 19 23 31 27 18 22 30 26
14
0 4 12 8
1 5 13 9 3 7 15 11 2 6 14 10 16 20 28 24
17 21 29 25 19 23 31 27 18 22 30 26 15
48 52 60 56
49 53 61 57 51 55 63 59 50 54 62 58
32 36 44 40 33 37 45 41 35 39 47 43 34 38 46 42
0 4 12 8 1 5 13 9 3 7 15 11 2 6 14 10 16 20 28 24 17 21 29 25 19 23 31 27 18 22 30 26 16
17
we'll need a 4-variable Karnaugh map for each of the 3 output functions
block diagram LT EQ GT A B < C D A B = C D A B > C D A B C D N1 N2 A B C D LT EQ GT 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 and truth table
18
A' B' D + A' C + B' C D B C' D' + A C' + A B D' LT = EQ = GT = K-map for EQ K-map for LT K-map for GT
1
D A
1 1 1 1 1
B C
1 1
D A
1 1
B C
1 1 1 1 1
D A
1
B C
= (A xnor C) • (B xnor D) LT and GT are similar (flip A/C and B/D) A' B' C' D' + A' B C' D + A B C D + A B' C D’ Source: Rosing
19
block diagram and truth table 4-variable K-map for each of the 4
A2 A1 B2 B1 P8 P4 P2 P1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
P1 P2 P4 P8 A1 A2 B1 B2
20
K-map for P8 K-map for P4 K-map for P2 K-map for P1
B1 A2
1 1 1
A1 B2
1 1
B1 A2
1 1
A1 B2
1 1
B1 A2
1 1 1 1
A1 B2 B1 A2
1
A1 B2
21
Memory / Time steps Clock
t+1=gi(St,X)
22
23
24
Q Q Q Q I1 I2 I2 I1
Q Q Q Q I1 I2 I2 I1
25
26
– Q = 0: then Q’ = 1 and Q = 0
– Q = 1: then
Q Q I1 I2 1 1
Q Q I1 I2 1 1
27
28
R S Q Q N1 N2 1
R S Q Q N1 N2 1
29
30
R S Q Q N1 N2
31
R S Q Q N1 N2
What happens if Qprev=0 and Q’prev=0? A. The output Q toggles B. The output Q remains 0 and Q’ changes to 1 C. The output Q becomes 1 and Q’ remains 0
– S = 1, R = 1:
R S Q Q N1 N2 1 1
32