0% found this document useful (0 votes)
48 views138 pages

DPSD 20-21 Notes Unit-3

The document discusses synchronous sequential circuits. It begins by explaining the difference between combinational and sequential logic circuits. In sequential circuits, the output depends not only on present inputs but also past history of inputs, as storage elements allow information to be stored. It then classifies sequential circuits as either synchronous or asynchronous, depending on whether signals can affect memory elements only at discrete clock times (synchronous) or any time (asynchronous). Common memory elements for both are flip-flops. Latches and flip-flops are also introduced as basic building blocks, with SR latches described as the simplest type of latch and able to be constructed using either NOR or NAND gates. Truth tables are provided to summarize the operation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views138 pages

DPSD 20-21 Notes Unit-3

The document discusses synchronous sequential circuits. It begins by explaining the difference between combinational and sequential logic circuits. In sequential circuits, the output depends not only on present inputs but also past history of inputs, as storage elements allow information to be stored. It then classifies sequential circuits as either synchronous or asynchronous, depending on whether signals can affect memory elements only at discrete clock times (synchronous) or any time (asynchronous). Common memory elements for both are flip-flops. Latches and flip-flops are also introduced as basic building blocks, with SR latches described as the simplest type of latch and able to be constructed using either NOR or NAND gates. Truth tables are provided to summarize the operation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 138

Unit - III Synchronous Sequential Circuits

UNIT – III

SYNCHRONOUS SEQUENTIAL CIRCUITS

3.1 INTRODUCTION
In combinational logic circuits, the outputs at any instant of time
depend only on the input signals present at that time. For a change in input, the
output occurs immediately.

Combinational Circuit- Block Diagram

In sequential logic circuits, it consists of combinational circuits to


which storage elements are connected to form a feedback path. The storage
elements are devices capable of storing binary information either 1 or 0.
The information stored in the memory elements at any given time
defines the present state of the sequential circuit. The present state and the
external circuit determine the output and the next state of sequential circuits.

Sequential Circuit- Block Diagram

Thus in sequential circuits, the output variables depend not only on


the present input variables but also on the past history of input variables.

CS8351 Digital Principles and System Design 1


Unit - III Synchronous Sequential Circuits

The rotary channel selected knob on an old-fashioned TV is like a


combinational. Its output selects a channel based only on its current input – the
position of the knob. The channel-up and channel-down push buttons on a TV is
like a sequential circuit. The channel selection depends on the past sequence of
up/down pushes.
The comparison between combinational and sequential circuits is
given in table below.
S.No Combinational logic Sequential logic
The output variable, at all times The output variable depends not only
1 depends on the combination of on the present input but also depend
input variables. upon the past history of inputs.
Memory unit is required to store the
2 Memory unit is not required
past history of input variables.
3 Faster in speed Slower than combinational circuits.
4 Easy to design Comparatively harder to design.
5 Eg. Parallel adder Eg. Serial adder

3.2 CLASSIFICATION OF LOGIC CIRCUITS

The sequential circuits can be classified depending on the timing of their


signals:
• Synchronous sequential circuits
• Asynchronous sequential circuits.

CS8351 Digital Principles and System Design 2


Unit - III Synchronous Sequential Circuits

In synchronous sequential circuits, signals can affect the memory


elements only at discrete instants of time. In asynchronous sequential circuits
change in input signals can affect memory element at any instant of time. The
memory elements used in both circuits are Flip-Flops, which are capable of
storing 1-bit information.
Synchronous sequential
S.No Asynchronous sequential circuits
circuits
Memory elements are either
Memory elements are clocked
1 unclocked Flip-Flops or time delay
Flip-Flops
elements.
The change in input signals can The change in input signals can affect
2 affect memory element upon memory element at any instant of
activation of clock signal. time.
The maximum operating speed Because of the absence of clock, it can
3 of clock depends on time delays operate faster than synchronous
involved. circuits.
4 Easier to design More difficult to design

3.3 LATCHES
Latches and Flip-Flops are the basic building blocks of the most
sequential circuits. Latches are used for a sequential device that checks all of its
inputs continuously and changes its outputs accordingly at any time independent
of clocking signal. Enable signal is provided with the latch. When enable signal
is active output changes occur as the input changes. But when enable signal is not
activated input changes do not affect the output.
Flip-Flop is used for a sequential device that normally samples its inputs and
changes its outputs only at times determined by clocking signal.

CS8351 Digital Principles and System Design 3


Unit - III Synchronous Sequential Circuits

3.3.1 SR Latch:
The simplest type of latch is the set-reset (SR) latch. It can be
constructed from either two NOR gates or two NAND gates.

SR latch using NOR gates:


The two NOR gates are cross-coupled so that the output of NOR gate
1 is connected to one of the inputs of NOR gate 2 and vice versa. The latch has
two outputs Q and Q’ and two inputs, set and reset.

Logic Symbol
SR latch using NOR gates
Before going to analyse the SR latch, we recall that a logic 1 at any
input of a NOR gate forces its output to a logic 0. Let us understand the operation
of this circuit for various input/ output possibilities.
Case 1: S= 0 and R= 0
Initially, Q= 1 and Q’= 0
Let us assume that initially Q=1 and Q’=0. With Q’=0, both inputs to
NOR gate 1 are at logic 0. So, its output, Q is at logic 1. With Q=1, one input of
NOR gate 2 is at logic
1. Hence its output, Q’ is at logic 0. This shows that when S and R
both are low, the output does not change.

CS8351 Digital Principles and System Design 4


Unit - III Synchronous Sequential Circuits

Initially, Q= 0 and Q’= 1


With Q’=1, one input of NOR gate 1 is at logic 1, hence its output, Q
is at logic 0. With Q=0, both inputs to NOR gate 2 are at logic 0. So, its output Q’
is at logic 1. In this case also there is no change in the output state.

Case 2: S= 0 and R= 1
In this case, R input of the NOR gate 1 is at logic 1, hence its
output, Q is at logic 0. Both inputs to NOR gate 2 are now at logic 0. So that its
output, Q’ is at logic 1.

Case 3: S= 1 and R= 0
In this case, S input of the NOR gate 2 is at logic 1, hence its
output, Q is at logic 0. Both inputs to NOR gate 1 are now at logic 0. So that its
output, Q is at logic 1.

CS8351 Digital Principles and System Design 5


Unit - III Synchronous Sequential Circuits

Case 4: S= 1 and R= 1
When R and S both are at logic 1, they force the outputs of both
NOR gates to the low state, i.e., (Q=0 and Q’=0). So, we call this an indeterminate
or prohibited state, and represent this condition in the truth table as an asterisk
(*). This condition also violates the basic definition of a latch that requires Q to
be complement of Q’. Thus in normal operation this condition must be avoided
by making sure that 1’s are not applied to both the inputs simultaneously.
We can summarize the operation of SR latch as follows:
• When S= 0 and R= 0, the output, Qn+1 remains in its present state, Qn.
• When S= 0 and R= 1, the latch is reset to 0.
• When S= 1 and R= 0, the latch is set to 1.
• When S= 1 and R= 1, the output of both gates will produce 0. Qn+1= Qn+1’=
0.
The truth table of NOR based SR latch is shown below.
S R Qn Qn+1 State
0 0 0 0 No Change
0 0 1 1 (NC)
0 1 0 0
Reset
0 1 1 0
1 0 0 1
Set
1 0 1 1
1 1 0 x Indeterminate
1 1 1 x *

CS8351 Digital Principles and System Design 6


Unit - III Synchronous Sequential Circuits

SR latch using NAND gates:


The SR latch can also be implemented using NAND gates. The inputs
of this Latch are S and R. To understand how this circuit functions, recall that a
low on any
input to a NAND gate forces its output high.

SR latch using NAND gates Logic Symbol


We can summarize the operation of SR latch as follows:
• When S= 0 and R= 0, the output of both gates will produce 0. Qn+1= Qn+1’=
1.
• When S= 0 and R= 1, the latch is reset to 0.
• When S= 1 and R= 0, the latch is set to 1.
• When S= 1 and R= 1, the output, Qn+1 remains in its present state, Qn.
The truth table of NAND based SR latch is shown below.
S R Qn Qn+1 State
0 0 0 x Indeterminate
0 0 1 x *
0 1 0 1
Set
0 1 1 1
1 0 0 0
Reset
1 0 1 0
1 1 0 0 No Change
1 1 1 1 (NC)

CS8351 Digital Principles and System Design 7


Unit - III Synchronous Sequential Circuits

Gated SR Latch:
In the SR latch, the output changes occur immediately after the input
changes i.e, the latch is sensitive to its S and R inputs all the time.
A latch that is sensitive to the inputs only when an enable input is
active. Such a latch with enable input is known as gated SR latch.
• The circuit behaves like SR latch when EN= 1
It retains its previous state when EN= 0

SR Latch with enable input using NAND gates Logic Symbol

The truth table of gated SR latch is show below.


EN S R Qn Qn+1 State
1 0 0 0 0
No Change (NC)
1 0 0 1 1
1 0 1 0 0
Reset
1 0 1 1 0
1 1 0 0 1
Set
1 1 0 1 1
1 1 1 0 x Indeterminate
1 1 1 1 x *
0 x x 0 0
No Change (NC)
0 x x 1 1

CS8351 Digital Principles and System Design 8


Unit - III Synchronous Sequential Circuits

When S is HIGH and R is LOW, a HIGH on the EN input sets the


latch. When S is LOW and R is HIGH, a HIGH on the EN input resets the latch.

3.3.2 D Latch
In SR latch, when both inputs are same (00 or 11), the output either
does not change or it is invalid. In many practical applications, these input
conditions are not required. These input conditions can be avoided by making
them complement of each other. This modified SR latch is known as D latch.

D Latch Logic Symbol


As shown in the figure, D input goes directly to the S input, and its
complement is applied to the R input. Therefore, only two input conditions
exists, either S=0 and R=1 or S=1 and R=0. The truth table for D latch is shown
below.
EN D Qn Qn+1 State
1 0 x 0 Reset
1 1 x 1 Set

CS8351 Digital Principles and System Design 9


Unit - III Synchronous Sequential Circuits

0 x x Qn No Change (NC)

As shown in the truth table, the Q output follows the D input. For this
reason, D latch is called transparent latch.
When D is HIGH and EN is HIGH. Q goes HIGH. When D is LOW
and EN is HIGH, Q goes LOW. When EN is LOW, the state of the latch is not
affected by the D input.

3.4 TRIGGERING OF FLIP-FLOPS


The state of a Flip-Flop is switched by a momentary change in the input
signal. This momentary change is called a trigger and the transition it causes is
said to trigger the Flip-Flop. Clocked Flip-Flops are triggered by pulses. A clock
pulse starts from an initial value of 0, goes momentarily to 1and after a short time,
returns to its initial 0 value.
Latches are controlled by enable signal, and they are level triggered,
either positive level triggered or negative level triggered. The output is free to
change according to the S and R input values, when active level is maintained at
the enable input.
Flip-Flops are different from latches. Flip-Flops are pulse or clock edge
triggered instead of level triggered.

CS8351 Digital Principles and System Design 10


Unit - III Synchronous Sequential Circuits

3.5 EDGE TRIGGERED FLIP-FLOPS


Flip-Flops are synchronous bistable devices (has two outputs Q and Q’).
In this case, the term synchronous means that the output changes state only at a
specified point on the triggering input called the clock (CLK), i.e., changes in the
output occur in synchronization with the clock.
An edge-triggered Flip-Flop changes state either at the positive edge
(rising edge) or at the negative edge (falling edge) of the clock pulse and is
sensitive to its inputs only at this transition of the clock. The different types of
edge-triggered Flip-Flops are—
• S-R Flip-Flop,
• J-K Flip-Flop,
• D Flip-Flop,
• T Flip-Flop.
Although the S-R Flip-Flop is not available in IC form, it is the basis
for the D and J-K Flip-Flops. Each type can be either positive edge-triggered (no
bubble at C input) or negative edge-triggered (bubble at C input). The key to
identifying an edge- triggered Flip-Flop by its logic symbol is the small triangle
inside the block at the clock (C) input. This triangle is called the dynamic input
indicator.

3.5.1 S-R Flip-Flop

CS8351 Digital Principles and System Design 11


