Professional Documents
Culture Documents
Logic Circuits
Module 5
Module 5-Design of Sequential
Logic Circuits
• Latches
• Flip-Flops – SR, D, JK &T
• Bufffer Register
• Shift Register – SISI,SIPO,PISO,PIPO
• Design of sequential circuits
– State table & State Diagram
• Design of counters
– Modulo-n counter, Johnson, Ring, Up down,
Asynchronous
Sequential Logic Circuits
• Consists of a combinational circuit to which
memory elements are connected to form a
feedback path.
Inputs Outputs
Combinational
Circuit
Memory
Elements
Sequential Logic Circuits
Combinational Vs Sequential Logic
Circuits
• Combinational Logic circuits - change state
depending upon the actual signals being
applied to their inputs at that time.
Inputs Outputs
Combinational
circuit
Flip-Flops
Clock Pulses
Asynchronous Sequential Circuits
• Driven by the inputs levels
• There are no clock pulses.
• The input events drive the circuit.
• In other words, the circuit is said to be
asynchronous if it is not driven by a periodic
clock signal to synchronize its internal states.
Synchronous Vs Asynchronous
Seq. Circuits
Latches And Flip-Flops
• Latches and Flip-Flops are the basic building
blocks of sequential circuits.
• Bistable devices – 0 state and 1 state.
Latches and flip-flops
• Basic elements for storing information.
Dependency of operation Its operation depends on present, Here the operation relies on
past input and past output binary present, past input bits and past
values. output along with clock pulses.
Type S-R, J-K, T and D latches. S-R, J-K, T and D Flip flops.
Sequential circuits with loops or feedback paths are said to be “cyclic” in nature.
Classification of Sequential Logic
1. Event Driven – asynchronous circuits that
change state immediately when enabled.
2. Clock Driven – synchronous circuits that are
synchronised to a specific clock signal.
3. Pulse Driven – which is a combination of the
two that responds to triggering pulses.
Sequential Logic Circuits
• Apart from two logic states logic level “1” and
logic level “0”, a third element is introduced
that separates sequential logic circuits from
their combinational logic counterparts,
namely TIME.
• Sequential logic circuits return back to their
original steady state once reset.
Sequential Logic Circuits - Types
• Synchronous and asynchronous
• Synchronous sequential circuits - state of the
device changes only at discrete times in
response to a clock signal.
• Asynchronous circuits - state of the device can
change at any time in response to changing
inputs
Asynchronous Sequential Circuits
• Sequential circuits are those which use previous and current
input variables by storing their information and placing them back into the
circuit on the next clock (activation) cycle.
• There are two types of input to the combinational logic. External
inputs which come from outside the circuit design are not controlled by
the circuit Internal inputs are functions of a previous output state.
• Asynchronous sequential circuits do not use clock signals as synchronous
circuits do. Instead, the circuit is driven by the pulses of the inputs which
means the state of the circuit changes when the inputs change. Also, they
don’t use clock pulses. The change of internal state occurs when there is a
change in the input variable. Their memory elements are either un-
clocked flip-flops or time-delay elements. They are similar to
combinational circuits with feedback.
Asynchronous Sequential Circuits
Advantages
• No clock signal, hence no waiting for a clock pulse to begin processing inputs,
therefore fast. Their speed is faster and theoretically limited only by propagation
delays of the logic gates.
• Robust handling. Higher performance function units, which provide average-case
completion rather than worst-case completion. Lower power
consumption because no transistor transitions when it is not performing useful
computation. The absence of clock drivers reduces power consumption. Less
severe electromagnetic interference (EMI).
• More tolerant to process variations and external voltage fluctuations. Achieve high
performance while gracefully handling variable input and output rates and
mismatched pipeline stage delays. Freedom from difficulties of distributing a high-
fan-out, timing-sensitive clock signal. Better modularity.
• Less assumptions about the manufacturing process. Circuit speed adapts to
changing temperature and voltage conditions. Immunity to transistor-to-transistor
variability in the manufacturing process, which is one of the most serious
problems faced by the semiconductor industry
Asynchronous Sequential Circuits
Disadvantages –
• Some asynchronous circuits may require extra power for certain
operations.
• More difficult to design and subject to problems like sensitivity to the
relative arrival times of inputs at gates. If transitions on two inputs arrive
at almost the same time, the circuit can go into the wrong state depending
on slight differences in the propagation delays of the gates which are
known as race condition.
• The number of circuit elements (transistors) maybe double that of
synchronous circuits. Fewer people are trained in this style compared to
synchronous design. Difficult to test and debug. Their output is uncertain.
• The performance of asynchronous circuits may be reduced in architectures
that have a complex data path. Lack of dedicated, asynchronous design-
focused commercial EDA tools.
Sequential Feedback Loop
• To retain their current state, sequential
circuits rely on feedback and this occurs when
a fraction of the output is fed back to the
input.
This configuration never changes state because the output will always be the same, either a
“1” or a “0”, it is permanently set.
SR Flip-Flop
• Most basic sequential logic circuit.
• Basically a one-bit memory bi stable device.
• Has two inputs, one which will “SET” the
device (meaning the output = “1”), and is
labelled S and
• One which will “RESET” the device (meaning
the output = “0”), labelled R.
SR Flip-Flop
• SR description stands for “Set-Reset”.
• The reset input resets the flip-flop back to its
original state with an output Q.
• Q will be either at a logic level “1” or logic “0”
depending upon this set/reset condition.
• Used in memory circuits to store a single data
bit.
SR Flip-Flop
• Has three inputs, Set, Reset and its current
output Q relating to it’s current state or
history.
• The term “Flip-flop” relates to the actual
operation of the device, as it can be “flipped”
into one logic Set state or “flopped” back into
the opposing logic Reset state.
NAND Gate SR Latch
NAND Gate SR Latch & Flip-Flop
SR Latch- Set NAND Truth Table
• Let R = 0 & S = 1.
• NAND gate Y at least one input is 0, 𝑄=1.
• Output 𝑄 is fed back to input “A”
• So both inputs to NAND gate X are 1.
• Therefore output Q = 0.
SR Flip Flop - Set
0
S-R Flip-flop Switching Diagram
SR FF
Memory
↓»0 X Q Q’
no change
↑»1 0 0 1 Reset Q » 0
↑»1 1 1 0 Set Q » 1
D-type Flip Flop
• This configuration eliminates the invalid inputs
combinations as there cannot be the same
inputs.
• During the clock pulse, D flipflops SET output
when its input is High & Resets when the
input is LOW.
• It is easier to configure as compared to SR Flip
flop because there are no Invalid inputs.
Toggle T-type Flip-flop
Toggle T-type Flip-flop
• The toggle flip-flop changes state when the
clock input is applied.
• The transition from “0” to “1” will cause the
output to toggle
• Hence called as Toggle FF
• T-FF is the basic building block of many digital
circuits including frequency dividers and
digital counters.
Toggle T-type Flip-flop
• Output of T-FF changes state on every
application of a clock signal.
• So, its output frequency is one-half that of
the input signal frequency
• Therefore, it acts as a frequency divider.
• By cascading more T-FF together, the output
of the first flip-flop acts as the clock for the
second T FF and the second flip-flop acts as
clock input to the third T-FF, etc, creating a
frequency division.