Unit 5 Sequential Logic
Unit 5 Sequential Logic
Sequential Logic.
A timed sequential circuit consists of a group of FF (flip-flops) and a circuit
combinational connected to each other with feedback.
An MSI circuit that has storage cells within it and is classified by the
functions they perform, and there are mainly three: records, counters, and units of
memory.
Fundamentals of sequential elements.
A sequential logic circuit is one whose outputs depend not only on its inputs.
current ones, but also of their position or current state, stored in elements of
memory.
Block diagram of a sequential circuit.
It consists of a combined circuit and storage elements that together
They form a feedback system
Storage elements are devices that can store
binary information inside it (1's and 0's).
The stored binary information defines the state of the sequential circuit.
The sequential circuit receives external binary input information, which
together with the current state stored in memory determines the binary value
of the outputs, as well as the condition to change the state of the circuit.
Asynchronous.
An asynchronous sequential circuit is one whose state can be affected at any time.
Instantly when changing the value of the inputs.
Its storage elements are devices with time delay, in which the
The storage capacity is due to the fact that the signal takes a finite time to propagate.
through the device.
Asynchronous systems of the gate type.
The storage elements consist of logic gates where the time of
signal propagation provides the required storage space.
Therefore, an asynchronous sequential circuit can be considered as a circuit
combinational with feedback.
Due to the feedback between logic gates, the system can operate on
unpredictable manner and sometimes even become unstable, which is why they are used in
very few occasions.
Synchronous
Flip-Flops
The storage elements used in asynchronous sequential circuits
They are called bistables to latch (locks, safes or bolts), which are
storage devices of a bit that can change its value independently of
a clock signal.
NAND and NOR latch
A Flip-Flop circuit can be built with two NAND gates or two NOR gates.
The connection and cross coupling through the output of a gate to the input
Another constitutes a feedback trajectory.
For this reason, the circuits are classified as asynchronous sequential. Each FLIP-Flop
It has two outputs Q and Q', and two inputs SET to adjust and RESET to restore. To this
The Flip-Flop type is called directly coupled or secure RS.
Basic circuits with NOR gates.
Invalid state.
When a 1 is applied to both inputs of the flip-flop, both the output Q and Q' will go to 0.
This condition violates the fact that the outputs are complementary. This means 0 that the
outputs will no longer be the generation of one another.
Initial state:
Assuming: S=0, R=0, Q=0 and Q´=1. If at a certain moment we change the
Input S from 0 to 1, the output of gates 1 (Q') will change from 1 to 0. How is this output?
also one of the inputs of gate 2, having a 0 and a 0 as input, its
output (Q) will go from 0 to 1. As before, now the output of gate 2 (Q) is one of the
gate inputs 1. As there was a change from 0 to 1 we must see what effect
keep this at the output of gate 1. The inputs are 1 and 1 to which the gate
NOR will respond with a 0 at the output (Q´).
Truth table
J-K:
A JK flip-flop is a sequential memory device of two states of a single bit that
it is named after its inventor Jack Kil. In general, it has a clock input pin.
(CLK), two data input pins (J and K) and two output pins (Q and Q'). The JK flip-flop
it can be activated at the leading edge of the clock or at its trailing edge and therefore
They can be activated by positive or negative edge respectively.
D:
The flip flop D is a memory element that can store information in the form
of a logical 1 or 0. This flip-flop has a D input and two outputs Q and Q'. It also has
a clock input that in this case indicates that it is a dispersed FF by the edge or
descending edge. If the flip flop is triggered by the rising edge it would only appear the
triangle.
The flip flop additionally has two asynchronous inputs that allow you to set the
output Q of the flip flop, a desired output regardless of the D input and the clock state.
These entries are:
PRESET (put) and
CLEAR
It is important to note that these are active entries at a low level. Being active at a low level.
means that:
To set a 1 on the output Q, a 0 must be placed on the PRESET input.
Counters and registers
Registered:
Sets of bistables that function in unison by sharing their signals.
control.
Typically, registers formed by D-type flip-flops are used, or with
S-R or J-K flip-flops functioning as D flip-flops.
The registers need a level (latch) or edge synchronization signal.
Unlike counters, they do not have a specific sequence of states.
Asynchronous counters
They are also called propagation counters or ripple counters. A signal is applied.
external to the clock input of the first flip-flop and to the following ones it is applied as
clock signal from the previous bistable. The bistables do not trigger at the same time.
due to the delay of the gates, spurious states with values can occur
incorrect, and the clock frequency of the counter is limited.
Synchronous counters
In them all the bi-stables share the same clock and switch at the same time. Registers and
standard synchronous counter entry types: Clock signal (C)
Account activation (CE)
End of account (TC, RCO or CEO): it is set to 1 when the counter reaches the end of the
accounts.
If the count is ascending, the end is 2n-1.
If the count is descending, the end is 0.
CEO (RCO) is activated only if CE is active.
Reset (CLEAR): synchronous or asynchronous.
Parallel load enable (L, LOAD): enables the loading of an n-bit data
the counter to count from it (usually synchronous load).
Parallel load inputs (Di): are used to introduce an n-bit value if LOAD
is activated.
Ascending/descending count (UP/DOWN): in reversible counters.
Once all the input and output variables have been specified, it can be further specified in
detail the design, representing them in the corresponding Block Diagram of the
General Structure of synchronous sequential circuits based on two blocks.
One composed of a combinational circuit and another by a memory circuit connected together.
both through a feedback. The memory block is composed of flip-flops,
how could JK-type flip-flops be.
The study of the procedure for designing synchronous sequential circuits is conducted
through the application to a simple example. The points to develop are:
Reading the problem and defining variables.
Construction of the table diagram and states.
Minimization of states and obtaining the equivalent table that contains the
minimum number of states.
Determination of the number of FFs needed and complete the excitation maps
of the selected FF.
Assignment of states and generation of state transition and output tables.
Derivation of the equations for combinational circuits. Implementation
of the sequential circuit.
All steps are completely automatable as they are exact algorithms.
except for the second one which requires some intuition from the logical designer. Thus,
special effort must be invested in understanding the problem so that it becomes clearer
the realization of the corresponding state diagram is simple.
Bibliographic References
Acha Alegre, S., Caballero, A. H., Pérez Martnez, J., Castro Gil, M. (2000) Digital Electronics:
Introduction to digital logic.