Unit - III Synchronous Sequential Circuits

The S and R inputs of the S-R Flip-Flop are called synchronous inputs
because data on these inputs are transferred to the Flip-Flop's output only on the
triggering edge of the clock pulse. The circuit is similar to SR latch except enable
signal is replaced by clock pulse (CLK). On the positive edge of the clock pulse,
the circuit responds to the S and R inputs.

SR Flip-Flop
When S is HIGH and R is LOW, the Q output goes HIGH on the triggering
edge of the clock pulse, and the Flip-Flop is SET. When S is LOW and R is HIGH,
the Q output goes LOW on the triggering edge of the clock pulse, and the Flip-
Flop is RESET. When both S and R are LOW, the output does not change from
its prior state. An invalid condition exists when both S and R are HIGH.
CLK S R Qn Qn+1 State
1 0 0 0 0
No Change (NC)
1 0 0 1 1
1 0 1 0 0
Reset
1 0 1 1 0
1 1 0 0 1
Set
1 1 0 1 1
1 1 1 0 x Indeterminate
1 1 1 1 x *
0 x x 0 0
No Change (NC)
0 x x 1 1
Truth table for SR Flip-Flop
CS8351 Digital Principles and System Design 12
Unit - III Synchronous Sequential Circuits

Input and output waveforms of SR Flip-Flop

3.5.2 J-K Flip-Flop:


JK means Jack Kilby, Texas Instrument (TI) Engineer, who invented
IC in 1958. JK Flip-Flop has two inputs J(set) and K(reset). A JK Flip-Flop can
be obtained from the clocked SR Flip-Flop by augmenting two AND gates as
shown below.

JK Flip Flop
The data input J and the output Q’ are applied o the first AND gate and
its output (JQ’) is applied to the S input of SR Flip-Flop. Similarly, the data input
K and the output Q are applied to the second AND gate and its output (KQ) is
applied to the R input of SR Flip-Flop.

CS8351 Digital Principles and System Design 13


Unit - III Synchronous Sequential Circuits

J= K= 0
When J=K= 0, both AND gates are disabled. Therefore clock pulse have no
effect, hence the Flip-Flop output is same as the previous output.
J= 0, K= 1
When J= 0 and K= 1, AND gate 1 is disabled i.e., S= 0 and R= 1. This
condition will reset the Flip-Flop to 0.
J= 1, K= 0
When J= 1 and K= 0, AND gate 2 is disabled i.e., S= 1 and R= 0. Therefore
the Flip-Flop will set on the application of a clock pulse.
J= K= 0
When J=K= 1, it is possible to set or reset the Flip-Flop. If Q is High, AND
gate 2 passes on a reset pulse to the next clock. When Q is low, AND gate 1 passes
on a set pulse to the next clock. Eitherway, Q changes to the complement of the
last state i.e., toggle. Toggle means to switch to the opposite state.
The truth table of JK Flip-Flop is given below.

Inputs Output
CLK State
J K Qn+1
1 0 0 Qn No Change
1 0 1 0 Reset
1 1 0 1 Set
1 1 1 Qn’ Toggle
Truth table for JK Flip-Flop

CS8351 Digital Principles and System Design 14


Unit - III Synchronous Sequential Circuits

Input and output waveforms of JK Flip-Flop


Characteristic table and Characteristic equation:
The characteristic table for JK Flip-Flop is shown in the table below. From
the table, K-map for the next state transition (Qn+1) can be drawn and the
simplified logic expression which represents the characteristic equation of JK
Flip-Flop can be found.
Qn J K Qn+1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Characteristic table
K-map Simplification:

Characteristic equation: Qn+1= JQ’+ K’Q.

CS8351 Digital Principles and System Design 15


Unit - III Synchronous Sequential Circuits

3.5.3 D Flip-Flop:
Like in D latch, in D Flip-Flop the basic SR Flip-Flop is used with
complemented inputs. The D Flip-Flop is similar to D-latch except clock pulse is
used instead of enable input.

D Flip-Flop
To eliminate the undesirable condition of the indeterminate state in the RS
Flip-Flop is to ensure that inputs S and R are never equal to 1 at the same time.
This is done by D Flip-Flop. The D (delay) Flip-Flop has one input called delay
input and clock pulse input. The D Flip-Flop using SR Flip-Flop is shown below.

The truth table of D Flip-Flop is given below.


Clock D Qn+1 State
1 0 0 Reset
1 1 1 Set
0 x Qn No Change
Truth table for D Flip-Flop

CS8351 Digital Principles and System Design 16


Unit - III Synchronous Sequential Circuits

Input and output waveforms of clocked D Flip-Flop

Looking at the truth table for D Flip-Flop we can realize that Qn+1
function follows the D input at the positive going edges of the clock pulses.
Characteristic table and Characteristic equation:
The characteristic table for D Flip-Flop shows that the next state of the Flip-
Flop is independent of the present state since Qn+1 is equal to D. This means that
an input pulse will transfer the value of input D into the output of the Flip-Flop
independent of the value of the output before the pulse was applied.
The characteristic equation is derived from K-map.

Qn D Qn+1
0 0 0
0 1 1
1 0 0
1 1 1
Characteristic table

Characteristic equation: Qn+1= D.

CS8351 Digital Principles and System Design 17


Unit - III Synchronous Sequential Circuits

3.5.4 T Flip-Flop
The T (Toggle) Flip-Flop is a modification of the JK Flip-Flop. It is obtained
from JK Flip-Flop by connecting both inputs J and K together, i.e., single input.
Regardless of the present state, the Flip-Flop complements its output when the
clock pulse occurs while input T= 1.

T Flip-Flop
When T= 0, Qn+1= Qn, ie., the next state is the sameas the present state and
no change occurs.
When T= 1, Qn+1= Qn’,ie., the next state is the complement of the present
state.

The truth table of T Flip-Flop is given below.

T Qn+1 State
0 Qn No Change
1 Qn’ Toggle

Truth table for T Flip-Flop

CS8351 Digital Principles and System Design 18


Unit - III Synchronous Sequential Circuits

Characteristic table and Characteristic equation:


The characteristic table for T Flip-Flop is shown below and characteristic
equation is derived using K-map.
Qn T Qn+1
0 0 0
0 1 1
1 0 1
1 1 0
K-map Simplification:

Characteristic equation: Qn+1= TQn’+ T’Qn.

3.5.5 Master-Slave JK Flip-Flop


A master-slave Flip-Flop is constructed using two separate JK Flip-Flops.
The first Flip-Flop is called the master. It is driven by the positive edge of the
clock pulse. The second Flip-Flop is called the slave. It is driven by the negative
edge of the clock pulse. The logic diagram of a master-slave JK Flip-Flop is
shown below.

Logic diagram

CS8351 Digital Principles and System Design 19


Unit - III Synchronous Sequential Circuits

When the clock pulse has a positive edge, the master acts according to its
J-K inputs, but the slave does not respond, since it requires a negative edge at the
clock input.
When the clock input has a negative edge, the slave Flip-Flop copies the
master outputs. But the master does not respond since it requires a positive edge
at its clock input.
The clocked master-slave J-K Flip-Flop using NAND gates is shown below.

Master-Slave JK Flip-Flop
3.6 APPLICATION TABLE (OR) EXCITATION TABLE:
The characteristic table is useful for analysis and for defining the
operation of the Flip-Flop. It specifies the next state (Qn+1) when the inputs and
present state are known.
The excitation or application table is useful for design process. It is
used to find the Flip-Flop input conditions that will cause the required
transition, when the present state (Qn) and the next state (Qn+1) are known.

CS8351 Digital Principles and System Design 20


Unit - III Synchronous Sequential Circuits

3.6.1 SR Flip-Flop:
Present Next Present Next
Inputs Inputs Inputs
State State State State
Qn S R Qn+1 Qn Qn+1 S R S R
0 0 0 0 0 0 0 0
0 x
0 0 1 0 0 0 0 1
0 1 0 1 0 1 1 0 1 0
0 1 1 x 1 0 0 1 0 1
1 0 0 1 1 1 0 0
x 0
1 0 1 0 1 1 1 0
1 1 0 1
1 1 1 x Modified Table

Characteristic Table

Present Next
Inputs
State State

Qn Qn+1 S R
0 0 0 x
0 1 1 0
1 0 0 1
1 1 x 0
Excitation Table

The above table presents the excitation table for SR Flip-Flop. It


consists of present state (Qn), next state (Qn+1) and a column for each input to
show how the required transition is achieved.

CS8351 Digital Principles and System Design 21


Unit - III Synchronous Sequential Circuits

There are 4 possible transitions from present state to next state. The
required Input conditions for each of the four transitions are derived from the
information available in the characteristic table. The symbol ‘x’ denotes the don’t
care condition, it does not matter whether the input is 0 or 1.

3.6.2 JK Flip-Flop:
Present Next Present Next
Inputs Inputs Inputs
State State State State
Qn J K Qn+1 Qn Qn+1 J K J K
0 0 0 0 0 0 0 0
0 x
0 0 1 0 0 0 0 1
0 1 0 1 0 1 1 0
1 x
0 1 1 1 0 1 1 1
1 0 0 1 1 0 0 1
x 1
1 0 1 0 1 0 1 1
1 1 0 1 1 1 0 0
x 0
1 1 1 0 1 1 1 0

Characteristic Table Modified Table

Present Next
Inputs
State State
Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0
Excitation Table

CS8351 Digital Principles and System Design 22


Unit - III Synchronous Sequential Circuits

3.6.3 D Flip-Flop

Present Next Present Next


Input Input
State State State State
Qn D Qn+1 Qn Qn+1 D
0 0 0 0 0 0
0 1 1 0 1 1
1 0 0 1 0 0
1 1 1 1 1 1

Characteristic Table Excitation Table

3.6.4 T Flip-Flop

Present Next
Input
State State Present Next
Input
Qn T Qn+1 State State
0 0 0 Qn Qn+1 T
0 1 1 0 0 0
1 0 1 0 1 1
1 1 0 1 0 1
1 1 0
Characteristic Table
Modified Table

CS8351 Digital Principles and System Design 23


Unit - III Synchronous Sequential Circuits

3.7 REALIZATION OF ONE FLIP-FLOP USING OTHER FLIP-


FLOPS
It is possible to convert one Flip-Flop into another Flip-Flop with some additional
gates or simply doing some extra connection. The realization of one Flip-Flop
using other Flip-Flops is implemented by the use of characteristic tables and
excitation tables. Let us see few conversions among Flip-Flops.
SR Flip-Flop to D Flip-Flop
SR Flip-Flop to JK Flip-Flop
SR Flip-Flop to T Flip-Flop
JK Flip-Flop to T Flip-Flop
JK Flip-Flop to D Flip-Flop
D Flip-Flop to T Flip-Flop
T Flip-Flop to D Flip-Flop

3.7.1 SR Flip-Flop to D Flip-Flop:


• Write the characteristic table for required Flip-Flop (D Flip-Flop).
• Write the excitation table for given Flip-Flop (SR Flip-Flop).
• Determine the expression for the given Flip-Flop inputs (S and R) by using
K- map.
• Draw the Flip-Flop conversion logic diagram to obtain the required Flip-
Flop (D Flip-Flop) by using the above obtained expression.
The excitation table for the above conversion is
Given Flip-Flop
Required Flip-Flop (D)
(SR)
Input Present state Next state Flip-Flop Inputs
D Qn Qn+1 S R
0 0 0 0 x
0 1 0 0 1

CS8351 Digital Principles and System Design 24


Unit - III Synchronous Sequential Circuits

1 0 1 1 0
1 1 1 x 0

D Flip-Flop
3.7.2 SR Flip-Flop to JK Flip-Flop
The excitation table for the above conversion is,
Flip-Flop
Inputs Present state Next state
Input
J K Qn Qn+1 S R
0 0 0 0 0 x
0 0 1 1 x 0
0 1 0 0 0 x
0 1 1 0 0 1
1 0 0 1 1 0
1 0 1 1 x 0
1 1 0 1 1 0
1 1 1 0 0 1

CS8351 Digital Principles and System Design 25


Unit - III Synchronous Sequential Circuits

JK Flip-Flop

3.7.3 SR Flip-Flop to T Flip-Flop


