Professional Documents
Culture Documents
NTUEE C.M. Li
Logic Design
NTUEE C.M. Li
Ch 15
Ch 12
Ch 13
Ch 16
K-map
FF, Comb Logic
Logic Design
NTUEE C.M. Li
Outline
Logic Design
NTUEE C.M. Li
NTUEE C.M. Li
Logic Design
Complete graph
Present
Output
X=0 X=1
S0
S1
S2
S5
S3
S6
S4
0
0
0
0
0
0
0
B
D
E
H
J
A
A
Logic Design
C
E
D
H
H
A
A
0
0
0
0
0
0
1
Fig. 15-1 (b)
NTUEE C.M. Li
Question!
I am not very smart .
A
0
C
0
D
0
F
1
K L
M N
NTUEE C.M. Li
Logic Design
Before
State table
Table 15-1
Input
Present
Sequence
State
reset
0
1
00
01
10
11
000
001
010
011
100
101
110
111
Logic Design
A
B
C
D
E
F
G
H
I
J
K
L
M
N
P
Next State
X=0
B
D
F
H
J
L
N
A
A
A
A
A
A
A
A
X=1
C
E
G
I
K
M
P
A
A
A
A
A
A
A
A
NTUEE C.M. Li
Present Output
X=0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
X=1
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
After
State table
Table 15-2
Input
Present
Sequence
State
reset
0
1
00
01
10
11
000
001
010
011
100
101
110
111
Logic Design
A
B
C
D
E
F
G
H
I
J
K
L
M
N
P
Next State
X=0
B
D
F
H
J
L
N
A
A
A
A
A
A
A
A
X=1
C
E
G
I
K
M
P
A
A
A
A
A
A
A
A
Present Output
X=0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
X=1
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
NTUEE C.M. Li
Outline
Logic Design
NTUEE C.M. Li
10
Equivalent State
Definition 15.1 pq
10101110101110.
Logic Design
NTUEE C.M. Li
11
Theorem 15.1
Two states p and q of a sequential circuit are equivalent iff for every
SINGLE input X,
the outputs are the same ; (p,X) = (q, X)
and the next states are equivalent. (p, X) (q, X)
Logic Design
NTUEE C.M. Li
12
Logic Design
NTUEE C.M. Li
13
Outline
Logic Design
NTUEE C.M. Li
14
NTUEE C.M. Li
Logic Design
15
First Pass
Fig 15-4
Square can be cross out if
ANY ONE implied pair NOT
equivalent
Logic Design
NTUEE C.M. Li
16
Second Pass
Fig 15-4
a-g is crossed out because
b-d NOT equivalent
NTUEE C.M. Li
Logic Design
17
Final Result
After third pass, nothing change
stop
Results
ad
ce
Logic Design
NTUEE C.M. Li
18
Outline
Logic Design
NTUEE C.M. Li
19
Logic Design
NTUEE C.M. Li
20
Logic Design
21
NTUEE C.M. Li
A ! S0, A ! S3
A S1 if B S3, A S0
Logic Design
X=0 X=1
X=0 X=1
X=0 X=1
X=0 X=1
S0
S3
S1
S1
S3
S0
S2
S0
S2
S3
S2
S3
NTUEE C.M. Li
22
Logic Design
NTUEE C.M. Li
23
FFT
Why is checking equivalent states so important?
Logic Design
NTUEE C.M. Li
24
Outline
NTUEE C.M. Li
Logic Design
25
t0 t1 t2
X=1 0 0
X=1 1 0
Logic Design
t0 t1 t2
Z= - Z= - -
0
1
NTUEE C.M. Li
26
How to Reduce?
Fill the dont cares in appropriate manner and reduce the table
Example Table 15-5
t0 t1 t2
t0 t1 t2
X=1 0 0
X=1 1 0
Z= - Z= - -
0
1
Merge S0 S2
Merge S1 S3
X=0 X=1
X=0 X=1
X=0 X=1
X=0 X=1
X=0 X=1
X=0 X=1
S0 -
S1
S0 (S0) S1
(0)
S0 S0
S1
S1 S2
S3
S1 S0
S3
(1)
S1 S0
S1
S2 S0
S2 S0
(S1)
S3 S0
S3 S0
(S3)
Logic Design
NTUEE C.M. Li
27
Logic Design
NTUEE C.M. Li
28
Outline
Logic Design
NTUEE C.M. Li
29
Logic Design
NTUEE C.M. Li
30
reduced table
See 15.8 for more
2. Construct a transition table which gives the next states of FF as a
function of present states and inputs
3. Derive the next-state map for the transition table
4. Find FF input map from the next-state map
See Ch 12
5. Find FF input equations
Logic Design
NTUEE C.M. Li
31
Example
Table 15-6
Assign states
Logic Design
NTUEE C.M. Li
32
NTUEE C.M. Li
Logic Design
33
Another Example
Table 15-7
Logic Design
NTUEE C.M. Li
34
Use SR FF
Logic Design
NTUEE C.M. Li
35
Outline
Logic Design
NTUEE C.M. Li
36
State Assignment
What is it?
Logic Design
NTUEE C.M. Li
37
Adjacent States
Two states are adjacent if their code differ in only one variable
Logic Design
NTUEE C.M. Li
38
Logic Design
NTUEE C.M. Li
39
Example
State Table Fig 15-14
Rule 1 (S0, S1, S3, S5) (S3, S5), (S4, S6), (S0, S2, S4, S6)
Rule 2 (S1, S2) (S2, S3) (S1, S4)
(S2, S5) x2
(S1, S6) x2
Logic Design
NTUEE C.M. Li
40
Logic Design
NTUEE C.M. Li
41
Next-state map
Adjacent states help to simplify K map
Logic Design
NTUEE C.M. Li
42
Logic Design
NTUEE C.M. Li
43
Final Notice
Not possible to satisfy all guidelines
Logic Design
NTUEE C.M. Li
44
Next Time
Logic Design
NTUEE C.M. Li
45