You are on page 1of 8

lOMoARcPSD|35477619

Analysis of clocked sequential circuits (synchronous)

digital electronics (Moradabad Institute of Technology, moradabad)

Studocu is not sponsored or endorsed by any college or university


Downloaded by keerthana subramani (hmpudur1968@gmail.com)
lOMoARcPSD|35477619

Synchronous Clocked 1. Analysis of Clocked Sequential


Sequential Circuits Circuits
This consists of obtaining a table or a diagram for
Synchronous sequential circuits that use identical the time sequence of inputs, outputs and internal
clock pulses in the inputs of all the flip-flops are states. Boolean expressions can also be written.
called clocked sequential circuits. These circuits
1.1 State Equations
seldom show instability problems and their timing
is easily broken down into independent discrete A state equation specifies the next state as a
steps, each of which can be analysed separately. function of the present state and inputs. Consider
the following sequential circuit:

When a clock pulse is not active, the feedback


loop is broken because the flip-flop outputs cannot
change even if the combinational logic driving
their inputs change in value.
1 2

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

The present state value of the output can be


expressed as:

y (t ) = [A(t ) + B(t )]x ′(t )

The above output equation can be expressed in a


more compact form as:
y = ( A + B )x ′

3 4

Downloaded by keerthana subramani (hmpudur1968@gmail.com)


lOMoARcPSD|35477619

1.3 State Diagram 1.4 Flip-Flop Input Equations

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

Each directed lines are labelled with two binary


numbers separated by a slash. The input value
during the present state is labelled first, and the
number after the slash gives the output during the
present state with the given input. A directed line
connecting a circle with itself indicates that no
change of state occurs. For a D flip-flop, the state equation is the same as
the input equation. Input equations are sometimes
5
called excitation equations. 6

1.5 Analysis with D Flip-Flops 1.6 Analysis with JK Flip-Flops

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.

The DA symbol implies a D flip-flop with output A. Procedure for method A:


The x and y variables are the inputs to the circuit.
ƒ Determine the flip-flop input equations in terms
Since no output equations are given, the output is
of the present state and input variables.
implied to come from the output of the flip-flop.
The next state values are obtained from the state ƒ List the binary values of each equation.
equation: ƒ Use the flip-flop characteristic table to find the
A(t + 1) = A ⊕ x ⊕ y next state values in the state table.

As an example consider the following circuit:

7 8

Downloaded by keerthana subramani (hmpudur1968@gmail.com)


lOMoARcPSD|35477619

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.

Again the input equations for the two flip-flops are:


JA = B K A = Bx ′
JB = x ′ K B = A′x + Ax ′ = A ⊕ x

The characteristic equations for the flip-flops are


obtained are obtained by substituting A or B for the
The next state of each flip-flop is determined from name of the flip-flop instead of Q:
the corresponding J and K inputs and the
characteristic table of the JK flip-flop listed below: A(t + 1) = JA′ + K ′A

B(t + 1) = JB′ + K ′B

Substituting the values of JA and KA from the input


equations, the state equation for A is obtained:

A(t + 1) = BA′ + (Bx ′)′ A = A′B + AB ′ + Ax

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 ′

The above state equation provides the bit values


for the column under “next state” in the state table.
The state diagram of the sequential circuit is as
follows: or by the characteristic equation:

Q(t + 1) = T ⊕ Q = T ′Q + TQ ′

Consider the following sequential circuit:

Note that since the circuit has no outputs, the


directed lines out of the circles are marked with
one binary number only to denote the value of
input x.
11 12

Downloaded by keerthana subramani (hmpudur1968@gmail.com)


lOMoARcPSD|35477619

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:

As long as input x is equal to 1, the circuit behaves


as a binary counter with a sequence of states 00,
01, 10, 11, and back to 00.
When x = 0, the circuit remains in the same state.
Output y is equal to 1 when the present state is 11.
The output depends on the present state only and
The values for y are obtained from the output is independent of the input.
equation. The values for the next state can be
The two values inside each circle separated by a
derived from the state equations by substituting TA
slash are for the present state and output.
and TB in the characteristic equations, yielding:

A(t + 1) = (Bx )′ A + (Bx )A′ = AB′ + Ax ′ + A′Bx

B(t + 1) = x ⊕ B
13 14

1.8 Mealy and Moore Models An example of a Moore model is:

The most general model of a sequential circuit has


inputs, outputs and internal states. It is common to
distinguish between two models of sequential
circuits:

ƒ Mealy model – The output is a function of both


the present state and input.
ƒ Moore model – The output is a function of the
present state only.

An example of a Mealy model is:

In a Moore model, the outputs of the sequential


circuit are synchronized with the clock because
they depend on only flip-flop outputs that are
synchronized with the clock
In a Mealy model, the outputs may change if the
inputs change during the clock cycle. To achieve
synchronization, the inputs must be synchronized
with the clock and the outputs must be sampled
only during the clock edge.

15 16

Downloaded by keerthana subramani (hmpudur1968@gmail.com)


lOMoARcPSD|35477619

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.”

Now apply this algorithm to the state table of the


circuit:

17 18

States g and e both go to states a and f and have


outputs of 0 and 1 for x = 0 and x = 1, respectively.
The procedure for removing a state and replacing it
by its equivalent is demonstrated in the following
table:

The state diagram for the above reduced table is:

Thus, the row with present state g is removed and


stage g is replaced by state e each time it occurs in
the next state columns.
Present state f now has next states e and f and This state diagram satisfies the original input-
outputs 0 and 1 for x = 0 and x = 1. The same next output specifications. Applying the input sequence
states and outputs appear in the row with present previously used, the following list is obtained:
state d. Therefore, states f and d are equivalent
and can be removed and replaced with d.
The final reduced state table is:
Note that the same output sequence results,
19
although the state sequence is different. 20

Downloaded by keerthana subramani (hmpudur1968@gmail.com)


lOMoARcPSD|35477619

To design a sequential circuit with real devices, it is


necessary to assign coded binary values to the
3. Design Procedure
states. For a circuit with m states, the codes must
The procedure for designing synchronous
contain n bits where 2n = ≥ m.
sequential circuits is summarized by a list of
For the reduced state table derived previously, only recommended steps:
five states need binary assignment; three unused
states are treated as don’t care conditions. 1. From the word description and specifications
of the desired operation, derive a state
Three possible binary state assignments are: diagram for the circuit.
2. Reduce the number of states if necessary.
3. Assign binary values to the states.
4. Obtain the binary-coded state table.
5. Choose the type of flip-flops to be used.
6. Derive the simplified flip-flop input equations
The reduced table with binary assignment 1 is: and output equations.
7. Draw the logic diagram.

Steps 4 to 7 in the design can be implemented by


exact algorithms.
Step 1 is the most challenging part of the design
as word descriptions may be incomplete and
inexact. This is showed by the following example:
Sometimes, the name transition table is used for a
state table with binary assignment. 21 22

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

Downloaded by keerthana subramani (hmpudur1968@gmail.com)


lOMoARcPSD|35477619

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:

The symbol X represents a don’t care condition.


Flip-flop excitation tables are used in the synthesis
procedure for sequential circuits with JK and T
flip-flops to evaluate the input equations from the
present state to the next state transition.
Examples include the design of synchronous
binary counters employing JK or T flip-flops.
25 26

3.3 Design Example Using JK Flip-Flops:


In this case the input equations must be evaluated
from the present-state to next-state transition
derived from the excitation table.
To illustrate the procedure, we will synthesize the
sequential circuit specified by the following table:

Finally, the logic circuit of the sequential circuit is:

The flip-flop inputs are derived from the state table


in conjunction with the excitation table for a JK flip-
flop.
The flip-flop inputs in the table specify the truth
table for the input equations as a function of
present-state A and B and input x.
The flip-flop input equations are simplified in the
following K-maps:
27 28

Downloaded by keerthana subramani (hmpudur1968@gmail.com)

You might also like