Unit IV Synchronous Sequential Circuits New
Unit IV Synchronous Sequential Circuits New
The flip-flop input equations are sometimes called the excitation equations.
The state table is sometimes called a transition table
Analysis of Mealy Model:
1. A Sequential Circuit has two JK Flip-Flops A and B , one input (x) and one output(y). The
flip-flop input functions are,
JA=B+x JB=A’+x’
KA=1 KB=1
and the circuit output function, Y=xA’B
a) Draw the logic diagram of the Mealy Cicuit,
b) Tabulate the state Table
c) Draw the state diagram.
Solution:
State Table:
To obtain the next-state values of a sequential circuit with JK Flip-Flops, Use the
JK Flip-Flop Characteristics table.
Present Input Flip-Flop Inputs Next State Output
State
A B C JA=B+x KA=1 JB=A’+B’ KB=1 A(t+1) B(t+1) Y=xA’B
0 0 0 0 1 1 1 0 1 0
0 0 1 1 1 1 1 1 1 0
0 1 0 1 1 1 1 1 0 0
0 1 1 1 1 1 1 1 0 1
1 0 0 0 1 1 1 0 1 0
1 0 1 1 1 0 1 0 0 0
1 1 0 1 1 1 1 0 0 0
1 1 1 1 1 0 1 0 0 0
2. A sequential circuit with two ‘D’ Flip-Flops A and B , one input(x) and one output(y).
The Flip-Flop input functions are:
DA=Ax+Bx
DB=A’x
And the circuit output function is Y=(A+B)x’
a) Draw the logic diagram of the Mealy Cicuit,
b) Tabulate the state Table
c) Draw the state diagram.
State Table:
State Diagram:
3. A sequential circuit has two JK Flip_Flop A and B. Flip_Flop input functions are
JA=B ` JB=X’
KA=Bx’ KB=A x.
a) Draw the logic diagram of the Circuit,
b) Tabulate the state Table
c) Draw the state diagram.
Solution:
Logic Diagram:
The output function is not given in the problem. The output of the Flip_Flops may be
considered as the output of the circuit.
State Table:
To obtain the next state values of a sequential circuit with JK Flip_Flop, use the
JK Flip_Flop Charateristics table:
Present State Input Flip_Flop input Next state
A B x JA=B KA=Bx’ ` JB=X’ KA=Bx’ A(t+1) B(t+1)
0 0 0 0 0 1 0 0 1
0 0 1 0 0 0 1 0 0
0 1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 1 0
1 0 0 0 0 1 1 1 1
1 0 1 0 0 0 0 1 0
1 1 0 1 1 1 1 0 0
1 1 1 1 0 0 0 1 1
Second form of state table:
State Diagram:
4. A Sequential Circuit has two JK Flip_Flops A and B two inputs x and y and one output z.
The Flip_Flop input equation and circuit output equations are
JA=Bx+B’y’ KA=B’xy’
JB=A’x KB=A+xy’
Z=Ax’y’+Bx’y’
a) Draw the logic diagram of the Circuit,
b) Tabulate the state Table
c) Derive the state equation.
Solution:
Logic diagram:
State Table:
To obtain the next-state values of a sequential circuit with JK Flip_Flop , use the
JK Flip_Flop Characteristic table,
Presen Inpu Flip_Flop Input Next state Output
t State t
A B X Y JA=Bx+B’y’ KA=B’xy’ JB=A’x KB=A+xy’ A(t+1) B(t+1) z
0 0 0 0 1 0 0 0 1 0 0
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 1 1 1 1 1 0
0 0 1 1 0 0 1 0 0 1 0
0 1 0 0 0 0 0 0 0 0 1
0 1 0 1 0 0 0 0 0 0 0
0 1 1 0 1 0 1 1 1 1 0
0 1 1 1 1 0 1 0 1 1 0
1 0 0 0 1 0 0 1 1 0 1
1 0 0 1 0 0 0 1 1 0 0
1 0 1 0 1 0 0 1 0 0 0
1 0 1 1 0 0 0 1 1 0 0
1 1 0 0 0 0 0 1 1 0 1
1 1 0 1 0 0 0 1 1 0 0
1 1 1 0 1 0 0 1 1 0 0
1 1 1 1 1 0 0 1 1 0 0
5. Analysis the synchronous Mealy Machine and obtain its state diagram.
Solution:
The given synchronous Mealy Machine consists of two D Flip_Flop, one inputs and one
output. The Flip_Flop input functions are
DA=Y1’Y2X’
DB=x+Y1’Y2
The circuit output function is Z=Y1Y2X
State Table:
Solution:
Using the assigned variable Y1 and Y2 for the two JK Flip_Flops, we can write the
four excitation input equations and the Moore output equation as follows:
JA=Y2X KA=Y2’
JB=X KB=X” and output function Z=Y1Y2’
State Diagram:
Here the output depends on the present state only and is independent of the input.
The two values inside each circle separated by a slash are for the present state and output.
7. A sequential circuit has two T Flip_Flop A and B. The Flip_Flop input functions are:
TA=Bx TB=x
y=AB
a. Draw the logic diagram of the Circuit,
b. Tabulate the state Table
c. Draw the state diagram:
Solution:
Logic Diagram:
State table:
Present State Input Flip_Flop input Next State Output
A B x TA=Bx TB=x A(t+1) B(t+1) y=AB
0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0
0 1 0 0 0 0 1 0
0 1 1 1 1 1 0 0
1 0 0 0 0 1 0 0
1 0 1 0 1 1 1 0
1 1 0 0 0 1 1 1
1 1 1 1 1 0 0 1
Any design process must consider the problem of minimizing the cost of the final circuit. The
two most obvious cost reductions are reductions in
number of flip-flops
number of gates.
The number of states in a sequential circuit is closely related to the complexity of the resulting
circuit. It is therefore desirable to know when two or more states are equivalent in all aspects.
The process of eliminating the equivalent or redundant states from a state table/diagram is known
as state reduction.
Example: Let us consider the state table of a sequential circuit shown in the below Table
x=0x=1 x= x=
0 1
A B C 1 0
B F D 0 0
C D E 1 1
D F E 0 1
E A D 0 0
F B C 1 0
It can be seen from the table that the present state A and F both have the same next states, B
(when x=0) and C (when x=1). They also produce the same output 1 (when x=0) and 0 (when
x=1). Therefore states A and F are equivalent. Thus one of the states, A or F can be removed
from the state table. For example, if we remove row F from the table and replace all F's by A's in
the columns, the state table is modified as shown in the below Table
It is apparent that states B and E are equivalent. Removing E and replacing E's by B's results in
the reduce table shown in below Table.
The removal of equivalent states has reduced the number of states in the circuit from six to four.
Two states are considered to be equivalent if and only if for every input sequence the circuit
produces the same output sequence irrespective of which one of the two states is the starting
state.
Example 2. Reduce the number of states in the following state diagram and draw the reduced
state diagram.
Step 1: Determine the state table for the given state diagram
The design of a synchronous sequential circuit starts from a set of specifications and
culminates in a logic diagram or a list of Boolean functions from which a logic diagram can be
obtained. In contrast to a combinational logic, which is fully specified by a truth table, a
sequential circuit requires a state table for its specification. The first step in the design of
sequential circuits is to obtain a state table or an equivalence representation, such as a state
diagram.
The number of flip-flops is determined from the number of states needed in the circuit.
The recommended steps for the design of sequential circuits are set out below.
The type of Flip-flop to be used may be included in the deisgn specifications ormay depend what
is available to the designer.
Flip-Flop Applications
JK General Applications
D Shift Register
T Binary Counters
In the first row of Table above, we have a transition for flip-flop Q0 from 0 in the present state to
0 in the next state. In Table 10 we find that a transition of states from 0 to 0 requires that input J
= 0 and input K = X. So 0 and X are copied in the first row under J0 and K0 respectively. Since
the first row also shows a transition for the flip-flop Q1 from 0 in the present state to 0 in the next
state, 0 and X are copied in the first row under J1 and K1. This process is continued for each row
of the table and for each flip-flop, with the input conditions as specified.
The simplified Boolean functions for the combinational circuit can now be derived. The input
variables are Q0, Q1, and x; the output are the variables J0, K0, J1 and K1. The information from
the truth table is plotted on the Karnaugh maps shown in Figure below.
Karnaugh Maps
Karnaugh maps
Highest Priority: States which have the same next state for a given input should be
given adjacent assignments.
Medium Priority: States which are the next states of the same state should be given
adjacent assignments.
lowest Priority:. States which have the same output for a given input should be given
adjacent assignments.
______________________
Now we will apply the state assignment rules and compare the results.
Applying Rule1 and Rule 2 to the state diagram we get the state
assignment as
______________________
7 gates with 18 inputs