The excitation table for the above conversion is
Flip-Flop
Input Present state Next state
Inputs
T Qn Qn+1 S R
0 0 0 0 x
0 1 1 x 0
1 0 1 1 0
1 1 0 0 1

CS8351 Digital Principles and System Design 26


Unit - III Synchronous Sequential Circuits

3.7.4 JK Flip-Flop to T Flip-Flop


The excitation table for the above conversion is
Flip-Flop
Input Present state Next state
Inputs
T Qn Qn+1 J K
0 0 0 0 x
0 1 1 x 0
1 0 1 1 x
1 1 0 x 1

3.7.5 JK Flip-Flop to D Flip-Flop


The excitation table for the above conversion is
Flip-Flop
Input Present state Next state
Inputs
D Qn Qn+1 J K
0 0 0 0 x
0 1 0 x 1
1 0 1 1 x
1 1 1 x 0

CS8351 Digital Principles and System Design 27


Unit - III Synchronous Sequential Circuits

3.7.6 D Flip-Flop to T Flip-Flop


The excitation table for the above conversion is
Flip-Flop
Input Present state Next state
Input
T Qn Qn+1 D
0 0 0 0
0 1 1 1
1 0 1 1
1 1 0 0

CS8351 Digital Principles and System Design 28


Unit - III Synchronous Sequential Circuits

3.7.7 T Flip-Flop to D Flip-Flop


The excitation table for the above conversion is
Flip-Flop
Input Present state Next state
Input
D Qn Qn+1 T
0 0 0 0
0 1 0 1
1 0 1 1
1 1 1 0

3.8 CLASSIFICATION OF SYNCHRONOUS SEQUENTIAL CIRCUIT


In synchronous or clocked sequential circuits, clocked Flip-Flops are
used as memory elements, which change their individual states in synchronism
with the periodic clock signal. Therefore, the change in states of Flip-Flop and
change in state of the entire circuits occur at the transition of the clock signal.

The synchronous or clocked sequential networks are represented by two


models.
• Moore model: The output depends only on the present state of the Flip-
Flops.

CS8351 Digital Principles and System Design 29


Unit - III Synchronous Sequential Circuits

• Mealy model: The output depends on both the present state of the Flip-
Flops and on the inputs.
3.8.1 Moore model:
In the Moore model, the outputs are a function of the present state of the
Flip-Flops only. The output depends only on present state of Flip-Flops, it appears
only after the clock pulse is applied, i.e., it varies in synchronism with the clock
input.

Moore model
3.8.2 Mealy model:
In the Mealy model, the outputs are functions of both the present state of
the Flip-Flops and inputs.

Mealy model

3.8.3 Difference between Moore and Mealy model


Sl.No Moore model Mealy model
1 Its output is a function of Its output is a function of present
present state only. state as well as present input.
2 Input changes does not affect the Input changes may affect the output
output. of the circuit.

CS8351 Digital Principles and System Design 30


Unit - III Synchronous Sequential Circuits

3 It requires more number of It requires less number of states for


states for implementing same implementing same function.
function.

3.9 ANALYSIS OF SYNCHRONOUS SEQUENTIAL CIRCUIT


The behavior of a sequential circuit is determined from the inputs, outputs
and the state of its Flip-Flops. The outputs and the next state are both a function
of the inputs and the present state. The analysis of a sequential circuit consists
of obtaining a table or diagram from the time sequence of inputs, outputs and
internal states.
Before going to see the analysis and design examples, we first understand
the state diagram, state table.
3.9.1 State Diagram
State diagram is a pictorial representation of a behavior of a sequential
circuit.

In the state diagram, a state is represented by a circle and the transition


between states is indicated by directed lines connecting the circles.
A directed line connecting a circle with circle with itself indicates that next
state is same as present state.
The binary number inside each circle identifies the state represented by the
circle.
The directed lines are labeled with two binary numbers separated by a
symbol ‘/’. The input value that causes the state transition is labeled first
and the output value during the present state is labeled after the symbol ‘/’.

In case of Moore circuit, the directed lines are labeled with only one binary
number representing the state of the input that causes the state transition. The

CS8351 Digital Principles and System Design 31


Unit - III Synchronous Sequential Circuits

output state is indicated within the circle, below the present state because output
state depends only on present state and not on the input.

State diagram for Mealy circuit State diagram for Moore circuit

3.9.2 State Table


State table represents relationship between input, output and Flip-Flop
states.
It consists of three sections labeled present state, next state and output.
o The present state designates the state of Flip-Flops before the
occurrence of a clock pulse, and the output section gives the values
of the output variables during the present state.
o Both the next state and output sections have two columns
representing two possible input conditions: X= 0 and X=1.

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1
AB AB AB Y Y
a a c 0 0
b b a 0 0

CS8351 Digital Principles and System Design 32


Unit - III Synchronous Sequential Circuits

c d c 0 1
d b d 0 0

In case of Moore circuit, the output section has only one column since
output does not depend on input.
Outpu
Next state
Present state t
X= 0 X= 1
Y
AB AB AB
a a c 0
b b a 0
c d c 1
d b d 0

3.9.3 State Equation


It is an algebraic expression that specifies the condition for a Flip-
Flop state transition.
The Flip-Flops may be of any type and the logic diagram may or may
not include combinational circuit gates.

3.9.4 ANALYSIS PROCEDURE


The synchronous sequential circuit analysis is summarizes as given below:
1. Assign a state variable to each Flip-Flop in the synchronous sequential
circuit.
2. Write the excitation input functions for each Flip-Flop and also write the
Moore/ Mealy output equations.
3. Substitute the excitation input functions into the bistable equations for the
Flip-Flops to obtain the next state output equations.

CS8351 Digital Principles and System Design 33


Unit - III Synchronous Sequential Circuits

4. Obtain the state table and reduced form of the state table.
5. Draw the state diagram by using the second form of the state table.

3.9.5 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
KA= 1
JB= A’+ x’
KB= 1
and the circuit output function, Y= xA’B.
a) Draw the logic diagram of the Mealy circuit,
b) Tabulate the state table,
c) Draw the state diagram.
Soln:
The logic diagram for the given state equation is,

Sequential circuit- Logic diagram


State table:
CS8351 Digital Principles and System Design 34
Unit - III Synchronous Sequential Circuits

To obtain the next-state values of a sequential circuit with JK Flip-Flops,


use the JK Flip-Flop characteristics table.
Present Inp
Flip-Flop Inputs Next state Output
state ut

KA= 1 KB= A(t+ B(t+1 Y=


A B x JA= B+ x JB= A’+ x’
1 1) ) 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

Present Next state Output


state x= 0 x= 1 x= 0 x= 1
A B A B A B y y
0 0 0 1 1 1 0 0
0 1 1 0 1 0 0 1
1 0 0 1 0 0 0 0
1 1 0 0 0 0 0 0
Second form of state table
State Diagram:

CS8351 Digital Principles and System Design 35


Unit - III Synchronous Sequential Circuits

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 circuit,
(b) Tabulate the state table,
(c) Draw the state diagram.
Soln:

State Table:
Present Inpu
Flip-Flop Inputs Next state Output
state t

CS8351 Digital Principles and System Design 36


Unit - III Synchronous Sequential Circuits

DA= DB= Y=
A B x A(t+1) B(t+1)
Ax+Bx A’x (A+B)x’
0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0
0 1 0 0 0 0 0 1
0 1 1 1 1 1 1 0
1 0 0 0 0 0 0 1
1 0 1 1 0 1 0 0
1 1 0 0 0 0 0 1
1 1 1 1 0 1 0 0

Present Next state Output


state x= 0 x= 1 x= 0 x= 1
A B A B A B Y Y
0 0 0 0 0 1 0 0
0 1 0 0 1 1 1 0
1 0 0 0 1 0 1 0
1 1 0 0 1 0 1 0
Second form of state table
State Diagram:

CS8351 Digital Principles and System Design 37


Unit - III Synchronous Sequential Circuits

3. Analyze the synchronous Mealy machine and obtain its state diagram.

Soln:
The given synchronous Mealy machine consists of two D Flip-Flops, 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:

Present Inpu
Flip-Flop Inputs Next state Output
state t
DA= DB= X+ Y1 Y2 Z=
Y1 Y2 X
Y1’Y2X’ Y1’Y2 (t+1) (t+1) Y1Y2X
0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0
0 1 0 1 1 1 1 0
0 1 1 0 1 0 1 0

CS8351 Digital Principles and System Design 38


Unit - III Synchronous Sequential Circuits

1 0 0 0 0 0 0 0
1 0 1 0 1 0 1 0
1 1 0 0 0 0 0 0
1 1 1 0 1 0 1 1
Present Next state Output
state X= 0 X= 1 X= 0 X= 1
Y1 Y2 Y1 Y2 Y1 Y2 Z Z
0 0 0 0 0 1 0 0
0 1 1 1 0 1 0 0
1 0 0 0 0 1 0 0
1 1 0 0 0 1 0 1
Second form of state table
State Diagram:

CS8351 Digital Principles and System Design 39


Unit - III Synchronous Sequential Circuits

4. A sequential circuit has two JK Flop-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.
State diagram:

State table:
To obtain the next-state values of a sequential circuit with JK Flip-Flop,
use the JK Flip-Flop characteristic table,

CS8351 Digital Principles and System Design 40


Unit - III Synchronous Sequential Circuits

Present
Input Flip-Flop Inputs Next state Output
state
JA= KA= JB= KB=
A B x y A(t+1) B(t+1) z
Bx+B’y’ B’xy’ A’x A+xy’
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 1 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
State Equation:

CS8351 Digital Principles and System Design 41


Unit - III Synchronous Sequential Circuits

5. A sequential circuit has two JK Flip-Flop A and B. the 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.
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 characteristic table.
Present Inpu
Flip-Flop Inputs Next state
state t
KA= KB=
A B x JA= B JB= x’ A(t+1) B(t+1)
Bx’ A x
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

CS8351 Digital Principles and System Design 42


Unit - III Synchronous Sequential Circuits

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

Present Next state


state X= 0 X= 1
A B A B A B
0 0 0 1 0 0
0 1 1 1 1 0
1 0 1 1 1 0
1 1 0 0 1 1
Second form of state table
State Diagram:

3.9.6 Analysis of Moore Model


6. Analyze the synchronous Moore circuit and obtain its state diagram.

CS8351 Digital Principles and System Design 43


Unit - III Synchronous Sequential Circuits

Soln:
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 table:
Present Inpu
Flip-Flop Inputs Next state Output
state t
JA= KA= JB= KB= Y1 Y2 Z=
Y1 Y2 X
Y2X Y2’ X X’ (t+1) (t+1) Y1Y2’
0 0 0 0 1 0 1 0 0 0
0 0 1 0 1 1 0 0 1 0
0 1 0 0 0 0 1 0 0 0
0 1 1 1 0 1 0 1 1 0
1 0 0 0 1 0 1 0 0 1
1 0 1 0 1 1 0 0 1 1
1 1 0 0 0 0 1 1 0 0
1 1 1 1 0 1 0 1 1 0

Present Next state Output


state X= 0 X= 1
Y
Y1 Y2 Y1 Y2 Y1 Y2
0 0 0 0 0 1 0
0 1 0 0 1 1 0
1 0 0 0 0 1 1
1 1 1 0 1 1 0
Second form of state table

CS8351 Digital Principles and System Design 44


Unit - III Synchronous Sequential Circuits

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.
Soln:
Logic diagram:

CS8351 Digital Principles and System Design 45


Unit - III Synchronous Sequential Circuits

State table
Present Inpu
Flip-Flop Inputs Next state Output
state t
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

Present Next state Output


state x= 0 x= 1 x= 0 x= 1
A B A B A B y y
0 0 0 0 0 1 0 0
0 1 0 1 1 0 0 0
1 0 1 0 1 1 0 0

CS8351 Digital Principles and System Design 46


Unit - III Synchronous Sequential Circuits

1 1 1 1 0 0 1 1
Second form of state table
State Diagram:

3.10 STATE REDUCTION/ MINIMIZATION


