Unit2_LDMC
Unit2_LDMC
Greater Noida
Unit: 2
• Program Outcomes are narrow statements that describe what the students
are expected to know and would be able to do upon the graduation.
• These relate to the skills, knowledge, and behavior that students acquire
through the programmed.
COs PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
1 3 2 - - - - - - - - - 2
2 3 3 2 - - - - - - - - 2
3 2 3 2 2 - - - - - - - 2
4 3 3 3 2 - - - - - - - 2
5 3 2 1 - - - - - - - - 2
1 3 1 -
2 3 1 -
3 2 1 -
4 3 1 -
5 3 1 -
AVERAGE 2.8 1 -
1 3 1 - 1
2 3 1 - -
3 2 2 - -
4 2 2 - -
5 3 2 - 1
Prerequisite:
• Basic knowledge of logic gates.
• Knowledge of combinational circuits.
0 0 Qn Q̅ n No change
0 1 0 1 Reset
1 0 1 0 Set
1 1 X X Invalid
• The cross-coupled connection from the output of one gate to the input
of the other gate constitutes a feedback path.
• Each latch has two outputs, Q and Q', and two inputs, set and reset.
Operation:
• If S = 1 and R = 0, Q becomes 1. Let us explain how.
• NOR gate always gives output 0 when at least one of the inputs is 1.
• So when S is applied as 1 the output of gate G2 i.e. is 0 irrespective
of the condition of second input Q to the gate.
• Now is the input of gate G1 so both the inputs of G1 become 0 as R
is already 0. So, the output of G1 is now or 1.
• So whatever may be the previous condition of Q, it always becomes
Q = 1 and Q’ = 0 when S = 1 and R = 0. This is called the SET
condition of the latch.
0 0 X X Invalid
0 1 1 0 Set
1 0 0 1 Reset
1 1 Qn Q̅ n No change
• A gated SR latch (or clocked SR Latch) can only change its output
state when there is an enabling signal along with required inputs. For
this reason it is also known as a synchronous SR latch
• In other words, the latch is active when ENABLE signal is HIGH and
it is inactive when ENABLE signal is LOW.
No
0 X X Qn Q̅ n
Change
No
1 0 0 Qn Q̅ n
Change
1 0 1 0 1 Reset
1 1 0 1 0 Set
1 1 1 X X Invalid
An event occurs during the high voltage An event occurs at the rising edge or falling
level or low voltage level. edge.
Asynchronous Synchronous
• https://nptel.ac.in/courses/117/106/117106086/
• https://www.youtube.com/watch?v=jm0PGDSSBkI&ab_channel
=IITKharagpurJuly2018
• https://www.youtube.com/watch?v=ibQBb5yEDlQ&ab_channel
=nptelhrd
Prerequisite:
• Basic knowledge of logic gates.
• Basic knowledge of latches.
• Knowledge of combinational circuits.
1 1 0 1 0 Set
1 1 1 X X Invalid
• Characteristic Table :
Qn S R Qn+1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 X
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 X
Qn Qn+1 S R
0 0 0 x
0 1 1 0
1 0 0 1
1 1 x 0
Characteristics Table
• The truth table for JK Flip Flop is as shown below
INPUTS OUTPUTS
Qn+1
Qn J K
(Next State)
0 0 0 0
0 0 1 0
0 1 0 1 Qn+1 = Q̅ nJ + Qn K̅
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Excitation Table-
• For a given combination of present state Q n and next state Qn+1,
excitation table tell the inputs required.
• The excitation table of any flip flop is drawn using its truth table.
Qn Qn+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
• The D stands for "data"; this flip-flop stores the value that is on the
data line.
• It can be thought of as a basic memory cell.
• A D flip-flop can be made from a set/reset flip-flop by tying the set to
the reset through an inverter.
• One of the salient features of a D-type flip-flop is its ability to "latch"
and store and remember data.
• This property is used in creating a delay in progress of the data in the
circuit used.
• There are several applications in which a D-type flip-flop is used,
such as in frequency dividers and data latches.
Logic Circuit:
• The circuit diagram of D flip – flop is shown in below figure.
Qn Qn+1 D
0 0 0
0 1 1
1 0 0
1 1 1
Logic Diagram :
0 X Qn Q̅ No Change
n
1 0 Qn Q̅ No Change
n
1 1 Q̅ Qn Toggle
n
• Characteristic Equation
Qn T Qn+1
0 0 0
0 1 1
1 0 1
1 1 0
Qn+1 = T̅ Qn + T Q̅ n
• Excitation Table
Qn Qn+1 T
0 0 0
0 1 1
1 0 1
1 1 0
Qn T Qn+1 Qn Qn+1 J K
0 0 0 X
0 0 0
0 1 1 X
0 1 1
1 0 X 1
1 0 1
1 1 X 0
1 1 0
Using the above excitation table find inputs J & K by taking present
state and next state of T flip flop.
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
Qn D Qn+1 Qn Qn+1 T
0 0 0
0 0 0
0 1 1
0 1 1
1 0 1
1 0 0
1 1 0
1 1 1
Using the above excitation table find inputs T by taking present state
and next state of D flip flop.
Q
D Qn+1 T
n
0 0 0 0
0 1 1 1
1 0 0 1
1 1 1 0
04/20/2025 Dr. Akanksha Singh LDMC UNIT- 2 67
Conversion of flip-flops
Eg. Covert T flip-flop to D flip-flop.
• https://nptel.ac.in/courses/117/106/117106086/
• https://www.youtube.com/watch?v=2ecMG_OciLo&ab_channel
=nptelhrdnptelhrd
• https://www.youtube.com/watch?v=2ecMG_OciLo&ab_channel
=nptelhrdnptelhrd
• https://nptel.ac.in/courses/117/106/117106086/
• https://www.youtube.com/watch?v=2ecMG_OciLo&ab_channel
=nptelhrdnptelhrd
• https://www.youtube.com/watch?v=2ecMG_OciLo&ab_channel
=nptelhrdnptelhrd
• Realize
i. A JK flip flop using SP flip flop.
ii. A SR using NAND gates and explain its operation.
Prerequisite:
• Basic knowledge of latches & flip flops.
• https://www.youtube.com/watch?v=AkO20k_my6k&ab_channel=Nes
oAcademyNesoAcademyVerified
• https://www.youtube.com/watch?v=Qa6csfkK7_I&ab_channel=Neso
Academy
• https://www.youtube.com/watch?v=0_OZKWdCixw&ab_channel=N
esoAcademy
Prerequisite:
• Basic knowledge of latches & flip flops.
• From the state diagram, we can generate the state table shown in Table. Note
that there is no output section for this circuit. Two flip-flops are needed to
represent the four states and are designated Q0Q1. The input variable is
assumed as x.
04/20/2025 Dr. Akanksha Singh LDMC UNIT- 2 87
Design of Sequential Circuits
Qn Qn+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
The combined table from the state table and excitation table is:
01 10 01 1 0 X 1
10 10 11
1 1 X 0
11 11 00
Qn Qn+1 D
0 0 0
0 1 1
1 0 0
1 1 1
The combined table from the state table and excitation table is:
Qn Qn+1 D
0 0 0
0 1 1
1 0 0
1 1 1
• https://nptel.ac.in/courses/117/106/117106086/
• https://www.youtube.com/watch?v=OGgLiGXHrsw&ab_channe
l=RajaramStudy
• https://www.youtube.com/watch?v=NbON135lf60&ab_channel
=NesoAcademy
• Design a sequential circuit for the given state diagram using JK flip
flops.
Prerequisite:
• Basic knowledge of designing of synchronous sequential circuits.
Synchronous counters :
Counter is clocked such that all the flip-flops are clocked simultaneously,
so that all the flip-flops change their output state at a same time. So the
speed of operation is increased.
Synchronous counter Design
1. Find the no flip-flops required
2. Write count sequence in tabular form
3. Draw excitation table for flip-flop inputs
4. Prepare k-map for each flip-flop inputs
5. Connect the circuit using flip-flops and other logical gates.
• A ring counter has one of its outputs connect back to the input.
It is thus making a ring. There are two types of ring counters.
• Straight ring counter – The non-inverting output (Q) of the last
flip-flop is connected to the first flip-flop.
• Johnson ring counter/Twisted ring counter – The inverting
output of the last flip-flop is connected to the first flip-flop.
• The truth table starts from 0000. This means that it is self-actuating.
• The Johnson counter does not need any input. Moreover, a Johnson counter
has more states than a straight ring counter. A binary counter has states, a
straight ring counter has N states, and a Johnson ring counter has 2N states.
• https://www.youtube.com/watch?v=32v8s0R0qIk&ab_channel=
TutorialsPoint%28India%29Ltd.TutorialsPoint%28India%29Lt
d.Verified
• https://nptel.ac.in/courses/117/106/117106086/
• To design a synchronous counter with 9 states how many flip flops are
required?
a) 4 c) 5
b) 9 d) 3
• In a 4-bit Johnson counter sequence, there are a total of how many states or
bit patterns?
a) 1
b) 3
c) 4
d) 8
• What do you understand by ring counter?
• If a 10-bit ring counter has an initial state 1101000000, what is the state after
the second clock pulse?
a) 1101000000
b) 0011010000
c) 1100000000
d) 0000000000
04/20/2025 Dr. Akanksha Singh LDMC UNIT- 2 128
Old Questions
Prerequisite:
• To have a basic understanding of Flip flops.
• Lets assume that all the flip-flops ( FFA to FFD ) have just been
RESET ( CLEAR input ) and that all the outputs QA to QD are at
logic
04/20/2025level “0” ie, noDr.
parallel
Akanksha Singhdata output.
LDMC UNIT- 2 136
Shift Register
The serial data 1011 pattern presented at the SI input. This data is
synchronized with the clock CLK.
• https://www.youtube.com/watch?v=Iecj9xmIfXM&ab_channel=
nptelhrd
• https://nptel.ac.in/courses/117/106/117106086/
sessional 1
• 2023-24
• 2022-23
• 2021-22