Chapter 5 Synchronous Sequential Circuit
Chapter 5 Synchronous Sequential Circuit
Chapter 5 Synchronous Sequential Circuit
Prepared by
S.Senthurpriya, AP/ECE
0
Example AB=00
Q Q
D CLK
Q Q
Q Q
Q Q
CLK
= A x
y(t) = [A(t)+ B(t)] x(t) = (A + B) x
Output
Q Q
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1 t
x 0 1 0 1 0 1 0 1
A 0 0 0 1 0 1 0 1 t+1
B 0 1 0 1 0 0 0 0
y 0 0 1 0 1 0 1 0 t
D CLK
Q Q
A(t+1) = A x + B x
B(t+1) = A x y(t) = (A + B) x
3
Present State
Q Q
A 0 0 1 1
B 0 1 0 1
A 0 0 0 0
B 0 0 0 0
A 0 1 1 1
B 1 1 0 0
y 0 1 1 1 t
y 0 0 0 0
D CLK
Q Q
t+1
A(t+1) = A x + B x
B(t+1) = A x y(t) = (A + B) x
4
input/output
1/0 0/1
10
A B 0 0
A B A B 0 0 0 1
y 0
y 0
0/0
00
0 1
1 0 1 1
0
0 0
0
0 0
1
1 1
1
0 0
1
1 1
0
0 0
0/1 1/0
01
Q Q
0/1
11
1/0
D CLK
Q Q
1/0
Example:
Present Input State Next State
x y
CLK
Q
Q
A 0 0 0 0 1 1 1 1
x 0 0 1 1 0 0 1 1
y 0 1 0 1 0 1 0 1
A 0 1 1 0 1 0 0 1
A(t+1) = DA = A x y
01,10 00,11
0
01,10
00,11
Example:
Present Next I/P State State A B x A B 0 0 0 0 1 0 0 0 1 1 1 0 1 1 0 0 1 1 0 1 0 1 0 Flip-Flop Inputs JA KA JB KB 0 0 1 0
J K CLK
Q Q
0
1 1 1 1 0 1
0
1 0 1 0 0 1
0
1 1 0
0
1 0 0
0
1 0 1
1
0 1 1
JA = B JB = x
KA = B x KB = A x
0
1 1
0
1 0
0
1 0
0
1 0
Example:
Present Next I/P State State A B x A B 0 0 0 0 1 0 0 0 1 1 1 0 1 1 0 0 1 1 0 1 0 1 0 Flip-Flop Inputs JA KA JB KB 0 0 1 0
J K CLK
Q Q
0
1 1 1 1 0 1
0
1 0 1 0 0 1
0
1 1 0
0
1 0 0
0
1 0 1
1
0 1 1
1
00
0
11
0
01
0
10
0
1 1
0
1 0
0
1 0
0
1 0
1
8
Example:
Present Next F.F I/P O/P State State Inputs A B x A B TA TB y 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 0 0 1 0 0 1 0 0 0 0 0 1 1
T
Q B R Q
CLK
Reset
TA = B x y =AB
TB = x
0
0 1
1
0 1
Example:
Present Next F.F I/P O/P State State Inputs A B x A B TA TB y 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 0 0 1 0 0 1 0 0 0 0 0 1 1
T
Q B R Q
CLK
Reset
0/0
00
0/0
1/0
01
0
0 1
1
0 1
1/1
11 10
0/1
The Moore model: the outputs are functions of the present state only (Fig. 5-20).
The outputs are synchronous with the clocks.
11
Moore
Present State A B 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1 I/P x 0 1 0 1 0 1 0 1 Next O/P State A B y 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1
For the same state, the output changes with the input
For the same state, the output does not change with the input
13
1
11/1
1
10/0
1
0 0
14
State Reduction
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
Equivalent states
Two states are said to be equivalent
For each member of the set of inputs, they give exactly the same output and send the circuit to the same state or to an equivalent state. One of them can be removed.
17
18
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
19
The checking of each pair of states for possible equivalence can be done systematically using Implication Table. The unused states are treated as don't-care condition fewer combinational gates.
Design Procedure
Design Procedure for sequential circuit
The word description of the circuit behavior to get a state diagram;
S1 / 0 1
State A B S0 0 0 S1 0 1 S2 1 0 1 1 S3
0 S3 / 1 S2 / 0 1
22
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
x 0 1 0 1 0 1 0 1
A 0 0 0 1 0 1 0 1
B 0 1 0 0 0 1 0 1
y 0 0 0 0 0 0 1 1
0
S0 / 0
1 S1 / 0
0
0 0 1
S3 / 1 1
S2 / 0
1
23
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
x 0 1 0 1 0 1 0 1
A 0 0 0 1 0 1 0 1
B 0 1 0 0 0 1 0 1
y 0 0 0 0 0 0 1 1
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)
24
B 0 0 1 0 A 0 1 1 0 x B 0 1 0 0 A 0 1 1 0 x
y (A, B, x) = (6, 7)
=AB
B 0 0 0 0
A 0 0 1 1 x
25
DA = A x + B x DB = A x + B x y =AB
D CLK x D Q Q y A
Q Q
26
Q(t) Q(t+1) 0 0 0 1 1 0 1 1
D 0 1 0 1
J 0 1 x x T 0 1 1 0
K x x 1 0
0 0 (No change) 0 1 (Reset) 1 0 (Set) 1 1 (Toggle) 0 1 (Reset) 1 1 (Toggle) 0 0 (No change) 1 0 (Set)
27
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
x 0 1 0 1 0 1 0 1
A 0 0 0 1 0 1 0 1
B JA 0 0 1 0 0 0 0 1 0 x 1 x 0 x 1 x
KA x x x x 1 0 1 0
JB KB 0 x 1 x x 1 x 1 0 x 1 x x 1 x 0
JA (A, B, x) = (3) dJA (A, B, x) = (4,5,6,7) KA (A, B, x) = (4, 6) dKA (A, B, x) = (0,1,2,3) JB (A, B, x) = (1, 5) dJB (A, B, x) = (2,3,6,7) KB (A, B, x) = (2, 3, 6) dKB (A, B, x) = (0,1,4,5)
28
JA = B x
JB = x
KA = x
KB = A + x
J Q Q A y K
B 0 0 1 0 A x x x x x B 0 1 x x A 0 1 x x x
B x x x x A 1 0 0 1 x B x x 1 1 A x x 0 1 x
J K CLK
Q Q
29
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
x 0 1 0 1 0 1 0 1
A 0 0 0 1 0 1 0 1
B 0 1 0 0 0 1 0 1
TA 0 0 0 1 1 0 1 0
TB 0 1 1 1 0 1 1 0
30
TA = A x + A B x TB = A B + B x
B 0 0 1 0 A 1 0 0 1 x B 0 1 1 1 A 0 1 0 1 x
Q x T Q Q A y
CLK
31