The state reduction is used to avoid the redundant states in the sequential
circuits. The reduction in redundant states reduces the number of required Flip-
Flops and logic gates, reducing the cost of the final circuit.
The two states are said to be redundant or equivalent, if every possible set
of inputs generate exactly same output and same next state. When two states are
equivalent, one of them can be removed without altering the input-output
relationship.
Since ‘n’ Flip-Flops produced 2n state, a reduction in the number of states
may result in a reduction in the number of Flip-Flops.
The need for state reduction or state minimization is explained with one
example.

State diagram
CS8351 Digital Principles and System Design 47
Unit - III Synchronous Sequential Circuits

Step 1: Determine the state table for given state diagram


Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
a b c 0 0
b d e 1 0
c c d 0 1
d a d 0 0
e c d 0 1
State table
Step 2: Find equivalent states
From the above state table c and e generate exactly same next state and
same output for every possible set of inputs. The state c and e go to next states c
and d and have outputs 0 and 1 for x=0 and x=1 respectively. Therefore state e
can be removed and replaced by c. The final reduced state table is shown below.
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
a b c 0 0
b d c 1 0
c c d 0 1
d a d 0 0
Reduced state table
The state diagram for the reduced table consists of only four states and is shown
below.

CS8351 Digital Principles and System Design 48


Unit - III Synchronous Sequential Circuits

Reduced state diagram


1. Reduce the number of states in the following state table and tabulate the
reduced state table.

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f g f 0 1
g a f 0 1

Soln:
From the above state table e and g generate exactly same next state and
same output for every possible set of inputs. The state e and g go to next states a
and f and have outputs 0 and 1 for x=0 and x=1 respectively. Therefore state g
can be removed and replaced by e. The reduced state table-1 is shown below.

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1

CS8351 Digital Principles and System Design 49


Unit - III Synchronous Sequential Circuits

a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f e f 0 1

Reduced state table-1


Now states d and f are equivalent. Both states go to the same next state (e,
f) and have same output (0, 1). Therefore one state can be removed; f is replaced
by d. The final reduced state table-2 is shown below.

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1
a a b 0 0
b c d 0 0
c a d 0 0
d e d 0 1
e a d 0 1
Reduced state table-2
Thus 7 states are reduced into 5 states.

2. Determine a minimal state table equivalent furnished below

Next state
Present state
X= 0 X= 1
1 1, 0 1, 0
2 1, 1 6, 1

CS8351 Digital Principles and System Design 50


Unit - III Synchronous Sequential Circuits

3 4, 0 5, 0
4 1, 1 7, 0
5 2, 0 3, 0
6 4, 0 5, 0
7 2, 0 3, 0

Soln:
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
1 1 1 0 0
2 1 6 1 1
3 4 5 0 0
4 1 7 1 0
5 2 3 0 0
6 4 5 0 0
7 2 3 0 0
From the above state table, 5 and 7 generate exactly same next state and
same output for every possible set of inputs. The state 5 and 7 go to next states 2
and 3 and have outputs 0 and 0 for x=0 and x=1 respectively. Therefore state 7
can be removed and replaced by 5.
Similarly, 3 and 6 generate exactly same next state and same output for
every possible set of inputs. The state 3 and 6 go to next states 4 and 5 and have
outputs 0 and 0 for x=0 and x=1 respectively. Therefore state 6 can be removed
and replaced by 3.
The final reduced state table is shown below.
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
1 1 1 0 0

CS8351 Digital Principles and System Design 51


Unit - III Synchronous Sequential Circuits

2 1 3 1 1
3 4 5 0 0
4 1 5 1 0
5 2 3 0 0
Reduced state table
Thus 7 states are reduced into 5 states.
3. Minimize the following state table.

Next state
Present state
X= 0 X= 1
A D, 0 C, 1
B E, 1 A, 1
C H, 1 D, 1
D D, 0 C, 1
E B, 0 G, 1
F H, 1 D, 1
G A, 0 F, 1
H C, 0 A, 1
I G, 1 H,1

Soln:
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
A D C 0 1
B E A 1 1
C H D 1 1
D D C 0 1
E B G 0 1

CS8351 Digital Principles and System Design 52


Unit - III Synchronous Sequential Circuits

F H D 1 1
G A F 0 1
H C A 0 1
I G H 1 1
From the above state table, A and D generate exactly same next state and
same output for every possible set of inputs. The state A and D go to next states
D and C and have outputs 0 and 1 for x=0 and x=1 respectively. Therefore state
D can be removed and replaced by A. Similarly, C and F generate exactly
same next state and same output for every possible set of inputs. The state C
and F go to next states H and D and have outputs 1 and 1 for x=0 and x=1
respectively. Therefore state F can be removed and replaced by C.

The reduced state table-1 is shown below.


Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
A A C 0 1
B E A 1 1
C H A 1 1
E B G 0 1
G A C 0 1
H C A 0 1
I G H 1 1
Reduced state table-1
From the above reduced state table-1, A and G generate exactly same next
state and same output for every possible set of inputs. The state A and G go to
next states A and C and have outputs 0 and 1 for x=0 and x=1 respectively.

CS8351 Digital Principles and System Design 53


Unit - III Synchronous Sequential Circuits

Therefore state G can be removed and replaced by A. The final reduced state
table-2 is shown below.
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
A A C 0 1
B E A 1 1
C H A 1 1
E B A 0 1
H C A 0 1
I A H 1 1
Reduced state table-2
Thus 9 states are reduced into 6 states.

4. Reduce the following state diagram.

Soln:
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1

CS8351 Digital Principles and System Design 54


Unit - III Synchronous Sequential Circuits

a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f g f 0 1
g a f 0 1
State table
From the above state table e and g generate exactly same next state and
same output for every possible set of inputs. The state e and g go to next states a
and f and have outputs 0 and 1 for x=0 and x=1 respectively. Therefore state g
can be removed and replaced by e. The reduced state table-1 is shown below.

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f e f 0 1

Reduced state table-1


Now states d and f are equivalent. Both states go to the same next state (e,
f) and have same output (0, 1). Therefore one state can be removed; f is replaced
by d. The final reduced state table-2 is shown below.
Present state Next state Output

CS8351 Digital Principles and System Design 55


Unit - III Synchronous Sequential Circuits

X= 0 X= 1 X= 0 X= 1
a a b 0 0
b c d 0 0
c a d 0 0
d e d 0 1
e a d 0 1
Reduced state table-2
Thus 7 states are reduced into 5 states.
The state diagram for the reduced state table-2 is,

Reduced state diagram

3.11 DESIGN OF SYNCHRONOUS SEQUENTIAL CIRCUITS


A synchronous sequential circuit is made up of number of Flip-Flops and
combinational gates. The design of circuit consists of choosing the Flip-Flops and
then finding a combinational gate structure together with the Flip-Flops. The
number of Flip-Flops is determined from the number of states needed in the
circuit. The combinational circuit is derived from the state table.
3.11.1 Design procedure:
1. The given problem is determined with a state diagram.
2. From the state diagram, obtain the state table.
CS8351 Digital Principles and System Design 56
Unit - III Synchronous Sequential Circuits

3. The number of states may be reduced by state reduction methods (if


applicable).
4. Assign binary values to each state (Binary Assignment) if the state table
contains letter symbols.
5. Determine the number of Flip-Flops and assign a letter symbol (A, B,
C,…) to each.
6. Choose the type of Flip-Flop (SR, JK, D, T) to be used.
7. From the state table, circuit excitation and output tables.
8. Using K-map or any other simplification method, derive the circuit output
functions and the Flip-Flop input functions.
9. Draw the logic diagram.

The type of Flip-Flop to be used may be included in the design specifications


or may depend what is available to the designer. Many digital systems are
constructed with JK Flip-Flops because they are the most versatile available. The
selection of inputs is given as follows.
Flip-Flop Application
JK General Applications
D

CS8351 Digital Principles and System Design 57


Unit - III Synchronous Sequential Circuits

Applications requiring transfer of


T data
(Ex: Shift Registers)
Application involving
complementation
(Ex: Binary Counters)

3.11.2 Excitation Tables:


Before going to the design examples for the clocked synchronous sequential
circuits we revise Flip-Flop excitation tables.

Present Next
Inputs
State State Excitation table for JK Flip-Flop
Qn Qn+1 S R
0 0 0 x Present Next
Input
0 1 1 0 State State
1 0 0 1 Qn Qn+1 T
1 1 x 0 0 0 0
0 1 1
Excitation table for SR Flip-Flop 1 0 1
1 1 0
Present Next
Inputs
State State Excitation table for T Flip-Flop
Qn Qn+1 J K
0 0 0 x
0 1 1 x Present Next
Input
1 0 x 1 State State
1 1 x 0 Qn Qn+1 D

CS8351 Digital Principles and System Design 58


Unit - III Synchronous Sequential Circuits

0 0 0
0 1 1
1 0 0
1 1 1

Excitation table for D Flip-Flop

CS8351 Digital Principles and System Design 59


Unit - III Synchronous Sequential Circuits

3.11.3 Problems
1. A sequential circuit has one input and one output. The state diagram is shown
below. Design the sequential circuit with a) D-Flip-Flops, b) T Flip-Flops, c) RS
Flip-Flops and d) JK Flip-Flops.

Solution:
State Table:
The state table for the state diagram is,

Present Next state Output


state X= 0 X= 1 X= 0 X= 1
A B AB AB Y Y
0 0 00 10 0 1
0 1 11 00 0 0
1 0 10 01 1 0
1 1 00 10 1 0

CS8351 Digital Principles and System Design 60


Unit - III Synchronous Sequential Circuits

State reduction:
As seen from the state table there is no equivalent states. Therefore, no
reduction in the state diagram.

The state table shows that circuit goes through four states, therefore we
require 2 Flip-Flops (number of states= 2m, where m= number of Flip-Flops). Since
two Flip-Flops are required first is denoted as A and second is denoted as B.

i) Design using D Flip-Flops:


Excitation table:
Using the excitation table for T Flip-Flop, we can determine the excitation
table for the
given circuit as,
Present State Next State Input
Qn Qn+1 D
0 0 0
0 1 1
1 0 0
1 1 1
Excitation table for D Flip-Flop

CS8351 Digital Principles and System Design 61


Unit - III Synchronous Sequential Circuits

Present Flip-Flop
Input Next state Output
state Inputs
A B X A B DA DB Y
0 0 0 0 0 0 0 0
0 0 1 1 0 1 0 1
0 1 0 1 1 1 1 0
0 1 1 0 0 0 0 0
1 0 0 1 0 1 0 1
1 0 1 0 1 0 1 0
1 1 0 0 0 0 0 1
1 1 1 1 0 1 0 0
Circuit excitation table
K-map Simplification:

With these Flip-Flop input functions and circuit output function we can draw
the logic diagram as follows.

CS8351 Digital Principles and System Design 62


Unit - III Synchronous Sequential Circuits

Logic diagram of given sequential circuit using D Flip-Flop


ii) Design using T Flip-Flops:
Using the excitation table for T Flip-Flop, we can determine the excitation
table for the given circuit as,
Present State Next State Input
Qn Qn+1 T
0 0 0
0 1 1
1 0 1
1 1 0
Excitation table for T Flip-Flop

Present Flip-Flop
Input Next state Output
state Inputs

CS8351 Digital Principles and System Design 63


Unit - III Synchronous Sequential Circuits

A B X A B TA TB Y
0 0 0 0 0 0 0 0
0 0 1 1 0 1 0 1
0 1 0 1 1 1 0 0
0 1 1 0 0 0 1 0
1 0 0 1 0 0 0 1
1 0 1 0 1 1 1 0
1 1 0 0 0 1 1 1
1 1 1 1 0 0 1 0
Circuit excitation table

K-map Simplification:

Therefore, input functions for,

TA= B  x and

TB= AB+ AX+ BX

Circuit output function, Y = XA’B’+ X’A

CS8351 Digital Principles and System Design 64


Unit - III Synchronous Sequential Circuits

With these Flip-Flop input functions and circuit output function we can draw
the logic diagram as follows.

Logic diagram of given sequential circuit using T Flip-Flop

iii) Design using SR Flip-Flops:


Using the excitation table for RS Flip-Flop, we can determine the excitation
table for the given circuit as,
Present
Next State Inputs
State
Qn Qn+1 S R
0 0 0 x
0 1 1 0
1 0 0 1
1 1 x 0
Excitation table for SR Flip-Flop

