Dsd Module3part1
Dsd Module3part1
DEPARTMENT OF ECE
INSTITUTE OF AERONAUTICAL ENGINEERING
Institute of Aeronautical Engineering
Sequential Circuits
The outputs of the sequential circuits depend on both the combination of present inputs
and previous outputs.
The sequential circuit contains the combinational circuit and its memory storage
elements.
The sequential circuit can contain only the memory element.
Inputs X(t) Outputs Z(t)
Combinational
DON’T WRITE
circuits
OR PLACE ANY IMAGE IN
THIS AREA.
.
Storage .
Element
S(t)
Institute of Aeronautical Engineering
Sequential Circuits
The storage (memory) elements are devices capable of storing binary information.
The binary information stored in these elements at any given time defines the state of
the sequential circuit at that time.
The present contents of the memory element is referred as present state.
The new content of the memory element which depend on the input and present state is
referred as next state.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical Engineering
Combinational Circuit
Combinational circuits are defined as the time independent circuits which do not
depends upon previous inputs to generate any output .In this output depends only upon
present input.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical
Combinational Engineering
Circuit Vs Sequential Circuits
Combinational Circuit
In this output depends only upon present input.
There is no feedback between input and output.
This is time independent.
Elementary building blocks: Logic gates
Combinational circuits don’t have capability to store any state.
As combinational circuits don’t have clock, they don’t require triggering.DON’T WRITE
OR PLACE ANY IMAGE IN
These circuits do not have any memory element. THIS AREA.
.
It is easy to use and handle. .
Types of Sequential Circuits: There are two main types of sequential circuits:
Synchronous & Asynchronous Circuits
Asynchronous Circuits
• The asynchronous sequential circuits don’t make use of the clock signals. So, the
changes in the input can easily make a change in the state of the circuit. Here, the
internal state gets altered whenever there is a change in the input.
• Unclocked flip flop or time delay is used as memory element.
DON’T WRITE
• Design of Asynchronous sequential circuits difficult OR PLACE ANY IMAGE IN
THIS AREA.
• Since there is no clock signal delay, these are fast compared to the .
.
Synchronous Sequential Circuits
Institute ofSequential
Aeronautical Engineering
Circuits
Synchronous Circuits
• The clock signal performs the synchronization of the state of memory elements in the
case of synchronous sequential circuits. The output gets synchronized with the clock’s
only positive edges or only the negative edges.
• The memory unit used for governance is clocked flip flop
• It is easy to design Synchronous sequential circuits
• The states of Synchronous sequential circuits are always predictable and thus reliable.
DON’T WRITE
• There are chances for the Asynchronous circuits to enter into a OR PLACE ANY IMAGE IN
THIS AREA.
wrong state because of the time difference between the arrivals of .
.
inputs. This is called "race condition"
Institute of Aeronautical Engineering
Clock
Clock signal is an electronic logic signal (voltage or current) which oscillates between
a high and a low state at a constant frequency
Clock signal is a periodic signal and its ON time and OFF time need not be the same.
We can represent the clock signal as a square wave, when both its ON time and OFF
time are same.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical Engineering
Clock
Types of Triggering
There are two types of triggering in sequential circuits: Level triggering & Edge
triggering
• Level triggering
There are two levels, namely logic High and logic Low in clock signal.
If the sequential circuit is operated with the clock signal when it is in Logic High,
then that type of triggering is known as Positive level triggering.
DON’T WRITE
If the sequential circuit is operated with the clock signal when it is OR PLACE ANY IMAGE IN
THIS AREA.
in Logic Low, then that type of triggering is known as Negative level .
triggering.
.
Institute of Aeronautical Engineering
Clock
Edge triggering
• There are two types of transitions that occur in clock signal. That means, the
clock signal transitions either from Logic Low to Logic High or Logic High to Logic
Low.
• If the sequential circuit is operated with the clock signal that is transitioning from
Logic Low to Logic High, then that type of triggering is known as Positive edge
triggering.
• If the sequential circuit is operated with the clock signal that is transitioning from
Logic High to Logic Low, then that type of triggering is known as Negative edge
triggering. DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical
Latches Engineering
Latches are digital circuits that store a single bit of information and hold its value
until it is updated by new input signals. It is used to store either 1 or 0 at any
specified time.
Latches can be implemented using various digital logic gates, such as AND, OR,
NOT, NAND, and NOR gates. Latches are useful for the design of the asynchronous
sequential circuit.
It consists of two outputs, which are complement to each other.
A gated latch is a latch that has a third input that must be active in order for the
inputs to take effect. This third input is sometimes called ENABLE because it
DON’T WRITE
enables the operation of the inputs. Latches are level-sensitive devices OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical Engineering
Flip flops
Flip-flop is a digital memory circuit, and with the help of the flip-flop we can store one
bit of information.
The fundamental blocks of various sequential circuits are flip-flops.
Flip-Flop is sensitive to the clock signals and until there is a change in the clock signal, it
never changes the output.
There are four kinds of flip-flops:
• Data or Delay (D) Flip-Flop
• JK Flip-Flop
• Toggle (T) Flip-Flop
• SR (Set-Reset) Flip-Flop DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical Engineering
Comparison of Latch and FFs
• Flip-Flop and Latches are bistable device, that is there are two stable
states, which are represented as 0 and 1.
• Gates like NOR, NOT, AND, NAND are building blocks of both flip flops and
latches.
• A flip-flop is synchronous ,it works based on the clock signal where as a
latch is asynchronous. It does not work based on the clock signal.
• A Latch is a level triggered device but a Flip-flop is an edge triggered device.
• Flip-flop is sensitive to the applied input and the clock signal where as
Latches are sensitive to the applied input signal- only when enabled.
DON’T WRITE
• Flip-flop requires more power where as Latches requires comparatively less ANY IMAGE IN
OR PLACE
power. THIS AREA.
.
• It is quite easy to perform circuit analysis for Flip-flop but analyzing the
.
circuit is quite complex for latches.
Institute of Aeronautical
SR-Flip Flop: Engineering
In digital circuits many operations are to be carried out in a proper sequence at the
appropriate time.
These operations are controlled by clock pulses
The flip flop output is controlled i.e., neither be set nor reset without the preference of
the clock pulses. Such a flip flop is called as clocked SR-flip flop.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical
SR-Flip Flop: Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
SR-Flip Flop: Engineering
Institute of Aeronautical
Case (i): S=0, R=0, CP=1 Case (ii): S=0, R=1, CP=1
Case (iii): S=1, R=0, CP=1 Case (iv): S=1, R=1, CP=1
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
SR-Flip Flop: Engineering
Institute of Aeronautical
The truth table of clocked SR –Flip Flop using NAND gates is as shown in table
Q(t+1)=S+R′Q(t)
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical
SR-Flip Flop: Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute of Aeronautical
JK-Flip Flop: Engineering
The basic S-R flip-flop circuit has many advantages and uses in
sequential logic circuits but it suffers from two basic switching
problems.
1. The Indeterminate condition must always be avoided
2. If Set or Reset change state while the enable (EN) input is high
the correct latching action may not occur
Then to overcome these two fundamental design problems with the DON’T WRITE
OR PLACE ANY IMAGE IN
SR flip-flop design, the JK flip Flop was developed. THIS AREA.
.
.
Institute of Aeronautical
JK-Flip Flop: Engineering
This simple JK flip Flop is the most widely used of all the flip-flop
designs and is considered to be a universal flip-flop circuit.
The two inputs labeled “J” and “K” are identical to “S” and “R” inputs
of SR- flip flop. These are chosen by its inventor Jack Kilby to
distinguish the flip-flop design from other types.
The sequential operation of the JK flip flop is exactly the same as for
the previous SR flip-flop with the same “Set” and “Reset” inputs. DON’T WRITE
OR PLACE ANY IMAGE IN
The difference this time is that the “JK flip flop” has no invalid or THIS AREA.
.
forbidden input states of the SR Latch even when S and R are both at .
logic “1”.
JK-Flip Flop: Engineering
Institute of Aeronautical
The JK flip flop is basically a gated SR flip-flop with the addition of a clock input circuitry
that prevents the illegal or invalid output condition that can occur when both inputs S
and R are equal to logic level “1”.
The JK flip flop is basically a gated SR flip-flop with the addition of a clock input circuitry
that prevents the illegal or invalid output condition that can occur when both inputs S
and R are equal to logic level “1”.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
JK-Flip Flop: Engineering
Institute of Aeronautical
There are two essential operating modes in JK Flip Flop: edge-triggered and level-
triggered.
•Edge-Triggered: In this mode, flip flop responds to a signal transition occurring at a
clock pulse. It is commonly used in synchronous systems, where the output changes
only when the clock signal changes from low to high or high to low. The edge-
triggered JK Flip Flop ensures stable output and prevents glitches caused by rapid
changes in input values.
•Level-Triggered: Unlike the edge-triggered mode, the level-triggered JK Flip
Flop responds to the input values continuously as long as the clock signal is held at a
specific level (high or low). This mode is mainly used in asynchronous systems
DON’Tor
WRITE
applications where the input changes are directly reflected in the output. OR PLACE ANY IMAGE IN
THIS AREA.
.
.
JK-Flip Flop: Engineering
Institute of Aeronautical
In J-K Flip flop, when J=K=1 the output will oscillates back and forth between 0 and 1 in
the duration tp of the clock pulse width. So at the end of the clock pulse the value of Q
is ambiguous.
This situation is known as Race Around condition.
It can be avoided if
tp < T
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
InstituteMaster Slave JK-Flip Engineering
of Aeronautical Flop:
The master-slave flip-flop eliminates all the timing problems by using two SR flip-flops
connected together in a series configuration.
One flip-flop acts as the “Master” circuit, which triggers on the leading edge of the
clock pulse while the other acts as the “Slave” circuit, which triggers on the falling edge
of the clock pulse.
The outputs from the “Slave” flip-flop are fed back to the inputs of
the “Master” with the outputs of the “Master” flip flop being DON’T WRITE
OR PLACE ANY IMAGE IN
connected to the two inputs of the “Slave” flip flop. THIS AREA.
.
.
InstituteMaster Slave JK-Flip Engineering
of Aeronautical Flop:
The input signals J and K are connected to the gated “master” SR flip flop which “locks”
the input condition while the clock (Clk) input is “HIGH” at logic level “1”.
s the clock input of the “slave” flip flop is the inverse (complement) of the “master”
clock input, the “slave” SR flip flop does not toggle.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
InstituteMaster Slave JK-Flip Engineering
of Aeronautical Flop:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
InstituteMaster Slave JK-Flip Engineering
of Aeronautical Flop:
When the Clock pulse is high the output of master is high and remains high till the clock is
low because the state is stored.
Now the output of master becomes low when the clock pulse becomes high again and
remains low until the clock becomes high again.
Thus toggling takes place for a clock cycle.
When the clock pulse is high, the master is operational but not the slave thus the output
of the slave remains low till the clock remains high.
When the clock is low, the slave becomes operational and remains high until the clock
again becomes low.
Toggling takes place during the whole process since the output is
DON’T WRITE
changing once in a cycle. OR PLACE ANY IMAGE IN
This makes the Master-Slave J-K flip flop a Synchronous device as it THIS AREA.
only passes data with the timing of the clock signal. .
.
D-Flip Flop: Engineering
Institute of Aeronautical
One of the main disadvantages of the basic SR NAND Gate Bistable circuit is that the
indeterminate input condition of SET = “0” and RESET = “0” is forbidden.
This state will force both outputs to be at logic “1”.
To prevent this an inverter can be connected between the “SET” and the “RESET” inputs
to produce another type of flip flop circuit known as a Data Latch, Delay flip flop or D-
type Flip Flop
The S and R inputs become complements of each other ensuring DON’T WRITE
OR PLACE ANY IMAGE IN
that the two inputs S and R are never equal (0 or 1) to each other at THIS AREA.
.
the same time allowing us to control the toggle action of the flip-flop .
When D=1; clock=0; then s’=1, r’=1 and there is Clock Input Output
no change in output Q. D Q(t+1) Q’(t+1)
When D=1; clock=1; then s’=0, r’=1 ,Q=1; Q’=0.
0 X Q(t) Q’(t)
Therefore output Q=D
1 0 0 1
When D=0; clock=0; then s’=1, r’=1 and there is
no change in output Q. 1 1 1 0
When D=1; clock=1; then s’=1, r’=0 Q=0; Q’=1. DON’T WRITE
OR PLACE ANY IMAGE IN
Therefore output Q=D THIS AREA.
.
The next state equation of D-flip flop is .
Qt+1= D
T-Flip Flop: Engineering
Institute of Aeronautical
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
T-Flip Flop: Engineering
Institute of Aeronautical
T flip-flop can be used for one of these two functions such as Hold, & Complement of
present state based on the input conditions, when positive transition of clock signal is
applied.
The output of T flip-flop always T Q(t) Q(t+1)
toggles for every positive transition of 0 0 0
the clock signal, when input T 0 1 1
remains at logic High 1. Hence, T flip- 1 0 1 DON’T WRITE
OR PLACE ANY IMAGE IN
flop can be used in counters. THIS AREA.
1 1 0 .
Q(t+1) = T′Q(t) + TQ(t)′ .
⇒Q(t+1)=T ⊕ Q(t)
Flip
Institute ofFlop Excitation Tables:
Aeronautical Engineering
The excitation table has the minimum inputs, which will excite or trigger the flip flop to
go from its present state to the next state.
It is derived from the truth table.
Generally, the operation of each flip flop is explained with the help of the truth table.
The truth table has all the input combinations, for which the flip flop reacts to produce
the next state output.
The excitation table consists of two columns for present state(Qn) DON’T WRITE
OR PLACE ANY IMAGE IN
and next state(Qn+1) and one or two column for each inputs. The THIS AREA.
.
input columns depend on the type of the flip flop. .
SR of
Institute FlipAeronautical
Flop ExcitationEngineering
Table
DON’T WRITE
Invalid States OR PLACE ANY IMAGE IN
THIS AREA.
.
Truth Table of SR Flip Flop The excitation table of SR flip flop can be constructed from.
the information available in the truth table.
SR-Flip
Institute Flop ExcitationEngineering
of Aeronautical Table:
For the state transition from Qn = 0 to Qn+1 = 0, the excitation inputs required are S = 0
and R = 0 or 1. Since R has two values(0 and 1), it is denoted as don’t care condition(x).
To obtain the next state output Qn+1 = 1 from the present state input Qn = 0, the required
SR inputs are S = 1 and R = 0. Thus the excitation inputs required are S = 1 and R = 0.
The state transition from present state Qn = 1 to the next state Qn+1 = 0 happens only
when the inputs are S = 0 and R = 1.
DON’T WRITE
The state transition from Qn = 1 to Qn+1 = 1 happens at S = 0, R = 0 OR PLACE ANY IMAGE IN
THIS AREA.
and S = 1, R = 0. It is filled in the fourth row of the excitation table .
.
as Qn = 1, Qn+1 = 1 and S = x, R = 0.
JK-Flip
Institute Flop ExcitationEngineering
of Aeronautical Table:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
Truth Table of JK Flip Flop .
JK-Flip
Institute Flop ExcitationEngineering
of Aeronautical Table:
For the present state and next state values Qn = 0 and Qn+1 = 0, the inputs are J = 0 and K
= 0 or 1. Since K input has two values, it is considered as don’t care condition(x).
The state transition from Qn = 0 to Qn+1 = 0 takes place when J = 0, K = x.
The state transition from present state Qn = 0 to the next state Qn+1 = 1 occur, when the
inputs are either J = 1, K = 0 or J = 1, K = 1. Thus for Qn = 0, Qn+1 = 1 the value of J = 1 and
K = x.
For the transition of the state from 1 to 0, the inputs are J = 0, K = 1
DON’T WRITE
or J = 1, K = 1 therefore the required inputs are J = x and K =1, OR PLACE ANY IMAGE IN
THIS AREA.
For the state transition from Qn = 1 to Qn+1 = 1, the J input can be 0 .
.
or 1 but the K input remains at 0 therefore the inputs are J = x and K
= 0.
D-Flip
Institute Flop Excitation Engineering
of Aeronautical Table:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
D-Flip
Institute Flop Excitation Engineering
of Aeronautical Table:
DON’T WRITE
Truth Table of D-Flip Flop OR PLACE ANY IMAGE IN
THIS AREA.
.
.
T-Flip
Institute Flop Excitation Engineering
of Aeronautical Table:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
T-Flip
Institute Flop Excitation Engineering
of Aeronautical Table:
DON’T WRITE
Truth Table of T Flip Flop OR PLACE ANY IMAGE IN
THIS AREA.
.
.
T-Flip
Institute Flop Excitation Engineering
of Aeronautical Table:
From the truth table, we can observe that, when T input is 0, there
is no change in the state.
So for the state transition from the present state to the next state,
i.e., from Qn = 0 to Qn+1 = 0 and from Qn = 1 to Qn+1 = 1, the
excitation input require is T = 0.
From the truth table, we can also observe, when T = 1, the state of
the flip flop toggles or complemented.
DON’T WRITE
Thus, for the transition of the state from either 0 to 1 or from 1 to OR PLACE ANY IMAGE IN
THIS AREA.
0, the excitation input is T = 1. .
.
Institute of Aeronautical
SR-Latch: Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
Circuit Symbol For .
SR- Latch NOR SR- Latch
Institute of Aeronautical
SR-Latch: Engineering
0 1 0 0 1 1 0 1(Set)
0 1 1 0 1 1 1 X (Indeterminate)
1 0 0 1 0 DON’T WRITE
OR PLACE ANY IMAGE IN
1 0 1 1 0 THIS AREA.
1 1 0 0 0 .
.
1 1 1 0 0
Institute of Aeronautical
SR-Latch: Engineering
NAND SR-LATCH
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
SR-Latch: Engineering
Institute of Aeronautical
1 0 0 0 1 DON’T WRITE
OR PLACE ANY IMAGE IN
1 0 1 0 1 THIS AREA.
1 1 0 0 1 .
.
1 1 1 1 0
Institute of Aeronautical Engineering
Gated SR Latch
Side Heading
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute ofFlip Flop Conversion
Aeronautical Engineering
accordingly
Problem 1: Engineering
Institute of Aeronautical
1. Convert SR Flip-Flop to JK
Step 1: Write the Truth Table of the Desired Flip-Flop
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 1: Engineering
Institute of Aeronautical
Step 2: Obtain the Excitation Table for the given Flip-Flop from its Truth Table
Step 3: Append the Excitation Table of the given Flip-Flop to the Truth Table of the
Desired Flip-Flop Appropriately to obtain Conversion Table
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 1: Engineering
Institute of Aeronautical
Step 4: Simplify the Expressions for the Inputs of the given Flip-Flop
Step 5: Design the Necessary Circuit and make the Connections accordingly
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 2: Engineering
Institute of Aeronautical
2.Using the method of flip flop conversion carry out S-R to T conversion.
3.Convert the following flip flops into JK flip flop
i) SR flip-flop ii) T flip- flop.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Registers: Engineering
Institute of Aeronautical
Flip-flop is a 1 bit memory cell which can be used for storing the digital data.
To increase the storage capacity in terms of number of bits, we have to use a group of
flip-flop. Such a group of flip-flop is known as a Register.
The n-bit register will consist of n number of flip-flop and it is capable of storing an n-
bit word.
The binary data in a register can be moved within the register from one flip-flop to
another.
DON’T WRITE
The registers that allow such data transfers are called as shift OR PLACE ANY IMAGE IN
THIS AREA.
registers. .
.
The bits stored in registers shifted when the clock pulse is applied
Shift Registers: Engineering
Institute of Aeronautical
A Shift Register can shift the bits either to the left or to the right. A Shift Register, which
shifts the bit to the left, is known as "Shift left register", and it shifts the bit to the right,
known as " Shift Right register".
There are four mode of operations of a shift register.
1. Serial Input Serial Output
2. Serial Input Parallel Output
3. Parallel Input Serial Output
DON’T WRITE
4. Parallel Input Parallel Output OR PLACE ANY IMAGE IN
THIS AREA.
5. Bi-directional Shift Register .
.
6. Universal Shift Register
Serial of
Institute In Serial out Shift Registers:
Aeronautical Engineering
In "Serial Input Serial Output", the data is shifted "IN" or "OUT" serially.
In SISO, a single bit is shifted at a time in either right or left direction under clock control.
Let all the flip-flop be initially in the reset condition i.e. Q3 = Q2 = Q1 = Q0 = 0.
The D input of FF-3 i.e. D3 is connected to serial data input Din. Output of FF-3 i.e. Q3 is
connected to the input of the next flip-flop i.e. D2 and so on.
The block diagram of the "Serial IN Serial OUT" is
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Serial of
Institute In Serial out Shift Registers:
Aeronautical Engineering
When the clock signal application is disabled, the outputs Q3 Q2 Q1 Q0 = 0000. The LSB bit
of the number is passed to the data input Din, i.e., D3.
We will apply the clock, and this time the value of D3 is 1. The first flip flop, i.e., FF-3, is
set, and the word is stored in the register at the first falling edge of the clock. Now, the
stored word is 1000.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Serial of
Institute In Serial out Shift Registers:
Aeronautical Engineering
Apply the next bit to Din. So Din = 1. As soon as the next negative edge of the clock hits, FF-
2 will set and the stored word change to Q3 Q2 Q1 Q0 = 1100.
As soon as the third negative clock edge hits, FF-1 will be set and output will be modified
to Q3 Q2 Q1 Q0 = 1110.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Serial of
Institute In Serial out Shift Registers:
Aeronautical Engineering
with the fourth negative clock edge arriving, the stored word in the register is
Q3 Q2 Q1 Q0 = 1111.
Truth Table:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Serial of
Institute In Serial out Shift Registers:
Aeronautical Engineering
Waveforms:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Serial In
Institute ofParallel Out ShiftEngineering
Aeronautical Registers:
In SIPO, the input of the second flip flop is the output of the first flip flop, and so on.
The same clock signal is applied to each flip flop since the flip flops synchronize each
other.
The parallel outputs are used for communication.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Parallelof
Institute InAeronautical
Serial Out ShiftEngineering
Registers:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Parallelof
Institute InAeronautical
Serial Out ShiftEngineering
Registers:
Load mode:
When the shift or load bar line set to 0.
The second, fourth, and sixth "AND" gates are active hence the bits
B0, B1, B2, and B3 are passed to the corresponding flip flops when.
The binary inputs B0, B1, B2, and B3 will be paralelly loaded into the
respective flip-flops when the edge of the clock is low.
Shift mode:
The second, fourth, and sixth gates are inactive when the load and
shift line set to 0. So, we are not able to load data in a parallel way.
At this time, the first, third, and fifth gates will be activated, and the DON’T WRITE
shifting of the data will be left to the right bit. OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Parallel Input Parallel
Institute Output (PIPO)
of Aeronautical Shift Registers:
Engineering
In this mode, the 4 bit binary input B0, B1, B2, B3 is applied to the
data inputs D0, D1, D2, D3 respectively of the four flip-flops.
As soon as a negative clock edge is applied, the input binary bits will
be loaded into the flip-flops simultaneously.
The loaded bits will appear simultaneously to the output side. Only
clock pulse is essential to load all the bits.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Parallel Input Parallel
Institute Output (PIPO)
of Aeronautical Shift Registers:
Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Bidirectional
Institute Shift Register:
of Aeronautical Engineering
The binary number after shifting each bit of the number to the left
by one position will be equivalent to the number produced by
multiplying the original number by 2
The binary number after shifting each bit of the number to the right
by one position will be equivalent to the number produced by
dividing the original number by 2.
To perform the multiplication and division operation using the shift
DON’T WRITE
register, it is required that the data should be moved in both the OR PLACE ANY IMAGE IN
THIS AREA.
direction, i.e., left or right in the register. Such registers are called .
.
the "Bidirectional" shift register.
Bidirectional
Institute Shift Register:
of Aeronautical Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
DR is the "serial right shift data input", DL is the "left shift data .
0 0 No Change
0 1 Shift Right
1 0 Shift left
1 1 Parallel Loading
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Shift Register:Engineering
Institute of Aeronautical
• Design a pulse train generator using shift register for the DON’T WRITE
following pulse train ......111010...... OR PLACE ANY IMAGE IN
THIS AREA.
• Design a pulse train generator using shift register for the
.
following pulse train ......1110...... .
Pseudo Random
Institute Binary Sequence
of Aeronautical generator
Engineering
• A linear-feedback shift register (LFSR) is a shift register whose input bit is a linear
function of its previous state.
• The most commonly used linear function of single bits is exclusive-or(XOR).
• LFSR can generate a pseudo-random binary sequence using an n-bit shift register with
feedback through an exclusive or (XOR) function.
• The sequence of random numbers is a function of the current state and some previous
states.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Pseudo Random
Institute Binary Sequence
of Aeronautical generator
Engineering
• The length of the cycle depends on the seed value and the tap configuration.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Counters: Engineering
Institute of Aeronautical
An n-bit binary counter can count up to n bits. The n-bit counter will have n number of flip
flops and has 2n distinct output states.
For example, 2-bit counter has 2 flip lops and has 22 = 4 distinct states(00, 01, 10, 11).
Similarly, 3-bit counter will have 3 flip flops and has 23 = 8 distinct states(000, 001, 010,
011, 100, 101, 110, 111).
reset itself for the next clock pulse input and starts to count again.
Counters: Engineering
Institute of Aeronautical
Types of counter:
Counters are constructed with a series of flip-flops. Based on the input and the clock
pulses given to the flip-flops, there are several types of counters.
1. Asynchronous counter
2. Synchronous counter
3. Ring counter
4. Johnson counter
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
It consists of a series of flip flops, in which the output of each flip flop is connected to the
clock input of the next higher-order flip flop.
The clock pulse is given to the first flip-flop.
The flip flops in the asynchronous counter are triggered individually, that is, they are not
synchronized.
It is also called a Ripple counter.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
At every falling edge of the clock pulse, T FF1 will toggle its output state
The output of the first flip-flop(FF1) is given as a clock pulse input for the second flip-
flop(FF2). At the every falling edge of QA output of FF1, the FF2 will get triggered and
produces a toggled output.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
At the falling edge of each clock pulse, the output of FF1 toggles.
For each logic HIGH output(QA = 1) of FF1, at its falling edge, FF2 will toggle the
output(QB).
Similarly, for each logic HIGH output(QB = 1) of FF2, FF3 will toggle the output(QC).
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
If the output is taken at the normal Q output of each flip flop, then it
is an up counter. DON’T WRITE
OR PLACE ANY IMAGE IN
If the output is taken at the complemented output (Q’) of each flip THIS AREA.
.
flop, it is said to be the down counter. .
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Asynchronous
Institute counter / Ripple
of Aeronautical counter:
Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
When the control input is 1, gates 1 and 3 are enabled and gates 2 THIS AREA.
.
and 4 are disabled. This makes a way for the Q output of flip-flops to .
Synchronous counter
The synchronous counter is also an application of flip-flop
If each flip flop in the counter is triggered at the same time through the clock pulse input,
it is said to be synchronous counter.
To design a synchronous counter, Toggle flip-flop or T flip-flop is used. The clock pulse is
given to all the flip-flops in the counter.
Synchronous counters are further classified as
DON’T WRITE
1. Synchronous up counter, OR PLACE ANY IMAGE IN
THIS AREA.
2. Synchronous down counter .
.
3. Synchronous up/down counter.
Synchronous
Institute of counter:
Aeronautical Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Synchronous
Institute of counter:
Aeronautical Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
The operation is similar to that of a 3-bit counter .
.
Synchronous
Institute of counter:
Aeronautical Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Synchronous
Institute of counter:
Aeronautical Engineering
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Synchronous
Institute of counter:
Aeronautical Engineering
When control input = 1, it will disable the AND gates 2, 4 and enable gates 1, 3. At this
condition, the counter will count upwards.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Synchronous
Institute of counter:
Aeronautical Engineering
When the control input is 0, it will enable the AND gates 2, 4 and disable gates 1, 3. Using
this condition, the counter will count downwards from 111(7) to 000(0).
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Ring Counter: Engineering
Institute of Aeronautical
Truth Table:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Institute Johnson Ring Counter:
of Aeronautical Engineering
CLR CP Q1 Q2 Q3 Q4
Logic Circuit of Johnson Ring Counter:
X 0 0 0 0
1 1 0 0 0
1 1 1 0 0
1 1 1 1 0
1 1 1 1 1
1 0 1 1 1
1 0 0 1 1
1 0 0 0 1
1 0 0 0 0
DON’T WRITE
Like Ring counter, four D flip flops are used in the 4-bit Johnson OR PLACE ANY IMAGE IN
THIS AREA.
counter, and the same clock pulse is passed to all the input of .
.
the flip flops.
Institute Johnson Ring Counter:
of Aeronautical Engineering
Advantages
The Johnson counter counts twice the number of states the ring counter can count.
The Johnson counter can also be designed by using D or JK flip flop.
The data is count in a continuous loop in the Johnson ring counter.
The circuit of the Johnson counter is self-decoding.
Disadvantages
The Johnson counter is not able to count the states in a binary
DON’T WRITE
sequence. OR PLACE ANY IMAGE IN
In the Johnson counter, the unutilized states are greater than the THIS AREA.
states being utilized. .
.
InstituteAsynchronous Counters:
of Aeronautical Engineering
The asynchronous or ripple counter consists of series of flip-flops which are not synchronized
by the same clock pulse.
Design steps of synchronous counter
Find the number of flip flops using 2n ≥ N, where N is the number of states and n is the
number of flip flops.
Choose the type of flip flop.
Draw the state table and state diagram.
DON’T WRITE
Derive the flip flop reset input functions. OR PLACE ANY IMAGE IN
THIS AREA.
(connect to clear pin using nand gate) .
.
Draw the logic circuit diagram.
Problem 1: Engineering
Institute of Aeronautical
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 2: Engineering
Institute of Aeronautical
DON’T WRITE
Step 4: Use Kmap to find the reset logic function. OR PLACE ANY IMAGE IN
THIS AREA.
The above truth table for Mod-6 counter is implemented in .
.
a Karnaugh map to get the reset logic function.
Institute Synchronous Counters:
of Aeronautical Engineering
.
Design steps of synchronous counter
Find the number of flip flops using 2n ≥ N, where N is the number of states and n is the
number of flip flops.
Choose the type of flip flop.Write excitation table for that particular flip flop.
Draw the state table for synchronous counter.
Use K-map to derive the flip flop reset input functions.
DON’T WRITE
Draw the logic circuit diagram. OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 1: Engineering
Institute of Aeronautical
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 1: Engineering
Institute of Aeronautical
The excitation table for the 3-bit synchronous counter is determined from the excitation
table of JK flip flop.
The excitation table is framed for 8 states of the counter. Since 3 flip-flops are used in the
design, the present state, next state and flip flop inputs for each flip flop are considered.
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 1: Engineering
Institute of Aeronautical
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 1: Engineering
Institute of Aeronautical
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.
Problem 2: Engineering
Institute of Aeronautical
2) Design a MOD-5 synchronous counter using flip flops and Implement it? Also draw the
timing diagram?
Solution:
DON’T WRITE
OR PLACE ANY IMAGE IN
THIS AREA.
.
.