Professional Documents
Culture Documents
com
UNIT V
SYNCHRONOUS AND ASYNCHRONOUS
SEQUENTIAL CIRCUITS
« The State
● State = Values of all Flip-Flops
Example x
D Q A
AB=00
Q
D Q B
CLK Q
« State Equations
x
A(t+1) = DA D Q A
=Ax+Bx
B(t+1) = DB D Q B
0 1 1 1 1 0 y
1 0 0 0 0 1
1 0 1 1 0 0
1 1 0
A(t+1) = A x + B x
0 0 1
1 1 1 1 0 0 B(t+1) = A’ x
y(t) = (A + B) x’
t t+1 t study materials from www.rejinpaul.com
Get useful
4
Analysis of Clocked Sequentialwww.rejinpaul.com
Circuits
A B A B A B y y
0 0 0 0 0 1 0 0 D Q B
0 1 0 0 1 1 1 0 CLK Q
1 0 0 0 1 0 1 0 y
1 1 0 0 1 0 1 0
t t+1 t A(t+1) = A x + B x
B(t+1) = A’ x
y(t) = (A + B) x’
Get useful study materials from www.rejinpaul.com
5
Analysis of Clocked Sequentialwww.rejinpaul.com
Circuits
« State Diagram Next State Output
Present
State x=0 x=1 x=0 x=1
AB input/output A B A B A B y y
0 0 0 0 0 1 0 0
0 1 0 0 1 1 1 0
0/0 1/0
1 0 0 0 1 0 1 0
0/1 1 1 0 0 1 0 1 0
00 10
x
D Q A
0/1
Q
1/0 0/1 1/0
D Q B
CLK Q
01 11
y
« D Flip-Flops
Example:
x D Q A
Present Next y
Input
State State
CLK Q
A x y A
0 0 0 0
0 0 1 1 A(t+1) = DA = A x y
0 1 0 1
0 1 1 0
1 0 0 1 01,10
1 0 1 0
00,11 0 1 00,11
1 1 0 0
1 1 1 1 01,10
Get useful study materials from www.rejinpaul.com
7
Analysis of Clocked Sequentialwww.rejinpaul.com
Circuits
« JK Flip-Flops J Q A
Example: x K Q
« JK Flip-Flops J Q A
Example: x K Q
0 0 0 0 1 0 0 1 0 CLK
0 0 1 0 0 0 1
1 0 1
0 0
0 1 0 1 1 1 1 1 0 00 11
0 1 1 1 0 1 0 0 1
0
1 0 0 1 1 0 0 1 1 0 0
1 0 1 1 0 0 0 0 0
1 1 0 0 0 1 1 1 1 01 10
1
1 1 1 1 1 1 0 0 0 1
Get useful study materials from www.rejinpaul.com
9
Analysis of Clocked Sequentialwww.rejinpaul.com
Circuits
x A
« T Flip-Flops T Q y
Example: R Q
Example: R Q
Mealy Moore
Present Next Present Next
I/P O/P I/P O/P
State State State State
A B x A B y A B x A B y
0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 1 0 1 0
0 1 0 0 0 1 0 1 0 0 1 0
0 1 1 1 1 0 0 1 1 1 0 0
1 0 0 0 0 1 1 0 0 1 0 0
1 0 1 1 0 0 1 0 1 1 1 0
1 1 0 0 0 1 1 1 0 1 1 1
1 1 1 1 0 0 1 1 1 0 0 1
State / Output
0 0
1
00/0 01/0
1 1
11/1 10/0
1
0 0
Get useful study materials from www.rejinpaul.com
15
www.rejinpaul.com
State Reduction and Assignment
« State Reduction
Reductions on the
number of flip-flops and
the number of gates.
● A reduction in the
number of states may
result in a reduction in
the number of flip-flops.
● An example state
diagram showing in Fig.
5.25.
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
● Only the input-output
sequences are important.
● Two circuits are
equivalent
♦ Have identical outputs for
all input sequences;
♦ The number of states is
not important.
« 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.
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
Get useful study materials from www.rejinpaul.com
20
www.rejinpaul.com
« (a, b) imply (c, d) and (c, d) imply (a, b). Both pairs of states
are equivalent; i.e., a and b are equivalent as well as c and d.
« State Assignment
« To minimize the cost of the combinational circuits.
● Three possible binary state assignments. (m states need
n-bits, where 2n > m)
« Example:
Detect 3 or more consecutive 1’s
0 1
S0 / 0 S1 / 0
0 State A B
S0 0 0
0 1
0 S1 0 1
S2 1 0
S3 / 1 S2 / 0 S3 1 1
1 1
Get useful study materials from www.rejinpaul.com
30
www.rejinpaul.com
Design of Clocked Sequential Circuits
« Example:
Detect 3 or more consecutive 1’s
Present Next
Input Output
State State
A B x A B y 0 1
0 0 0 0 0 0 S0 / S1 /
0 0 1 0 1 0 0 0
0
0 1 0 0 0 0
0 1 1 1 0 0 0 0 1
1 0 0 0 0 0
1 0 1 1 1 0 S3 / S2 /
1 1 0 0 0 1 1 0
1 1 1 1 1 1 1 1
Get useful study materials from www.rejinpaul.com
31
www.rejinpaul.com
Design of Clocked Sequential Circuits
« Example:
Detect 3 or more consecutive 1’s
Present Next
Input Output
State State
A B x A B y Synthesis using D Flip-Flops
0 0 0 0 0 0
0 0 1 0 1 0 A(t+1) = DA (A, B, x)
0 1 0 0 0 0 = ∑ (3, 5, 7)
0 1 1 1 0 0 B(t+1) = DB (A, B, x)
1 0 0 0 0 0
1 0 1 1 1 0 = ∑ (1, 5, 7)
1 1 0 0 0 1 y (A, B, x) = ∑ (6, 7)
1 1 1 1 1 1
Get useful study materials from www.rejinpaul.com
32
www.rejinpaul.com
Design of Clocked Sequential Circuits with
D F.F.
« Example:
Detect 3 or more consecutive 1’s
DA = A x + B x
D Q A
DB = A x + B’ x x
y = AB Q
y
D Q B
CLK Q
Q(t) Q(t+1) T
0 0 0
0 1 1
1 0 1
1 1 0
Get useful study materials from www.rejinpaul.com
35
www.rejinpaul.com
Design of Clocked Sequential Circuits with
JK F.F.
« Example:
Detect 3 or more consecutive 1’s
Q y
B B
T Q B
0 0 1 0 0 1 1 1 Q
A 1 0 0 1 A 0 1 0 1
CLK
x x
Get useful study materials from www.rejinpaul.com
39