CS8351 Digital Principles and System Design 65


Unit - III Synchronous Sequential Circuits

Present
Input Next state Flip-Flop Inputs Output
state
A B X A B SA RA SB RB Y
0 0 0 0 0 0 X 0 x 0
0 0 1 1 0 1 0 0 x 1
0 1 0 1 1 1 0 x 0 0
0 1 1 0 0 0 X 0 1 0
1 0 0 1 0 X 0 0 x 1
1 0 1 0 1 0 1 1 0 0
1 1 0 0 0 0 1 0 1 1
1 1 1 1 0 X 0 0 1 0
Circuit excitation table
K-map Simplification:

CS8351 Digital Principles and System Design 66


Unit - III Synchronous Sequential Circuits

With these Flip-Flop input functions and circuit output function we can draw
the logic diagram as follows.

iii) Design using JK Flip-Flops:


Using the excitation table for JK Flip-Flop, we can determine the excitation
table for the given circuit as,
Next
Present State Inputs
State

CS8351 Digital Principles and System Design 67


Unit - III Synchronous Sequential Circuits

Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0
Excitation table for JK Flip-Flop
Present
Input Next state Flip-Flop Inputs Output
state
A B X A B JA KA JB KB Y
0 0 0 0 0 0 x 0 x 0
0 0 1 1 0 1 x 0 x 1
0 1 0 1 1 1 x x 0 0
0 1 1 0 0 0 x x 1 0
1 0 0 1 0 x 0 0 x 1
1 0 1 0 1 x 1 1 x 0
1 1 0 0 0 x 1 x 1 1
1 1 1 1 0 x 0 x 1 0
Circuit excitation table
K-map Simplification:

CS8351 Digital Principles and System Design 68


Unit - III Synchronous Sequential Circuits

The input functions for,


JA= BX’+ B’X JB= AX
=BX

KA= BX’+ B’X KB= A+ X


=BX

Circuit output function, Y= AX’+ A’B’X


With these Flip-Flop input functions and circuit output function we can draw
the logic diagram as follows.

CS8351 Digital Principles and System Design 69


Unit - III Synchronous Sequential Circuits

Logic diagram of given sequential circuit using JK Flip-Flop

CS8351 Digital Principles and System Design 70


Unit - III Synchronous Sequential Circuits

2. Design a clocked sequential machine using JK Flip-Flops for the state diagram
shown in the figure. Use state reduction if possible. Make proper state
assignment.

Soln:
State Table:
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
a a b 0 0
b c b 0 0
c a b 0 1
d a b 0 0

From the above state table a and d generate exactly same next state and
same output for every possible set of inputs. The state a and d go to next states a
and b and have outputs 0 and 0 for x=0 and x=1 respectively. Therefore state d can
be removed and replaced by a. The final reduced state table is shown below.
Next state Output
Present state
X= 0 X= 1 X= 0 X= 1
a a b 0 0
b c b 0 0
c a b 0 1
Reduced State table
CS8351 Digital Principles and System Design 71
Unit - III Synchronous Sequential Circuits

Binary Assignment:
Now each state is assigned with binary values. Since there are three states,
number of Flip-Flops required is two and 2 binary numbers are assigned to the
states. a= 00; b= 0; and c= 10
The reduced state diagram is drawn as,

Reduced State Diagram


Excitation Table:
Next
Present State Inputs
State
Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0
Excitation table for JK Flip-Flop

Present
Input Next state Flip-Flop Inputs Output
state
X A B A B JA KA JB KB Y
0 0 0 0 0 0 x 0 x 0
1 0 0 0 1 0 x 1 x 0

CS8351 Digital Principles and System Design 72


Unit - III Synchronous Sequential Circuits

0 0 1 1 0 1 x x 1 0
1 0 1 0 1 0 x x 0 0
0 1 0 0 0 x 1 0 x 0
1 1 0 0 1 x 1 1 x 1
0 1 1 x x x x x x x
1 1 1 x x x x x x x
K-map Simplification:

With these Flip-Flop input functions and circuit output function we can draw
the logic diagram as follows.

CS8351 Digital Principles and System Design 73


Unit - III Synchronous Sequential Circuits

3. Design a clocked sequential machine using T Flip-Flops for the following state
diagram. Use state reduction if possible. Also use straight binary state
assignment.

Soln:
State Table:
State table for the given state diagram is,

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1

CS8351 Digital Principles and System Design 74


Unit - III Synchronous Sequential Circuits

a a b 0 0
b d c 0 0
c a b 1 0
d b a 1 1

Even though a and c are having same next states for input X=0 and X=1, as
the outputs are not same state reduction is not possible.

State Assignment:
Use straight binary assignments as a= 00, b= 01, c= 10 and d= 11, the
transition table is,

Present Flip-Flop
Input Next state Output
state Inputs
X A B A B TA TB Y
0 0 0 0 0 0 0 0
0 0 1 1 1 1 0 0
0 1 0 0 0 1 0 1
0 1 1 0 1 1 0 1
1 0 0 0 1 0 1 0
1 0 1 1 0 1 1 0
1 1 0 0 1 1 1 0
1 1 1 0 0 1 1 1

CS8351 Digital Principles and System Design 75


Unit - III Synchronous Sequential Circuits

K-map simplification:

Logic Diagram:

3.12 STATE ASSIGNMENT


In sequential circuits, the behavior of the circuit is defined in terms of its
inputs, presentstates, next states and outputs. To generate desired next state at
particular present state and inputs, it is necessary to have specific Flip-Flop inputs.
These Flip-Flop inputs are described by a set of Boolean functions called Flip-Flop
input functions.
To determine the Flip-Flop functions, it is necessary to represent states in the
state diagram using binary values instead of alphabets. This procedure is known as
state assignment.
CS8351 Digital Principles and System Design 76
Unit - III Synchronous Sequential Circuits

Reduced state diagram with binary states

3.12.1 Rules for state assignments


There are two basic rules for making state assignments.
Rule 1:
States having the same NEXT STATES for a given input condition should
have assignments which can be grouped into logically adjacent cells in a K-map.

Rule 2:
States that are the NEXT STATES of a single state should have assignment
which can be grouped into logically adjacent cells in a K-map.

Next state Output


Present state
X= 0 X= 1 X= 0 X= 1
00 01 10 0 0
01 11 10 1 0
10 10 11 0 1
11 00 11 0 0
State table with assignment states
CS8351 Digital Principles and System Design 77
Unit - III Synchronous Sequential Circuits

3.12.2 State Assignment Problem:


1. Design a sequential circuit for a state diagram shown below. Use state
assignment rules for assigning states and compare the required combinational
circuit with random state assignment.

Using random state assignment we assign,


a= 000, b= 001, c= 010, d= 011 and e= 100.
The excitation table with these assignments is given as,
Present state Input Next state Output
An Bn Cn X An+1 Bn+1 Cn+1 Z
0 0 0 0 0 0 1 0
0 0 0 1 0 1 0 0
0 0 1 0 0 1 1 0
0 0 1 1 1 0 0 0
0 1 0 0 1 0 0 0
0 1 0 1 0 1 1 0
0 1 1 0 0 0 0 0
0 1 1 1 0 0 0 1
1 0 0 0 0 0 0 1
1 0 0 1 0 0 0 0

CS8351 Digital Principles and System Design 78


Unit - III Synchronous Sequential Circuits

1 0 1 0 x x x x
1 0 1 1 x x x x
1 1 0 0 x x x x
1 1 0 1 x x x x
1 1 1 0 x x x x
1 1 1 1 x x x x

K-map Simplification:

The random assignments require:


7 three input AND functions
1 two input AND function
4 two input OR functions

CS8351 Digital Principles and System Design 79


Unit - III Synchronous Sequential Circuits

----------------------------------------
12 gates with 31 inputs

Now, we will apply the state assignment rules and compare the results.

State diagram after applying Rules 1 and 2


Rule 1 says that: e and d must be adjacent, and
b and c must be adjacent.
Rule 2 says that: e and d must be adjacent, and
b and c must be adjacent.
Applying Rule 1, Rule 2 to the state diagram we get the state assignment as,
Present state Input Next state Output
An Bn Cn X An+1 Bn+1 Cn+1 Z
0 0 0 0 0 0 1 0
0 0 0 1 0 1 1 0
0 0 1 0 1 0 1 0
0 0 1 1 1 1 1 0
0 1 0 0 x x x x
0 1 0 1 x x x x
0 1 1 0 1 1 1 0
0 1 1 1 1 0 1 0
1 0 0 0 x x x x

CS8351 Digital Principles and System Design 80


Unit - III Synchronous Sequential Circuits

1 0 0 1 x x x x
1 0 1 0 0 0 0 0
1 0 1 1 0 0 0 1
1 1 0 0 x x x x
1 1 0 1 x x x x
1 1 1 0 0 0 0 1
1 1 1 1 0 0 0 0

K-map Simplification:

CS8351 Digital Principles and System Design 81


Unit - III Synchronous Sequential Circuits

The state assignments using Rule 1 and 2 require:


4 three input AND functions
1 two input AND function
2 two input OR functions
----------------------------------------
7 gates with 18 inputs

Thus by simply applying Rules 1 and 2 good results have been achieved.

3.13 SHIFT REGISTERS


A register is simply a group of Flip-Flops that can be used to store a binary
number. There must be one Flip-Flop for each bit in the binary number. For instance,
a register used to store an 8-bit binary number must have 8 Flip-Flops.
The Flip-Flops must be connected such that the binary number can be entered
(shifted) into the register and possibly shifted out. A group of Flip-Flops connected
to provide either or both of these functions is called a shift register.
The bits in a binary number (data) can be removed from one place to another
in either of two ways. The first method involves shifting the data one bit at a time in
a serial fashion, beginning with either the most significant bit (MSB) or the least
significant bit (LSB). This technique is referred to as serial shifting. The second
method involves shifting all the data bits simultaneously and is referred to as parallel
shifting.

There are two ways to shift into a register (serial or parallel) and similarly two
ways to shift the data out of the register. This leads to the construction of four basic
register types—
CS8351 Digital Principles and System Design 82
Unit - III Synchronous Sequential Circuits

i. Serial in- serial out,


ii. Serial in- parallel out,
iii. Parallel in- serial out,
iv. Parallel in- parallel out.

(i) Serial in- serial out (iii) Parallel in- serial out

(iii) Serial in- parallel out (iv) Parallel in- parallel out

Serial-In Serial-Out Shift Register:


The serial in/serial out shift register accepts data serially, i.e., one bit at a time
on a single line. It produces the stored information on its output also in serial form.

Serial-In Serial-Out Shift Register

CS8351 Digital Principles and System Design 83


Unit - III Synchronous Sequential Circuits

The entry of the four bits 1010 into the register is illustrated below, beginning
with the right-most bit. The register is initially clear. The 0 is put onto the data input
line, making D=0 for FF0. When the first clock pulse is applied, FF0 is reset, thus
storing the 0.
Next the second bit, which is a 1, is applied to the data input, making D=1 for
FF0 and D=0 for FF1 because the D input of FF1 is connected to the Q0 output. When
the second clock pulse occurs, the 1 on the data input is shifted into FF0, causing
FF0 to set; and the 0 that was in FF0 is shifted into FFl.
The third bit, a 0, is now put onto the data-input line, and a clock pulse is
applied. The 0 is entered into FF0, the 1 stored in FF0 is shifted into FFl, and the 0
stored in FF1 is shifted into FF2.
The last bit, a 1, is now applied to the data input, and a clock pulse is applied.
This time the 1 is entered into FF0, the 0 stored in FF0 is shifted into FFl, the 1
stored in FF1 is shifted into FF2, and the 0 stored in FF2 is shifted into FF3. This
completes the serial entry of the four bits into the shift register, where they can be
stored for any length of time as long as the Flip-Flops have dc power.

CS8351 Digital Principles and System Design 84


Unit - III Synchronous Sequential Circuits

Four bits (1010) being entered serially into the register


To get the data out of the register, the bits must be shifted out serially and
taken off the Q3 output. After CLK4, the right-most bit, 0, appears on the Q3 output.
When clock pulse CLK5 is applied, the second bit appears on the Q3 output.
Clock pulse CLK6 shifts the third bit to the output, and CLK7 shifts the fourth bit to
the output. While the original four bits are being shifted out, more bits can be shifted
in. All zeros are shown being shifted out, more bits can be shifted in.

