Lecture18
Lecture18
Design
[Chap. 16]
May 25, 2006
1. Given the problem Statement, determine the relationship between the input and output
sequences and derive state table. Construct a State Graph.
2. Reduce the table to a minimum number of states. Eliminate duplicates rows by row matching
and then form an implication table.
3. Use Flip/flops for representing states. Assign a unique combination of F/F states corresponds
to in each state in reduced table.
5. Plot next-state map and input maps for F/F and derive the input F/F equations.
6. Realize the F/F input equations and output equations using available logic
TABLE 16-1
t3 t2 t1 t0 t3 t2 t1 t0
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0 4
t0 reset A B C 1 0
t1 0 B D F 1 0
1 C E G 0 1
00 D H L 0 1
t2 01 E I M 1 0
10 F J N 1 0
11 G K P 1 0
000 H A A 0 1
001 I A A 0 1
010 J A - 0 -
t3 011 K A - 0 -
100 L A - 0 -
101 M A - 1 -
110 N A - 1 -
111 P A - 1 -
5
t1 B D E 1 0
C E E 0 1
t2 D H H 0 1
E H M 1 0
t3 H A A 0 1
M A - 1 -
6
H I J K L , M N P and E F G
EE203 Digital System Design
16.2 Design Example-Code Converter
Z
Q1 Q2 Q3
Q1Q2 Q3 X=0 X=1 X=0 X=1
A 000 100 101 1 0
B 100 111 110 1 0
C 101 110 110 0 1
D 111 011 011 0 1
E 110 011 010 1 0
H 011 000 000 0 1
M 010 000 xxx 1 x
- 001 xxx xxx x x
8
(b)transition tableEE203 Digital System Design
16.2 Design Example-Code Converter
Figure 16-6 shows the form of the iterative circuit, although the
number of leads between each pair of cells is not yet know.
12
Si+1
Si XiYi = 00 01 11 Z1 Z2 Z3
10
X=Y S0 S0 S2 S0 S1 0 1 0
X>Y S1 S1 S1 S1 S1 0 0 1
X<Y S2 S2 S2 S2 S2 1 0 0
13
ai bi xiyi= 00 01 11 10 Z1 Z2 Z3
0 0 00 10 00 01 0 1 0
0 1 01 01 01 01 0 0 1
1 0 10 10 10 10 1 0 0
14
15
16
Z1 =1 if X < Y , Z2=1 if X = Y , Z3=1 if X > Y
EE203 Digital System Design
16.3 Design of Iterative Circuits
17
Figure 16-9 shows the resulting
circuit. EE203 Digital System Design
16.4 Design of Sequential Circuits Using ROMs and PLAs
A B C 1 0
B D E 1 0
C E E 0 1
D H H 0 1
E H M 1 0
H A A 0 1
M A - 1 -
18
A 0 0 0 001 010 1 0
B 0 0 1 011 100 1 0
C 0 1 0 100 100 0 1
D 0 1 1 101 101 0 1
E 1 0 0 101 110 1 0
H 1 0 1 000 000 0 1
K 1 1 0 000 - 1 -
X Q1 Q2 Q3 Z D1 D2 D3
TABLE 16-6
0 0 0 0 1 0 0 1
(c)Truth table 0 0 0 1 1 0 1 1
0 0 1 0 0 1 0 0
0 0 1 1 0 1 0 1
*ROM INPUTS
0 1 0 0 1 1 0 1
(X,Q1,Q3 and Q3) 0 1 0 1 0 0 0 0
0 1 1 0 1 0 0 0
*ROM 0 1 1 1 x x x x
OUTPUTS 1 0 0 0 0 0 1 0
(Z,D1,D2 and 1 0 0 1 0 1 0 0
D3) 1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 1 0 0 0 1 1 0
1 1 0 1 1 0 0 0
1 1 1 0 x x x x 20
1 1 1 1 x x
EE203 x SystemxDesign
Digital
16.4 Design of Sequential Circuits Using ROMs and PLAs
D1 Q1 Q2'
D2 Q2 Q1
D3 Q3 Q1Q2Q3 X 'Q1Q3' XQ1'Q2'
Z X 'Q3' XQ3
TABLE 16-7 X Q1 Q2 Q3 Z D1 D2 D3
- - 0 - 0 1 0 0
- 1 - - 0 0 1 0
- 1 1 1 0 0 0 1
0 1 - 0 0 0 0 1
1 0 0 - 0 0 0 1
0 - - 0 1 0 0 0
1 - - 1 1 0 0 0
22
Figure 16-13: CoolRunner-II Macrocell(Figure based on figures and text owned by Xilin
x, Inc., Courtesy of Xilinx, Inc. © Xilinx, Inc. 1999-2003. All rights reserved.)
28
29
30
Figure 16-23
Figure 16-25
37
38
39