SlideShare a Scribd company logo
LATCHES AND FLIP FLOPS
CS1104-11 Lecture 11: Sequential Logic:
Latches & Flip-flops
2
Lecture 11: Sequential Logic
Latches & Flip-flops
 Introduction
 Memory Elements
 Pulse-Triggered Latch
 S-R Latch
 Gated S-R Latch
 Gated D Latch
 Edge-Triggered Flip-flops
 S-R Flip-flop
 D Flip-flop
 J-K Flip-flop
 T Flip-flop
 Asynchronous Inputs
CS1104-11 Introduction 3
Introduction
 A sequential circuit consists of a feedback path,
and employs some memory elements.
Combinational
logic
Memory
elements
Combinational
outputs Memory outputs
External inputs
Sequential circuit = Combinational logic + Memory Elements
CS1104-11 Introduction 4
Introduction
 There are two types of sequential circuits:
 synchronous: outputs change only at specific time
 asynchronous: outputs change at any time
 Multivibrator: a class of sequential circuits. They
can be:
 bistable (2 stable states)
 monostable or one-shot (1 stable state)
 astable (no stable state)
 Bistable logic devices: latches and flip-flops.
 Latches and flip-flops differ in the method used for
changing their state.
CS1104-11 S-R Latch 5
S-R Latch
 Complementary outputs: Q and Q'.
 When Q is HIGH, the latch is in SET state.
 When Q is LOW, the latch is in RESET state.
 For active-HIGH input S-R latch (also known as NOR
gate latch),
R=HIGH (and S=LOW)  RESET state
S=HIGH (and R=LOW)  SET state
both inputs LOW  no change
both inputs HIGH  Q and Q' both LOW (invalid)!
CS1104-11 S-R Latch 6
S-R Latch
 For active-LOW input S'-R' latch (also known as NAND
gate latch),
R'=LOW (and S'=HIGH)  RESET state
S'=LOW (and R'=HIGH)  SET state
both inputs HIGH  no change
both inputs LOW  Q and Q' both HIGH (invalid)!
 Drawback of S-R latch: invalid condition exists and
must be avoided.
CS1104-11 S-R Latch 7
S-R Latch
 Characteristics table for active-high input S-R latch:
 Characteristics table for active-low input S'-R' latch:
S R Q Q'
0 0 NC NC No change. Latch
remained in present state.
1 0 1 0 Latch SET.
0 1 0 1 Latch RESET.
1 1 0 0 Invalid condition.
S' R' Q Q'
1 1 NC NC No change. Latch
remained in present state.
0 1 1 0 Latch SET.
1 0 0 1 Latch RESET.
0 0 1 1 Invalid condition.
S
R
Q
Q'
S
R
Q
Q'
CS1104-11 Gated S-R Latch 8
Gated S-R Latch
 S-R latch + enable input (EN) and 2 NAND gates →
gated S-R latch.
S
R
Q
Q'
EN
S
EN
R
Q
Q'
CS1104-11 Gated S-R Latch 9
Gated S-R Latch
 Outputs change (if necessary) only when EN is
HIGH.
 Under what condition does the invalid state occur?
 Characteristic table:
Q(t) S R Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 indeterminate
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 indeterminate
EN=1
S R Q(t+1)
0 0 Q(t) No change
0 1 0 Reset
1 0 1 Set
1 1 indeterminate
Q(t+1) = S + R'.Q
S.R = 0
CS1104-11 Gated D Latch 10
Gated D Latch
 Make R input equal to S' → gated D latch.
 D latch eliminates the undesirable condition of invalid
state in the S-R latch.
D
EN
Q
Q'
D
Q
Q'
EN
CS1104-11 Gated D Latch 11
Gated D Latch
 When EN is HIGH,
 D=HIGH → latch is SET
 D=LOW → latch is RESET
 Hence when EN is HIGH, Q ‘follows’ the D (data)
input.
 Characteristic table:
When EN=1, Q(t+1) = D
EN D Q(t+1)
1 0 0 Reset
1 1 1 Set
0 X Q(t) No change
CS1104-11 Edge-Triggered Flip-flops 12
Edge-Triggered Flip-flops
 Flip-flops: synchronous bistable devices
 Output changes state at a specified point on a
triggering input called the clock.
 Change state either at the positive edge (rising edge)
or at the negative edge (falling edge) of the clock
signal.
Positive edges Negative edges
Clock signal
CS1104-11 Edge-Triggered Flip-flops 13
Edge-Triggered Flip-flops
 S-R, D and J-K edge-triggered flip-flops. Note the “>”
symbol at the clock input.
S
C
R
Q
Q'
S
C
R
Q
Q'
D
C
Q
Q'
D
C
Q
Q'
J
C
K
Q
Q'
J
C
K
Q
Q'
Positive edge-triggered flip-flops
Negative edge-triggered flip-flops
CS1104-11 SR Flip-flop 14
S-R Flip-flop
 S-R flip-flop: on the triggering edge of the clock pulse,
 S=HIGH (and R=LOW)  SET state
 R=HIGH (and S=LOW)  RESET state
 both inputs LOW  no change
 both inputs HIGH  invalid
 Characteristic table of positive edge-triggered S-R flip-
flop:
X = irrelevant (“don’t care”)
↑ = clock transition LOW to HIGH
S R CLK Q(t+1) Comments
0 0 X Q(t) No change
0 1 ↑ 0 Reset
1 0 ↑ 1 Set
1 1 ↑ ? Invalid
CS1104-11 SR Flip-flop 15
S-R Flip-flop
 It comprises 3 parts:
 a basic NAND latch
 a pulse-steering circuit
 a pulse transition detector (or edge detector) circuit
 The pulse transition detector detects a rising (or
falling) edge and produces a very short-duration
spike.
CS1104-11 D Flip-flop 16
D Flip-flop
 D flip-flop: single input D (data)
 D=HIGH  SET state
 D=LOW  RESET state
 Q follows D at the clock edge.
 Convert S-R flip-flop into a D flip-flop: add an inverter.
A positive edge-triggered D flip-
flop formed with an S-R flip-flop.
S
C
R
Q
Q'
CLK
D D CLK Q(t+1) Comments
1 ↑ 1 Set
0 ↑ 0 Reset
↑ = clock transition LOW to HIGH
CS1104-11 J-K Flip-Ffop 17
J-K Flip-flop
 J-K flip-flop: Q and Q' are fed back to the pulse-
steering NAND gates.
 No invalid state.
 Include a toggle state.
 J=HIGH (and K=LOW)  SET state
 K=HIGH (and J=LOW)  RESET state
 both inputs LOW  no change
 both inputs HIGH  toggle
CS1104-11 J-K Flip-flop 18
J-K Flip-flop
 J-K flip-flop.
 Characteristic table.
J
Q
Q'
CLK
Pulse
transition
detector
K
J K CLK Q(t+1) Comments
0 0 ↑ Q(t) No change
0 1 ↑ 0 Reset
1 0 ↑ 1 Set
1 1 ↑ Q(t)' Toggle
Q J K Q(t+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
Q(t+1) = J.Q' + K'.Q
CS1104-11 T Flip-flop 19
T Flip-flop
 T flip-flop: single-input version of the J-K flip flop,
formed by tying both inputs together.
 Characteristic table.
T CLK Q(t+1) Comments
0 ↑ Q(t) No change
1 ↑ Q(t)' Toggle
Q T Q(t+1)
0 0 0
0 1 1
1 0 1
1 1 0
Q(t+1) = T.Q' + T'.Q
T
Q
Q'
CLK
Pulse
transition
detector
J
C
K
Q
Q'
CLK
T
End of segment

More Related Content

What's hot

12 latches
12 latches12 latches
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
Viraj Shah
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
Satya P. Joshi
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
Flip-Flop (Clocked Bistable)
Flip-Flop (Clocked Bistable)Flip-Flop (Clocked Bistable)
Flip-Flop (Clocked Bistable)
Aravir Rose
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
Ramasubbu .P
 
Flipflop
FlipflopFlipflop
Flip flop
Flip flopFlip flop
Flip flop
JAGMIT Jamkhandi
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
DrSonali Vyas
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
Krishma Parekh
 
Dee2034 chapter 4 flip flop for students part
Dee2034 chapter 4 flip flop  for students partDee2034 chapter 4 flip flop  for students part
Dee2034 chapter 4 flip flop for students part
SITI SABARIAH SALIHIN
 
All flipflop
All flipflopAll flipflop
All flipflop
DHEERAJ CHOKSE
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
James Evangelos
 
Latches
LatchesLatches
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
Pradhan Rishi Sharma
 
Digital e chap 4
Digital e   chap 4Digital e   chap 4
Digital e chap 4
Mohammad Bappy
 
Understanding Flip Flops
Understanding Flip FlopsUnderstanding Flip Flops
Understanding Flip Flops
gavhays
 
Flip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas AghaniFlip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas Aghani
Information Technology Center
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
Zakariae EL IDRISSI
 
Flip flop
Flip flopFlip flop
Flip flop
hattieu16590
 

What's hot (20)

12 latches
12 latches12 latches
12 latches
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Flip-Flop (Clocked Bistable)
Flip-Flop (Clocked Bistable)Flip-Flop (Clocked Bistable)
Flip-Flop (Clocked Bistable)
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Flipflop
FlipflopFlipflop
Flipflop
 
Flip flop
Flip flopFlip flop
Flip flop
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Dee2034 chapter 4 flip flop for students part
Dee2034 chapter 4 flip flop  for students partDee2034 chapter 4 flip flop  for students part
Dee2034 chapter 4 flip flop for students part
 
All flipflop
All flipflopAll flipflop
All flipflop
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Latches
LatchesLatches
Latches
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Digital e chap 4
Digital e   chap 4Digital e   chap 4
Digital e chap 4
 
Understanding Flip Flops
Understanding Flip FlopsUnderstanding Flip Flops
Understanding Flip Flops
 
Flip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas AghaniFlip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas Aghani
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
Flip flop
Flip flopFlip flop
Flip flop
 

Viewers also liked

Pla
PlaPla
Lecture31
Lecture31Lecture31
Lecture31
Dharmesh Goyal
 
Ds flip flop
Ds flip flopDs flip flop
Ds flip flop
Khairul Azhar
 
2 in 2 days
2 in 2 days2 in 2 days
2 in 2 days
chrispartyka
 
Reading strategies red4348
Reading strategies red4348Reading strategies red4348
Reading strategies red4348
Joseph Stence
 
Widescreen presentation
Widescreen presentationWidescreen presentation
Widescreen presentation
jafarjowo
 
EMUGs Survey 2015
EMUGs Survey 2015EMUGs Survey 2015
EMUGs Survey 2015
chrispartyka
 
EMUGs & Social Media
EMUGs & Social MediaEMUGs & Social Media
EMUGs & Social Media
chrispartyka
 
Analyzing Big Data - Jeff Scheel
Analyzing Big Data - Jeff ScheelAnalyzing Big Data - Jeff Scheel
Analyzing Big Data - Jeff Scheel
Kangaroot
 
Ultrasound updates for Sydney HEMS
Ultrasound updates for Sydney HEMSUltrasound updates for Sydney HEMS
Ultrasound updates for Sydney HEMS
chrispartyka
 
Dream,How does it happen
Dream,How does it happenDream,How does it happen
Dream,How does it happen
Ahmed Elsharkawy
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
Bala Ganesh
 
Thrombolytics for Pulmonary Embolism
Thrombolytics for Pulmonary EmbolismThrombolytics for Pulmonary Embolism
Thrombolytics for Pulmonary Embolism
chrispartyka
 
Sequential logic circuits flip-flop pt 3
Sequential logic circuits   flip-flop pt 3Sequential logic circuits   flip-flop pt 3
Sequential logic circuits flip-flop pt 3
Sarah Sue Calbio
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
mubashir farooq
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
Sarah Sue Calbio
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
Yong Heui Cho
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
Vanitha Chandru
 

Viewers also liked (18)

Pla
PlaPla
Pla
 
Lecture31
Lecture31Lecture31
Lecture31
 
Ds flip flop
Ds flip flopDs flip flop
Ds flip flop
 
2 in 2 days
2 in 2 days2 in 2 days
2 in 2 days
 
Reading strategies red4348
Reading strategies red4348Reading strategies red4348
Reading strategies red4348
 
Widescreen presentation
Widescreen presentationWidescreen presentation
Widescreen presentation
 
EMUGs Survey 2015
EMUGs Survey 2015EMUGs Survey 2015
EMUGs Survey 2015
 
EMUGs & Social Media
EMUGs & Social MediaEMUGs & Social Media
EMUGs & Social Media
 
Analyzing Big Data - Jeff Scheel
Analyzing Big Data - Jeff ScheelAnalyzing Big Data - Jeff Scheel
Analyzing Big Data - Jeff Scheel
 
Ultrasound updates for Sydney HEMS
Ultrasound updates for Sydney HEMSUltrasound updates for Sydney HEMS
Ultrasound updates for Sydney HEMS
 
Dream,How does it happen
Dream,How does it happenDream,How does it happen
Dream,How does it happen
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
 
Thrombolytics for Pulmonary Embolism
Thrombolytics for Pulmonary EmbolismThrombolytics for Pulmonary Embolism
Thrombolytics for Pulmonary Embolism
 
Sequential logic circuits flip-flop pt 3
Sequential logic circuits   flip-flop pt 3Sequential logic circuits   flip-flop pt 3
Sequential logic circuits flip-flop pt 3
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 

Similar to Cs1104 11

flip-flop1.ppt
flip-flop1.pptflip-flop1.ppt
flip-flop1.ppt
profabhishekranjan
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
AreebaShoukat4
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
student
 
Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.
msa29cse
 
08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf
DSOOP
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
ThanmayiKumar
 
10529144.ppt
10529144.ppt10529144.ppt
10529144.ppt
imadshaheen2
 
Flipflop
FlipflopFlipflop
Flipflop
sohamdodia27
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
amudhak10
 
14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops
Sandeep Kumar
 
Flip flop
Flip flopFlip flop
Flip flops
Flip flopsFlip flops
Flip flops
Dalwin INDIA
 
Flip flop
Flip flopFlip flop
Flip flop
Moni Adhikary
 
flip flops.pptx
flip flops.pptxflip flops.pptx
flip flops.pptx
Yash746626
 
latchesandflipflops.ppt
latchesandflipflops.pptlatchesandflipflops.ppt
latchesandflipflops.ppt
MuhammadSheraz836877
 
Flip flops
Flip flopsFlip flops
Flip flops
Shashi Lata
 
unit3.ppt
unit3.pptunit3.ppt
unit3.ppt
priyadarsini47
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
Raghu Vamsi
 
Latch and Flipflop.pptx
Latch and Flipflop.pptxLatch and Flipflop.pptx
Latch and Flipflop.pptx
ramkumarraja7
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
jyothir19
 

Similar to Cs1104 11 (20)

flip-flop1.ppt
flip-flop1.pptflip-flop1.ppt
flip-flop1.ppt
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.
 
08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
10529144.ppt
10529144.ppt10529144.ppt
10529144.ppt
 
Flipflop
FlipflopFlipflop
Flipflop
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops14827 unit 4_clocked_flip_flops
14827 unit 4_clocked_flip_flops
 
Flip flop
Flip flopFlip flop
Flip flop
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Flip flop
Flip flopFlip flop
Flip flop
 
flip flops.pptx
flip flops.pptxflip flops.pptx
flip flops.pptx
 
latchesandflipflops.ppt
latchesandflipflops.pptlatchesandflipflops.ppt
latchesandflipflops.ppt
 
Flip flops
Flip flopsFlip flops
Flip flops
 
unit3.ppt
unit3.pptunit3.ppt
unit3.ppt
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
Latch and Flipflop.pptx
Latch and Flipflop.pptxLatch and Flipflop.pptx
Latch and Flipflop.pptx
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 

Recently uploaded

Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 

Recently uploaded (20)

Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 

Cs1104 11

  • 2. CS1104-11 Lecture 11: Sequential Logic: Latches & Flip-flops 2 Lecture 11: Sequential Logic Latches & Flip-flops  Introduction  Memory Elements  Pulse-Triggered Latch  S-R Latch  Gated S-R Latch  Gated D Latch  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs
  • 3. CS1104-11 Introduction 3 Introduction  A sequential circuit consists of a feedback path, and employs some memory elements. Combinational logic Memory elements Combinational outputs Memory outputs External inputs Sequential circuit = Combinational logic + Memory Elements
  • 4. CS1104-11 Introduction 4 Introduction  There are two types of sequential circuits:  synchronous: outputs change only at specific time  asynchronous: outputs change at any time  Multivibrator: a class of sequential circuits. They can be:  bistable (2 stable states)  monostable or one-shot (1 stable state)  astable (no stable state)  Bistable logic devices: latches and flip-flops.  Latches and flip-flops differ in the method used for changing their state.
  • 5. CS1104-11 S-R Latch 5 S-R Latch  Complementary outputs: Q and Q'.  When Q is HIGH, the latch is in SET state.  When Q is LOW, the latch is in RESET state.  For active-HIGH input S-R latch (also known as NOR gate latch), R=HIGH (and S=LOW)  RESET state S=HIGH (and R=LOW)  SET state both inputs LOW  no change both inputs HIGH  Q and Q' both LOW (invalid)!
  • 6. CS1104-11 S-R Latch 6 S-R Latch  For active-LOW input S'-R' latch (also known as NAND gate latch), R'=LOW (and S'=HIGH)  RESET state S'=LOW (and R'=HIGH)  SET state both inputs HIGH  no change both inputs LOW  Q and Q' both HIGH (invalid)!  Drawback of S-R latch: invalid condition exists and must be avoided.
  • 7. CS1104-11 S-R Latch 7 S-R Latch  Characteristics table for active-high input S-R latch:  Characteristics table for active-low input S'-R' latch: S R Q Q' 0 0 NC NC No change. Latch remained in present state. 1 0 1 0 Latch SET. 0 1 0 1 Latch RESET. 1 1 0 0 Invalid condition. S' R' Q Q' 1 1 NC NC No change. Latch remained in present state. 0 1 1 0 Latch SET. 1 0 0 1 Latch RESET. 0 0 1 1 Invalid condition. S R Q Q' S R Q Q'
  • 8. CS1104-11 Gated S-R Latch 8 Gated S-R Latch  S-R latch + enable input (EN) and 2 NAND gates → gated S-R latch. S R Q Q' EN S EN R Q Q'
  • 9. CS1104-11 Gated S-R Latch 9 Gated S-R Latch  Outputs change (if necessary) only when EN is HIGH.  Under what condition does the invalid state occur?  Characteristic table: Q(t) S R Q(t+1) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 indeterminate 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 indeterminate EN=1 S R Q(t+1) 0 0 Q(t) No change 0 1 0 Reset 1 0 1 Set 1 1 indeterminate Q(t+1) = S + R'.Q S.R = 0
  • 10. CS1104-11 Gated D Latch 10 Gated D Latch  Make R input equal to S' → gated D latch.  D latch eliminates the undesirable condition of invalid state in the S-R latch. D EN Q Q' D Q Q' EN
  • 11. CS1104-11 Gated D Latch 11 Gated D Latch  When EN is HIGH,  D=HIGH → latch is SET  D=LOW → latch is RESET  Hence when EN is HIGH, Q ‘follows’ the D (data) input.  Characteristic table: When EN=1, Q(t+1) = D EN D Q(t+1) 1 0 0 Reset 1 1 1 Set 0 X Q(t) No change
  • 12. CS1104-11 Edge-Triggered Flip-flops 12 Edge-Triggered Flip-flops  Flip-flops: synchronous bistable devices  Output changes state at a specified point on a triggering input called the clock.  Change state either at the positive edge (rising edge) or at the negative edge (falling edge) of the clock signal. Positive edges Negative edges Clock signal
  • 13. CS1104-11 Edge-Triggered Flip-flops 13 Edge-Triggered Flip-flops  S-R, D and J-K edge-triggered flip-flops. Note the “>” symbol at the clock input. S C R Q Q' S C R Q Q' D C Q Q' D C Q Q' J C K Q Q' J C K Q Q' Positive edge-triggered flip-flops Negative edge-triggered flip-flops
  • 14. CS1104-11 SR Flip-flop 14 S-R Flip-flop  S-R flip-flop: on the triggering edge of the clock pulse,  S=HIGH (and R=LOW)  SET state  R=HIGH (and S=LOW)  RESET state  both inputs LOW  no change  both inputs HIGH  invalid  Characteristic table of positive edge-triggered S-R flip- flop: X = irrelevant (“don’t care”) ↑ = clock transition LOW to HIGH S R CLK Q(t+1) Comments 0 0 X Q(t) No change 0 1 ↑ 0 Reset 1 0 ↑ 1 Set 1 1 ↑ ? Invalid
  • 15. CS1104-11 SR Flip-flop 15 S-R Flip-flop  It comprises 3 parts:  a basic NAND latch  a pulse-steering circuit  a pulse transition detector (or edge detector) circuit  The pulse transition detector detects a rising (or falling) edge and produces a very short-duration spike.
  • 16. CS1104-11 D Flip-flop 16 D Flip-flop  D flip-flop: single input D (data)  D=HIGH  SET state  D=LOW  RESET state  Q follows D at the clock edge.  Convert S-R flip-flop into a D flip-flop: add an inverter. A positive edge-triggered D flip- flop formed with an S-R flip-flop. S C R Q Q' CLK D D CLK Q(t+1) Comments 1 ↑ 1 Set 0 ↑ 0 Reset ↑ = clock transition LOW to HIGH
  • 17. CS1104-11 J-K Flip-Ffop 17 J-K Flip-flop  J-K flip-flop: Q and Q' are fed back to the pulse- steering NAND gates.  No invalid state.  Include a toggle state.  J=HIGH (and K=LOW)  SET state  K=HIGH (and J=LOW)  RESET state  both inputs LOW  no change  both inputs HIGH  toggle
  • 18. CS1104-11 J-K Flip-flop 18 J-K Flip-flop  J-K flip-flop.  Characteristic table. J Q Q' CLK Pulse transition detector K J K CLK Q(t+1) Comments 0 0 ↑ Q(t) No change 0 1 ↑ 0 Reset 1 0 ↑ 1 Set 1 1 ↑ Q(t)' Toggle Q J K Q(t+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 Q(t+1) = J.Q' + K'.Q
  • 19. CS1104-11 T Flip-flop 19 T Flip-flop  T flip-flop: single-input version of the J-K flip flop, formed by tying both inputs together.  Characteristic table. T CLK Q(t+1) Comments 0 ↑ Q(t) No change 1 ↑ Q(t)' Toggle Q T Q(t+1) 0 0 0 0 1 1 1 0 1 1 1 0 Q(t+1) = T.Q' + T'.Q T Q Q' CLK Pulse transition detector J C K Q Q' CLK T