Professional Documents
Culture Documents
Analysis of Clocked Sequential Circuits (Synchronous)
Analysis of Clocked Sequential Circuits (Synchronous)
Since the D input of a flip-flop determines the value 1.2 State Table
of the next state, the equations for the next state
are: The time sequence of inputs, outputs, and flip-flop
A(t + 1) = A(t ) x (t ) + B(t ) x (t ) states can be enumerated in a state table. This
can be generated from the logic diagram or the
B(t + 1) = A′(t ) x (t ) state equations. Two alternative forms for the
sequential circuit shown previously are as follows:
The left-side of each equation denotes the next
state of the flip-flop and the right-side specifies the
present state and the conditions that make the next
state equal to 1. These can be expressed in a
more compact form by omitting the (t):
A(t + 1) = Ax + Bx
B(t + 1) = A′x
3 4
The information available in a state table can be These fully specify the combinational logic that
represented graphically in a form of a state drives the flip-flops and they imply the type of flip-
diagram. In this diagram, a state is represented by flop from the letter symbol. The input equations for
a circle, and the transitions between states by the circuit analysed before and shown below are:
directed lines connecting the circles:
DA = Ax + Bx
DB = A′x
Example: Analyze the clocked sequential circuit The next state values of a sequential circuit that
described by the input equation: uses JK or T flip-flops can be derived from:
DA = A ⊕ x ⊕ y A) the characteristic table, or
Solution: B) the characteristic equation.
7 8
The circuit can be specified by the flip-flop input Procedure for method B:
equations:
Determine the flip-flop input equations in terms
JA = B K A = Bx ′ of the present state and input variables.
JB = x ′ K B = A′x + Ax ′ = A ⊕ x Substitute the input equations into the flip-flop
characteristic equation to obtain the state
The state table is: equations.
Use the corresponding state equations to
determine next state values in the state table.
B(t + 1) = JB′ + K ′B
9 10
Similarly, the state equation for flip-flop B can be 1.7 Analysis with T Flip-Flops
derived from the characteristic equation by
substituting the values of JB and KB: As with JK flip-flops, the next state values can be
obtained either by using the characteristic table:
B(t + 1) = x ′B′ + ( A ⊕ x )′B = B ′x + ABx + A′Bx ′
Q(t + 1) = T ⊕ Q = T ′Q + TQ ′
It can be described algebraically by two input The state diagram for the circuit is shown below:
equations and an output equation:
TA = Bx
TB = x
y = AB
The state table for this circuit is listed below:
B(t + 1) = x ⊕ B
13 14
15 16
2. State Reduction & Assignment There are an infinite number of input sequences
that may be applied; each results in a unique
output sequence. Consider the input sequence
Sometimes certain properties of sequential circuits
may be used to reduce the number of gates and 01010110100 starting from the initial state a:
flip-flops during the design.
The problem of state reduction is to find ways of
reducing the number of states in a sequential
circuit, while keeping the external input-output
An algorithm for the state reduction quotes that:
relationships unchanged.
For example, suppose a sequential circuit is “Two states are said to be equivalent if, for each
specified by the following seven-state diagram: member of the set of inputs, they give exactly the
same output and send the circuit either to the
same state or to an equivalent state.”
17 18
3.1 Design Example Using D Flip-Flops: Once the state diagram has been derived, the rest
We wish to design a circuit that detects three or of the design follows a straightforward synthesis
more consecutive 1’s in a string of bits coming procedure.
through an input line. The next step is to assign binary codes to the
states and list the state table:
Solution:
The state diagram for the circuit is:
It is derived by staring with state S0. If the input is The D flip-flop input equations can be obtained
0, the circuit stays in S0, but if the input is 1, it goes directly from the next state columns of A and B and
to state S1 to indicate that a 1 was detected. If the expressed in sum of minterms as:
next input is 1, the change is to state S2 to indicate
the arrival of two consecutive 1’s, but if the input is A(t + 1) = DA ( A, B, x ) = ∑ (3, 5, 7)
0, it goes back to S0. The third consecutive 1 sends B(t + 1) = DB ( A, B, x ) = ∑ (1, 5, 7)
the circuit to state S3. If more 1’s are detected, the
circuit stays at S3. Any 0 input sends the circuit The minterms for output y are:
back to S0. In this way, the circuit stays at S3 as
long as three or more consecutive 1’s are received. y ( A, B, x ) = ∑ (6, 7)
23 24
The Boolean equations are simplified by means 3.2 JK and T Flip-Flop Excitation Tables
the maps:
When D flip-flops are employed, the input
equations are obtained directly from the next
state. This is not the case for the JK and T types
of flip-flops. In order to determine the input
equations for these flip-flops, it is necessary to
derive a functional relationship between the state
table and input equations.
An excitation table lists the required inputs for a
Finally, the logic diagram of the sequence detector given change in state. The excitation tables for the
is: JK and T flip-flops are: