Analysis of Clocked Sequential Circuits and State Table and State Diagrams and Design Procedure
Analysis of Clocked Sequential Circuits and State Table and State Diagrams and Design Procedure
Computer Design
This Lecture
2
Analysis of Clocked Sequential Circuits
3
Analysis of Clocked Sequential Circuits
A(t+1)=Ax+Bx
B(t+1)=A’x
y(t)=(A(t)+B(t)).x’(t)
= (A+B)x’
4
Example of state tables
y(t)=(A(t)+B(t)).x’(t)
5
Example of state tables-2nd form
State equation:
y(t)=(A(t)+B(t)).x’(t)
6
Example of state diagram
7
Mealy & Moore
8
Example of Mealy Machine
9
Example of Moore Machine
10
State Reduction and Assignment
If two states are equal, one can be removed but what are equal
states?
11
State Reduction Example
State a a b c d e f f g f g a
input 0 1 0 1 0 1 1 0 1 0 0
output 0 0 0 0 0 1 1 0 1 0 0
12
State Reduction Example
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f g f 0 1
g a f 0 1
States e and g are equal since for each member of the set of
inputs, they give the same output and send the circuit either to
the same state or an equivalent state.
13
State Reduction Example
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f e f 0 1
Table and state diagram after the first reduction: g is removed and replaced by state e.
14
State Reduction Example
a a b 0 0
b c d 0 0
c a d 0 0
d e d 0 1
e a d 0 1
If we apply the same sequence
State a a b c d e d d e d e a
input 0 1 0 1 0 1 1 0 1 0 0
output 0 0 0 0 0 1 1 0 1 0 0
Table and state diagram after the second reduction: f is removed and replaced by state d.
15
Design Procedure
First Step: From the word description of the problem derive a state diagram
16
Design steps
17
State Table for Sequence Decoder
Present State Input Next State Output
A B x A B y
A(t+1)= Σ(3,5,7)
0 0 0 0 0 0
B(t+1)= Σ(1,5,7)
0 0 1 0 1 0
0 1 0 0 0 0 Y(A,B,x)= Σ(6,7)
0 1 1 1 0 0
1 0 0 0 0 0
1 0 1 1 1 0
1 1 0 0 0 1
1 1 1 1 1 1
18
Synthesis Using D Flip-Flops
A(t+1)=DA(A,B,x)= Σ(3,5,7)
B(t+1)=DB(A,B,x)= Σ(1,5,7)
Y(A,B,x)= Σ(6,7)
19
Logic Diagram for a Sequence Detector
DA = Ax + Bx
DB= Ax + B’x
y=AB
20
Excitation Tables
Why? Input equations for the circuit must be derived indirectly from the
state table
Excitation tables give us the flip-flop input for every state transition.
21
Excitation Tables- T flip-flop
22
Synthesis Using JK Flip-Flops
23
Synthesis Using JK Flip-Flops
24
Synthesis Using JK Flip-Flops
25
Synthesis Using T Flip-Flops
26
Synthesis Using T Flip-Flops
27
Synthesis Using T Flip-Flops
28
Synthesis Using T Flip-Flops
29
Summary
30