CS8351 Digital Principles and System Design 85


Unit - III Synchronous Sequential Circuits

Four bits (1010) being entered serially-shifted out of the register and replaced
by all zeros

CS8351 Digital Principles and System Design 86


Unit - III Synchronous Sequential Circuits

Serial-In Parallel-Out Shift Register:


In this shift register, data bits are entered into the register in the same
as serial-in serial-out shift register. But the output is taken in parallel. Once
the data are stored, each bit appears on its respective output line and all bits
are available simultaneously instead of on a bit-by-bit.

Serial-In parallel-Out Shift Register

CS8351 Digital Principles and System Design 87


Unit - III Synchronous Sequential Circuits

Four bits (1111) being serially entered into the register

Parallel-In Serial-Out Shift Register:


In this type, the bits are entered in parallel i.e., simultaneously into their
respective stages on parallel lines.
A 4-bit parallel-in serial-out shift register is illustrated below. There are four
data input lines, X0, X1, X2 and X3 for entering data in parallel into the register.
SHIFT/ LOAD input is the control input, which allows four bits of data to load in
parallel into the register.

CS8351 Digital Principles and System Design 88


Unit - III Synchronous Sequential Circuits

When SHIFT/LOAD is LOW, gates G1, G2, G3 and G4 are enabled, allowing
each data bit to be applied to the D input of its respective Flip-Flop. When a clock
pulse is applied, the Flip-Flops with D = 1 will set and those with D = 0 will reset,
thereby storing all four bits simultaneously.

Parallel-In Serial-Out Shift Register

When SHIFT/LOAD is HIGH, gates G1, G2, G3 and G4 are disabled and gates
G5, G6 and G7 are enabled, allowing the data bits to shift right from one stage to the
next. The OR gates allow either the normal shifting operation or the parallel data-
entry operation, depending on which AND gates are enabled by the level on the
SHIFT/LOAD input.

CS8351 Digital Principles and System Design 89


Unit - III Synchronous Sequential Circuits

Parallel-In Parallel-Out Shift Register:


In this type, there is simultaneous entry of all data bits and the bits appear on
parallel outputs simultaneously.

Parallel-In Parallel-Out Shift Register

3.13.5 UNIVERSAL SHIFT REGISTERS


If the register has shift and parallel load capabilities, then it is called a shift
register with parallel load or universal shift register. Shift register can be used for
converting serial data to parallel data, and vice-versa. If a parallel load capability is
added to a shift register, the data entered in parallel can be taken out in serial fashion
by shifting the data stored in the register.

The functions of universal shift register are:


1. A clear control to clear the register to 0.
2. A clock input to synchronize the operations.
3. A shift-right control to enable the shift right operation and the serial input and
output lines associated with the shift right.

CS8351 Digital Principles and System Design 90


Unit - III Synchronous Sequential Circuits

4. A shift-left control to enable the shift left operation and the serial input and
output lines associated with the shift left.
5. A parallel-load control to enable a parallel transfer and the n input lines
associated with the parallel transfer.
6. n parallel output lines.
7. A control line that leaves the information in the register unchanged even
though the clock pulses re continuously applied.

It consists of four D-Flip-Flops and four 4 input multiplexers (MUX). S0 and


S1 are the two selection inputs connected to all the four multiplexers. These two
selection inputs are used to select one of the four inputs of each multiplexer.
The input 0 in each MUX is selected when S1S0= 00 and input 1 is selected
when S1S0= 01. Similarly inputs 2 and 3 are selected when S1S0= 10 and S1S0=
11 respectively. The inputs S1 and S0 control the mode of the operation of the
register.

CS8351 Digital Principles and System Design 91


Unit - III Synchronous Sequential Circuits

4-Bit Universal Shift Register


When S1S0= 00, the present value of the register is applied to the D-inputs of
the Flip-Flops. This is done by connecting the output of each Flip-Flop to the 0 input
of the respective multiplexer. The next clock pulse transfers into each Flip-Flop, the
binary value is held previously, and hence no change of state occurs.
When S1S0= 01, terminal 1 of the multiplexer inputs has a path to the D inputs
of the Flip-Flops. This causes a shift-right operation with the lefter serial input
transferred into Flip-Flop FF3.
When S1S0= 10, a shift-left operation results with the right serial input going
into Flip-Flop FF1.
Finally when S1S0= 11, the binary information on the parallel input lines (I 1,
I2, I3 and I4) are transferred into the register simultaneously during the next clock
pulse. The function table of bi-directional shift register with parallel inputs and
parallel outputs is shown below.
Mode Control
Operation
S1 S0
0 0 No change
0 1 Shift-right
1 0 Shift-left
1 1 Parallel load

3.13.5 BI-DIRECTION SHIFT REGISTERS:


A bidirectional shift register is one in which the data can be shifted either left
or right. It can be implemented by using gating logic that enables the transfer of a
data bit from one stage to the next stage to the right or to the left depending on the
level of a control line.
CS8351 Digital Principles and System Design 92
Unit - III Synchronous Sequential Circuits

A 4-bit bidirectional shift register is shown below. A HIGH on the


RIGHT/LEFT control input allows data bits inside the register to be shifted to the
right, and a LOW enables data bits inside the register to be shifted to the left.
When the RIGHT/LEFT control input is HIGH, gates G1, G2, G3 and G4 are
enabled, and the state of the Q output of each Flip-Flop is passed through to the D
input of the following Flip-Flop. When a clock pulse occurs, the data bits are shifted
one place to the right.

4-bit bi-directional shift register

When the RIGHT/LEFT control input is LOW, gates G5, G6, G7 and G8 are
enabled, and the Q output of each Flip-Flop is passed through to the D input of the
preceding Flip-Flop. When a clock pulse occurs, the data bits are then shifted one
place to the left.

CS8351 Digital Principles and System Design 93


Unit - III Synchronous Sequential Circuits

3.14 SYNCHRONOUS COUNTERS


Flip-Flops can be connected together to perform counting operations. Such a
group of Flip- Flops is a counter. The number of Flip-Flops used and the way in
which they are connected determine the number of states (called the modulus) and
also the specific sequence of states that the counter goes through during each
complete cycle.
Counters are classified into two broad categories according to the way they
are clocked:
Asynchronous counters,
Synchronous counters.
In asynchronous (ripple) counters, the first Flip-Flop is clocked by the external
clock pulse and then each successive Flip-Flop is clocked by the output of the
preceding Flip-Flop.
In synchronous counters, the clock input is connected to all of the Flip-Flops so
that they are clocked simultaneously. Within each of these two categories, counters
are classified primarily by the type of sequence, the number of states, or the number
of Flip-Flops in the counter.

The term ‘synchronous’ refers to events that have a fixed time relationship
with each other. In synchronous counter, the clock pulses are applied to all Flip-
Flops simultaneously. Hence there is minimum propagation delay.

CS8351 Digital Principles and System Design 94


Unit - III Synchronous Sequential Circuits

Asynchronous (ripple)
S.No Synchronous counter
counter
1 All the Flip-Flops are not All the Flip-Flops are clocked
clocked simultaneously. simultaneously.
2 The delay times of all Flip- There is minimum propagation
Flops are added. Therefore delay.
there is considerable
propagation delay.
3 Speed of operation is low Speed of operation is high.
4 Logic circuit is very simple Design involves complex logic
even for more number of circuit as number of state increases.
states.
5 Minimum numbers of logic The number of logic devices is more
devices are needed. than ripple counters.
6 Cheaper than synchronous Costlier than ripple counters.
counters.

3.14.1 2-Bit Synchronous Binary Counter


In this counter the clock signal is connected in parallel to clock inputs of both
the Flip-Flops (FF0 and FF1). The output of FF0 is connected to J1 and K1 inputs of
the second Flip-Flop (FF1).

CS8351 Digital Principles and System Design 95


Unit - III Synchronous Sequential Circuits

2-Bit Synchronous Binary Counter


Assume that the counter is initially in the binary 0 state: i.e., both Flip-Flops
are RESET. When the positive edge of the first clock pulse is applied, FF0 will toggle
because J0= k0= 1, whereas FF1 output will remain 0 because J1= k1= 0. After the
first clock pulse Q0=1 and Q1=0.
When the leading edge of CLK2 occurs, FF0 will toggle and Q0 will go LOW.
Since FF1 has a HIGH (Q0 = 1) on its J1 and K1 inputs at the triggering edge of this
clock pulse, the Flip-Flop toggles and Q1 goes HIGH. Thus, after CLK2,
Q0 = 0 and Q1 = 1.
When the leading edge of CLK3 occurs, FF0 again toggles to the SET state (Q0
= 1), and FF1 remains SET (Q1 = 1) because its J1 and K1 inputs are both LOW (Q0
= 0). After this triggering edge, Q0 = 1 and Q1 = 1.
Finally, at the leading edge of CLK4, Q0 and Q1 go LOW because they both
have a toggle condition on their J1 and K1 inputs. The counter has now recycled to
its original state, Q0 = Q1 = 0.

Timing diagram
CS8351 Digital Principles and System Design 96
Unit - III Synchronous Sequential Circuits

3.14.2 3-Bit Synchronous Binary Counter


A 3 bit synchronous binary counter is constructed with three JK Flip-Flops and
an AND gate. The output of FF0 (Q0) changes on each clock pulse as the counter
progresses from its original state to its final state and then back to its original state.
To produce this operation, FF0 must be held in the toggle mode by constant HIGH,
on its J0 and K0 inputs.

3-Bit Synchronous Binary Counter


The output of FF1 (Q1) goes to the opposite state following each time Q0= 1.
This change occurs at CLK2, CLK4, CLK6, and CLK8. The CLK8 pulse causes the
counter to recycle. To produce this operation, Q0 is connected to the J1 and K1 inputs
of FF1. When Q0= 1 and a clock pulse occurs, FF1 is in the toggle mode and therefore
changes state. When Q0= 0, FF1 is in the no-change mode and remains in its present
state.
The output of FF2 (Q2) changes state both times; it is preceded by the unique
condition in which both Q0 and Q1 are HIGH. This condition is detected by the AND
gate and applied to the J2 and K2 inputs of FF2. Whenever both outputs Q0= Q1= 1,
the output of the AND gate makes the J2= K2= 1 and FF2 toggles on the following
clock pulse. Otherwise, the J2 and K2 inputs of FF2 are held LOW by the AND gate
output, FF2 does not change state.

CS8351 Digital Principles and System Design 97


Unit - III Synchronous Sequential Circuits

CLOCK Pulse Q2 Q1 Q0
Initially
0 0 0
1
0 0 1
2
0 1 0
3
0 1 1
4
1 0 0
5
1 0 1
6
1 1 0
7
1 1 1
8
0 0 0
(recycles)

Timing diagram

CS8351 Digital Principles and System Design 98


Unit - III Synchronous Sequential Circuits

3.14.3 4-Bit Synchronous Binary Counter


This particular counter is implemented with negative edge-triggered Flip-
Flops. The reasoning behind the J and K input control for the first three Flip- Flops
is the same as previously discussed for the 3-bit counter. For the fourth stage, the
Flip-Flop has to change the state when Q0= Q1= Q2= 1. This condition is decoded by
AND gate G2.

4-Bit Synchronous Binary Counter


Therefore, when Q0= Q1= Q2= 1, Flip-Flop FF3 toggles and for all other times
it is in a no-change condition. Points where the AND gate outputs are HIGH are
indicated by the shaded areas.

Timing diagram

CS8351 Digital Principles and System Design 99


Unit - III Synchronous Sequential Circuits

3.14.4 4-Bit Synchronous Decade Counter: (BCD Counter):


BCD decade counter has a sequence from 0000 to 1001 (9). After 1001 state it
must recycle back to 0000 state. This counter requires four Flip-Flops and AND/OR
logic as shown below.

4-Bit Synchronous Decade Counter

CLOCK Pulse Q3 Q2 Q1 Q0
Initially
0 0 0 0
1
0 0 0 1
2
0 0 1 0
3
0 0 1 1
4
0 1 0 0
5
0 1 0 1
6
0 1 1 0
7
0 1 1 1
8
1 0 0 0
9
1 0 0 1
0 0 0 0
10(recycles)

CS8351 Digital Principles and System Design 100


Unit - III Synchronous Sequential Circuits

• First, notice that FF0 (Q0) toggles on each clock pulse, so the logic equation
for its J0 and K0 inputs is

J0= K0= 1
This equation is implemented by connecting J0 and K0 to a constant HIGH level.
• Next, notice from table, that FF1 (Q1) changes on the next clock pulse each
time Q0 = 1 and Q3 = 0, so the logic equation for the J1 and K1 inputs is
J1= K1= Q0Q3’
This equation is implemented by ANDing Q0 and Q3 and connecting the gate output
to the J1 and K1 inputs of FFl.
• Flip-Flop 2 (Q2) changes on the next clock pulse each time both Q0 = Q1 = 1.
This requires an input logic equation as follows:

J2= K2= Q0Q1


This equation is implemented by ANDing Q0 and Q1 and connecting the gate output
to the J2 and K2 inputs of FF2.
• Finally, FF3 (Q3) changes to the opposite state on the next clock pulse each
time Q0 = 1, Q1 = 1, and Q2 = 1 (state 7), or when Q0 = 1 and Q1 = 1 (state 9).
The equation for this is as follows:

J3= K3= Q0Q1Q2+ Q0Q3


This function is implemented with the AND/OR logic connected to the J3 and K3
inputs of FF3.

CS8351 Digital Principles and System Design 101


Unit - III Synchronous Sequential Circuits

Timing diagram

3.14.5 Synchronous UP/DOWN Counter


An up/down counter is a bidirectional counter, capable of progressing in either
direction through a certain sequence. A 3-bit binary counter that advances upward
through its sequence (0, 1, 2, 3, 4, 5, 6, 7) and then can be reversed so that it goes
through the sequence in the opposite direction (7, 6, 5, 4, 3, 2, 1,0) is an illustration
of up/down sequential operation.
The complete up/down sequence for a 3-bit binary counter is shown in table
below. The arrows indicate the state-to-state movement of the counter for both its
UP and its DOWN modes of operation. An examination of Q 0 for both the up and
down sequences shows that FF0 toggles on each clock pulse. Thus, the J0 and K0
inputs of FF0 are,
J0= K0= 1

CS8351 Digital Principles and System Design 102


Unit - III Synchronous Sequential Circuits

To form a synchronous UP/DOWN counter, the control input (UP/DOWN) is


used to allow either the normal output or the inverted output of one Flip-Flop to the
J and K inputs of the next Flip-Flop. When UP/DOWN= 1, the MOD 8 counter will
count from 000 to 111 and UP/DOWN= 0, it will count from 111 to 000.

When UP/DOWN= 1, it will enable AND gates 1 and 3 and disable AND
gates 2 and 4. This allows the Q0 and Q1 outputs through the AND gates to the J
and K inputs of the following Flip-Flops, so the counter counts up as pulses are
applied.
When UP/DOWN= 0, the reverse action takes place.

J1= K1= (Q0.UP)+ (Q0’.DOWN)

J2= K2= (Q0. Q1.UP)+ (Q0’.Q1’.DOWN)

CS8351 Digital Principles and System Design 103


Unit - III Synchronous Sequential Circuits

3-bit UP/DOWN Synchronous Counter

3.14.6 MODULUS-N-COUNTERS
The counter with ‘n’ Flip-Flops has maximum MOD number 2n. Find the
number of Flip-Flops (n) required for the desired MOD number (N) using the
equation,
2n ≥ N
(i) For example, a 3 bit binary counter is a MOD 8 counter. The basic counter
can be modified to produce MOD numbers less than 2n by allowing the
counter to skin those are normally part of counting sequence.
n= 3
N= 8
2n = 23= 8= N

(ii) MOD 5 Counter:


2n= N
2n= 5
22= 4 less than N.
23= 8 > N(5)
CS8351 Digital Principles and System Design 104
Unit - III Synchronous Sequential Circuits

Therefore, 3 Flip-Flops are required.

(iii) MOD 10 Counter:


2n= N= 10
23= 8 less than N.
24= 16 > N(10).

To construct any MOD-N counter, the following methods can be used.

1. Find the number of Flip-Flops (n) required for the desired MOD number (N)
using the equation,
2n ≥ N.
2. Connect all the Flip-Flops as a required counter.
3. Find the binary number for N.
4. Connect all Flip-Flop outputs for which Q= 1 when the count is N, as inputs to
NAND gate.
5. Connect the NAND gate output to the CLR input of each Flip-Flop.

When the counter reaches Nth state, the output of the NAND gate goes LOW,
resetting all Flip-Flops to 0. Therefore the counter counts from 0 through N-1.

For example, MOD-10 counter reaches state 10 (1010). i.e., Q3Q2Q1Q0= 1 0 1 0.


The outputs Q3 and Q1 are connected to the NAND gate and the output of the NAND
gate goes LOW and resetting all Flip-Flops to zero. Therefore MOD-10 counter
counts from 0000 to 1001. And then recycles to the zero value.
CS8351 Digital Principles and System Design 105
Unit - III Synchronous Sequential Circuits

The MOD-10 counter circuit is shown below.

MOD-10 (Decade) Counter

3.15 ASYNCHRONOUS BINARY COUNTER


3.15.1 2-Bit Asynchronous Binary Counter
In 2-bit asynchronous binary counter, the clock (CLK) is applied to the clock
input of first Flop-Flop (FF0) which is always the least significant bit (LSB). The
second Flip-Flop (FF1) is triggered by the Q0 output of FF0. FF0 changes state at the
negative-going edge of each clock pulse. But FF1 changes only when triggered by a
negative-going transition of the Q0 output of FF0.
Because of the inherent propagation delay time through a Flip-Flop, a
transition of the input clock pulse (CLK) and a transition of the Q0 output of FF0 can
never occur at exactly the same time. Therefore, the two Flip-Flops are never
simultaneously triggered, so the counter operation is asynchronous.

CS8351 Digital Principles and System Design 106


Unit - III Synchronous Sequential Circuits

2-Bit Asynchronous Binary Counter


The Timing Diagram:
Let's examine the basic operation of the asynchronous counter by applying
four clock pulses to FF0 and observing the Q output of each Flip-Flop. It illustrates
the changes in the state of the Flip-Flop outputs in response to the clock pulses. Both
Flip-Flops are connected for toggle operation (J =1, K = I) and are assumed to be
initially RESET (Q LOW).
The negative-going edge of CLK 1 causes Q0 (output of FF0) to go HIGH. It
has no effect on FF1 because a negative-going transition must occur to trigger the
Flip-Flop. After the leading edge of CLK 1, Q0= 1 and Q1= 0.
The negative-going edge of CLK 2 causes Q0 to go LOW, and it triggers FF1,
causes Q1 to go HIGH. After the leading edge of CLK 2, Q0= 0 and Q1= 1.
The negative-going edge of CLK 3 causes Q0 to go HIGH again and it has no
effect on FF1. Thus after the leading edge of CLK 3, Q0= 1 and Q1= 1.
The negative-going edge of CLK 4 causes Q0 to go LOW, causing Q1 to go
LOW. After the leading edge of CLK 4, Q0= 0 and Q1= 0.
The counter has now recycled to its original state. Since it goes through a
binary sequence (00, 01, 10, and 11) this counter is a binary counter.

CS8351 Digital Principles and System Design 107


Unit - III Synchronous Sequential Circuits

Timing diagram for 2-bit counter

3.15.2 3-Bit Asynchronous Binary Counter


The basic operation is the same as that of the 2-bit counter except that the 3-bit
counter has eight states, due to its three Flip-Flops. A timing diagram is shown below
for eight clock pulses. Notice that the counter progresses through a binary count of
zero through seven and then recycles to the zero state. This counter can be easily
expanded for higher count, by connecting additional toggle Flip-Flops.

3-Bit Asynchronous Binary Counter

CS8351 Digital Principles and System Design 108


Unit - III Synchronous Sequential Circuits

Timing diagram

Propagation Delay
Asynchronous counters are commonly referred to as “ripple counters” for
the following reason:
The effect of the input clock pulse is first '"felt" by FF0. This effect cannot get
to FF1 immediately because of the propagation delay through FF0. Then there is the
propagation delay through FF1 before FF2 can be triggered. Thus, the effect of an
input clock pulse "ripples" through the counter taking some time, due to propagation
delays, to reach the last Flip-Flop.
The figure below shows the ripple clocking effect for the first four clock
pulses, with the propagation delay indicated. The propagation delay of the first stage
is added in the propagation delay of second stage to decide the transition time for
the third stage.
The cumulative delay of an asynchronous counter is a major disadvantage in
many applications because it limits the rate at which the counter can be clocked and
creates decoding problems.

CS8351 Digital Principles and System Design 109


Unit - III Synchronous Sequential Circuits

For example, each Flip-Flop has a propagation delay for 10nsec,


Total delay time, tp= 3 x 10= 30ns
The maximum clock frequency,
fmax= 1/tp= 1/(30x 10-9)
= 33.33 MHz.

Propagation delays

3.15.3 Asynchronous Decade (MOD 10) Counters


The modulus (N) of a counter is the number of unique states that the counter
will sequence through. The maximum possible states (maximum modulus) of a
counter is 2n; where ‘n’ is the number of Flip-Flops in the counter.
Counters can also be designed to have a number of states in their sequence that
is less than the maximum of 2n. The resulting sequence is called a truncated
sequence.
One common modulus for counters with truncated sequences is ten, called
MOD10.

CS8351 Digital Principles and System Design 110


Unit - III Synchronous Sequential Circuits

Asynchronous Decade Counters


2n ≥ N

24 ≥ 10

N= 4= Number of Flip-Flops

Counters with 10 states in their sequence are called decade counters. A decade
counter with a count sequence of zero (0000) through nine (1001) is a BCD decade
counter because its ten-state sequence produces the BCD code. This type of counter
is useful in display applications in which BCD is required for conversion to a
decimal readout.
To obtain a truncated sequence, it is necessary to force the counter to recycle
before going through all of its possible states. For example, the BCD decade counter
must recycle back to the 0000 state after the 100l state. A decade counter requires
four Flip-Flops (three Flip-Flops are insufficient because 23 = 8).
One way to make the counter recycle after the count of nine (1001) is to
decode count ten (l010) with a NAND gate and connect the output of the NAND
gate to the clear (CLR) inputs of the Flip-Flops.
CS8351 Digital Principles and System Design 111
Unit - III Synchronous Sequential Circuits

Partial Decoding
Notice in Figure that only Q1 and Q3 are connected to the NAND gate inputs.
This arrangement is an example of partial decoding, in which the two unique states
(Q1 = 1 and Q3 = 1) are sufficient to decode the count of ten because none of the
other states (zero through nine) have both Q1 and Q3, HIGH at the same time. When
the counter goes into count ten (1010), the decoding gate output goes LOW and
asynchronously resets all the Flip-Flops.

Timing Diagram
3.16 SHIFT REGISTER COUNTERS:
A shift register counter is basically a shift register with the serial output
connected back to the serial input to produce special sequences. Two of the most
common types of shift register counters are:
Johnson counter (Shift Counter),
Ring counter,

CS8351 Digital Principles and System Design 112


Unit - III Synchronous Sequential Circuits

3.16.1 Johnson counter (Shift Counter):


In a Johnson counter the complement of the output of the last Flip-Flop is
connected back to the D input of the first Flip-Flop. This feedback arrangement
produces a characteristic sequence of states as shown in table below. The 4-bit
sequence has a total of eight states, and that the 5-bit sequence has a total of ten
states. In general, a Johnson counter will produce a modulus of 2n, where ‘n’ is the
number of stages in the counter.

4-Bit Johnson Counter

The Q output of each stage is connected to the D input of the next stage
(assuming that D Flip-Flops are used). The complement output of the last stage is
connected back to the D input of the first stage.

Time sequence for a 4-bit Johnson counter

CS8351 Digital Principles and System Design 113


Unit - III Synchronous Sequential Circuits

3.16.2 Ring Counters


The ring counter utilizes one Flip-Flop for each state in its sequence. It has
the advantage that decoding gates are not required. In the case of a l0-bit ring counter,
there is a unique output for each decimal digit.

Ring counter
The output Q0 sets D1 input, Q1 sets D2, Q2 sets D3 and Q3 is fed back to D0.
Because of these conditions, bits are shifted left one position per positive clock edge
and fed back to the input. All the Flip-Flops are clocked together. When CLR goes
low then back to high, the output is 0000.

The first positive clock edge shifts MSB to LSB position and other bits to one
position left so that the output becomes Q= 0010. This process continues on second
and third clock edge so that successive outputs are 0100 and 1000. The fourth

CS8351 Digital Principles and System Design 114


Unit - III Synchronous Sequential Circuits

positive clock edge starts the cycle all over again and the output is 0001. Thus the
stored 1 bit follows a circular path (i.e., the stored 1 bits move left through all Flip-
Flops and the final Flip-Flop sends it back to the first Flip-Flop). This action has
given the name of ring counter.

3.17 DESIGN OF COUNTERS


The procedure for design of counters as follows:
1. Specify the counter sequence and draw a state diagram.
2. Derive a next-state table from the state diagram.
3. Make the state assignment and develop a transition table showing the Flip-
Flop inputs required.
4. Draw the K-maps for each input of each Flip-Flop.
5. Derive the logic expression for each Flip-Flop input from the K-maps.
6. Implement the expressions with combinational logic and combine with the
Flip-Flops to form the counter.

1. Using JK Flip-Flops, design a synchronous counter which counts in the


sequence,
000, 001, 010, 011, 100, 101, 110, 111, 000.
Soln:
Step 1: State Diagram

CS8351 Digital Principles and System Design 115


Unit - III Synchronous Sequential Circuits

Step 2: State Table


Present State Next State
000 001
001 010
010 011
011 100
100 101
101 110
110 111
111 000

Step 3: Excitation Table for counter


Excitation Table for JK Flip-Flop:
Present State Next State Inputs
Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0

CS8351 Digital Principles and System Design 116


Unit - III Synchronous Sequential Circuits

Excitation Table for Counter:


Present State Next State Flip-Flop Inputs
Q2 Q1 Q0 q2 q1 q0 J2 K2 J1 K1 J0 K0
0 0 0 0 0 1 0 x 0 x 1 x
0 0 1 0 1 0 0 x 1 x x 1
0 1 0 0 1 1 0 x x 0 1 x
0 1 1 1 0 0 1 x x 1 x 1
1 0 0 1 0 1 x 0 0 x 1 x
1 0 1 1 1 0 x 0 1 x x 1
1 1 0 1 1 1 x 0 x 0 1 x
1 1 1 0 0 0 x 1 x 1 x 1
Step 4: K-map Simplification

CS8351 Digital Principles and System Design 117


Unit - III Synchronous Sequential Circuits

Step 5: Logic Diagram

2. Design and explain the working of a synchronous MOD-3 counter.


Soln:
2n ≥ N= 3
22 > 3.
Therefore, 2 Flip-Flops are required.
State Diagram:

CS8351 Digital Principles and System Design 118


Unit - III Synchronous Sequential Circuits

State Table:
Present State Next State
00 01
01 10
10 00

Excitation Table for Counter:

Present
Next State Flip-Flop Inputs
State
QB QA QB+1 QA+1 JB KB JA KA
0 0 0 1 0 x 1 x
0 1 1 0 1 x x 1
1 0 0 0 x 1 0 x
K-map Simplification:

CS8351 Digital Principles and System Design 119


Unit - III Synchronous Sequential Circuits

Logic Diagram:

3. Design a synchronous counter with states 0, 1, 2, 3, 0, 1, ………using JK Flip-


Flops.
Soln:
State Diagram:

CS8351 Digital Principles and System Design 120


Unit - III Synchronous Sequential Circuits

State Table:
Present State Next State
00 01
01 10
10 11
11 00

Excitation Table for Counter:


Present
Next State Flip-Flop Inputs
State
QB QA QB+1 QA+1 JB KB JA KA
0 0 0 1 0 x 1 x
0 1 1 0 1 x x 1
1 0 1 1 x 0 1 x
1 1 0 0 x 1 x 1
K-map Simplification:

CS8351 Digital Principles and System Design 121


Unit - III Synchronous Sequential Circuits

Logic Diagram:

4. Design a MOD-7 synchronous counter using JK Flip-Flops. Write excitation


table and state table.
Soln:
2n ≥ N= 7
23 > 8.
Therefore, 3 Flip-Flops are required.
State Diagram:

State Table:
CS8351 Digital Principles and System Design 122
Unit - III Synchronous Sequential Circuits

Present State Next State


000 001
001 010
010 011
011 100
100 101
101 110
110 000

Excitation Table for JK Flip-Flop:


Present State Next State Inputs
Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0
Excitation Table for Counter:
Present State Next State Flip-Flop Inputs
QC QB QA QC+1 QB+1 QA+1 JC KC JB KB JA KA
0 0 0 0 0 1 0 x 0 x 1 x
0 0 1 0 1 0 0 x 1 x x 1
0 1 0 0 1 1 0 x x 0 1 x
0 1 1 1 0 0 1 x x 1 x 1
1 0 0 1 0 1 x 0 0 x 1 x
1 0 1 1 1 0 x 0 1 x x 1

CS8351 Digital Principles and System Design 123


Unit - III Synchronous Sequential Circuits

1 1 0 0 0 0 x 1 x 1 0 x

K-map Simplification:

Logic Diagram:

CS8351 Digital Principles and System Design 124


Unit - III Synchronous Sequential Circuits

5. Design a MOD-10 synchronous counter using JK Flip-Flops. Write excitation


table and state table.
Soln:
2n ≥ N= 10
24 > 10.
Therefore, 4 Flip-Flops are required.

State Table:

CS8351 Digital Principles and System Design 125


Unit - III Synchronous Sequential Circuits

State Table:
Present State Next State
0000 0001
0001 0010
0010 0011
0011 0100
0100 0101
0101 0110
0110 0111
0111 1000
1000 1001
1001 0000

Excitation Table for JK Flip-Flop:


Present State Next State Inputs
Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0

Excitation Table for Counter:


Present State Next State Flip-Flop Inputs

CS8351 Digital Principles and System Design 126


Unit - III Synchronous Sequential Circuits

Q Q Q Q QD+ QC+ QB+ QA+ J K J K J K J K


D C B A 1 1 1 1 D D C C B B A A

0 0 0 0 0 0 0 1 0 x 0 x 0 x 1 x
0 0 0 1 0 0 1 0 0 x 0 x 1 x x 1
0 0 1 0 0 0 1 1 0 x 0 x x 0 1 x
0 0 1 1 0 1 0 0 0 x 1 x x 1 x 1
0 1 0 0 0 1 0 1 0 x x 0 0 x 1 x
0 1 0 1 0 1 1 0 0 x x 0 1 x x 1
0 1 1 0 0 1 1 1 0 x x 0 x 0 1 x
0 1 1 1 1 0 0 0 1 x x 1 x 1 x 1
1 0 0 0 1 0 0 1 x 0 0 x 0 x 1 x
1 0 0 1 0 0 0 0 x 1 0 x 0 x x 1
K-map Simplification:

CS8351 Digital Principles and System Design 127


Unit - III Synchronous Sequential Circuits

CS8351 Digital Principles and System Design 128


Unit - III Synchronous Sequential Circuits

Logic Diagram:

6. Design a synchronous 3-bit gray code up counter with the help of excitation
table.
Soln:
Gray code sequence: 000, 001, 011, 010, 110, 111, 101, 100.

State Diagram:

State Table:
Present State Next State
000 001

CS8351 Digital Principles and System Design 129


Unit - III Synchronous Sequential Circuits

001 011
011 010
010 110
110 111
111 101
101 100
100 000

Excitation Table for counter:


Present State Next State Flip-Flop Inputs
QC QB QA QC+1 QB+1 QA+1 JC KC JB KB JA KA
0 0 0 0 0 1 0 x 0 x 1 x
0 0 1 0 1 1 0 x 1 x x 0
0 1 1 0 1 0 0 x x 0 x 1
0 1 0 1 1 0 1 x x 0 0 x
1 1 0 1 1 1 x 0 x 0 1 x
1 1 1 1 0 1 x 0 x 1 x 0
1 0 1 1 0 0 x 0 0 x x 1
1 0 0 0 0 0 x 1 0 x 0 x
K-map Simplification:

CS8351 Digital Principles and System Design 130


Unit - III Synchronous Sequential Circuits

Logic Diagram:

CS8351 Digital Principles and System Design 131


Unit - III Synchronous Sequential Circuits

7. Design a 3 bit (MOD 8) Synchronous UP/DOWN counter.


Soln:
When UP/DOWN= 1, UP mode,
UP/DOWN= 0, DOWN mode.
State Diagram:

State Table:
Control Input
Present State Next State
UP/DOWN
0 000 111
0 111 110
0 110 101
0 101 100
0 100 011
0 011 010
0 010 001
0 001 000
1 000 001
1 001 010

CS8351 Digital Principles and System Design 132


Unit - III Synchronous Sequential Circuits

1 010 011
1 011 100
1 100 101
1 101 110
1 110 111
1 111 000
Excitation Table:
Input Present State Next State A B C
Up/Down QA QB QC QA+1 QB+1 QC+1 JA KA JB KB JC KC
0 0 0 0 1 1 1 1 x 1 x 1 x
0 1 1 1 1 1 0 x 0 x 0 x 1
0 1 1 0 1 0 1 x 0 x 1 1 x
0 1 0 1 1 0 0 x 0 0 x x 1
0 1 0 0 0 1 1 x 1 1 x 1 x
0 0 1 1 0 1 0 0 x x 0 x 1
0 0 1 0 0 0 1 0 x x 1 1 x
0 0 0 1 0 0 0 0 x 0 x x 1
1 0 0 0 0 0 1 0 x 0 x 1 x
1 0 0 1 0 1 0 0 x 1 x x 1
1 0 1 0 0 1 1 0 x x 0 1 x
1 0 1 1 1 0 0 1 x x 1 x 1
1 1 0 0 1 0 1 x 0 0 x 1 x
1 1 0 1 1 1 0 x 0 1 x x 1
1 1 1 0 1 1 1 x 0 x 0 1 x
1 1 1 1 0 0 0 x 1 x 1 x 1

CS8351 Digital Principles and System Design 133


Unit - III Synchronous Sequential Circuits

K-map Simplification

CS8351 Digital Principles and System Design 134


Unit - III Synchronous Sequential Circuits

Circuit Diagram:

MOD-8 Synchronous UP/DOWN Counter

LOCKOUT CONDITION
In a counter if the next state of some unused state is again a used state
and if by chance the counter happens to find itself in the unused states and never
arrived at a used state then the counter is said to be in the lockout condition.

Desired Sequence
The circuit that goes in lockout condition is called bushless circuit. To make
sure that the counter will come to the initial state from any unused state, the
additional logic circuit is necessary. To ensure that the lockout does not occur, the
counter should be designed by forcing the next state to be the initial state from the
unused states as shown below.

CS8351 Digital Principles and System Design 135


Unit - III Synchronous Sequential Circuits

State diagram for removing lockout

8. Design a synchronous counter for


Avoid lockout condition. Use JK type design.
Soln: State diagram:

Here, states 5, 2 and 0 are forced are forced to go into 6, 3 and 1state,
respectively to avoid lockout condition.
State Excitation table:
Present State Next State Flip-Flop Inputs
QA QB QC QA+1 QB+1 QC+1 JA KA JB KB JC KC
0 0 0 0 0 1 0 x 0 x 1 x
0 0 1 1 0 0 1 x 0 x x 1
0 1 0 0 1 1 0 x x 0 1 x
0 1 1 0 0 1 0 x x 1 x 0
1 0 0 1 1 0 x 0 1 x 0 x

CS8351 Digital Principles and System Design 136


Unit - III Synchronous Sequential Circuits

1 0 1 1 1 0 x 0 1 x x 1
1 1 0 1 1 1 x 0 x 0 1 x
1 1 1 0 1 1 x 1 x 0 x 0
K-map Simplification:

CS8351 Digital Principles and System Design 137


Unit - III Synchronous Sequential Circuits

Logic Diagram:

CS8351 Digital Principles and System Design 138

You might also like