SlideShare a Scribd company logo
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2
Session 18: Focus
 Latches and Flip-flops
◦ Level and Edge-triggered clocks
◦ Clock edges (+ve and –ve)
 Edge-triggered D Flip-flops
◦ Negative edge-triggered (Master-Slave)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Latches and Flip-flops
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4
D-Latch: Transparent Latch
 The Control is called a trigger to the latch which allows
changes to the output of the latch based on the input (D)
 When Control is HIGH, any changes to D is reflected at the
output (Q) of the latch
 Which means that the latch is transparent to the input when
the Control is HIGH
D
C
Q
Logic Diagrams
S
R
C
S
R
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5
Latches as Storage Elements
 The state (Q) of a latch is switched by a change in
the D with control input (C) is enabled.
 This momentary change is called a trigger, and the
transition it causes is said to trigger the latch
 The state of latches change based on the level of the
control input (C)
 During the entire period of the control input the
latch output (Q) is connected to the input (D) value
 This creates an unstable state when these latches are
used in the feedback loop of sequential circuits
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6
Latches in the Feedback loop
 Since the output of a latch is connected to
combinational circuit, and the output from the
combination circuit is feeding into Latches
 Any changes in this loop creates an unstable state due the
inherent nature of latches continuously changing its
output value based on the level of the inputs to it
 This can be prevented if latches are made to change state
based on the edges rather than levels of the inputs
Latches
Input
Latches
Output
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7
Flip-Flops
 Flip-flop circuits are constructed in such a way as to make them
operate properly when they are part of a sequential circuit
 By controlling them with a common clock
 The key to the proper operation of a flip-flop is to trigger it only
during a signal transition
Flip-
Flops
Clock
Two possible
transitions
0 to 1: Positive Edge
1 to 0: Negative Edge
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8
Clock Pulse Transitions
Clock Pulses
Period
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9
Clock Responses
 The figure above shows when does the output of a
latch or a flip-flap change with respect to its control
input (clock)
Level triggered
Latches
Positive-edge
triggered
Flip-flops
Negative-edge
triggered
Flip-flops
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Negative Edge-triggered
D Flip-flop
(Master-Slave)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11
D-Latch Construction
11
S
R
C
S
R
Basic S’R’ Latch
C
Function Table of S’R’ Latch
S’ R’
(after S’ = 1, R’ = 0)
(after S’ = 0, R’ = 1)
D Latch
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12
Master-slave D Flip-flop
 The output Y of Master D Latch connects to input D
only when the Clk is HIGH
 But, during that time slave D latch is disabled, so Q is not
affected by the changes happening to Y
Master is
Enabled
Slave is Enabled
S2
D Q
S1
D Q
S1: Open: Clk LOW
S1: Closed: Clk HIGH
S2: Open: Clk HIGH
S2: Closed: Clk LOW
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13
Master-slave D Flip-flop
 When the Clk changes to LOW, Master is disabled after
having stored the state of D into it
 Now Slave gets enabled connecting the stable input Y to Q
 Thus, a change in the output (Y) of the flip-flop can be
triggered only by and during the transition of the clock
from 1 to 0
Master is
Enabled
Slave is Enabled
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14
Master-slave D Flip-flop
A Negative Edge-triggered
 The value that is produced at the output (Q) of the flip-flop is the
value that was stored in the master stage immediately before the
negative edge occurred
 So, the Master-slave construction of D Flip-flop is a negative
edge-triggered flip-flop
 The logic symbol of the negative edge-triggered D-flip-flop is
above
 Note that both Master and slave stages are D latches
 Or, the slave can be a SR Latch, but Master has to be a D Latch
Q
The state before
1-to-0
Transition is
Captured
> is the dynamic
indicator
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15
Flip-flop Explained
 In a flip-flop, before an output can change, the path
from its inputs to its outputs is broken
 So a flip-flop cannot “see” the change of its output or
of the outputs of other similar flip-flops at its input
during the same clock pulse.
 Thus, the new state of a flip-flop depends only on the
immediately preceding state
◦ And the flip-flops do not go through multiple changes of
state.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16
Session 18: Summary
 Latches and Flip-flops
◦ Level and Edge-triggered clocks
◦ Clock edges (+ve and –ve)
 Edge-triggered D Flip-flops
◦ Negative edge-triggered (Master-Slave)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17
References
Ref 1 Ref 2

More Related Content

What's hot

sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...Gautham Reddy
 
Activity on Arrow Diagram
Activity on Arrow DiagramActivity on Arrow Diagram
Activity on Arrow DiagramWaleed Liaqat
 

What's hot (15)

Digital Design Session 14
Digital Design Session 14Digital Design Session 14
Digital Design Session 14
 
Digital Design Session 21
Digital Design Session 21Digital Design Session 21
Digital Design Session 21
 
Digital Design Session 29
Digital Design Session 29Digital Design Session 29
Digital Design Session 29
 
Digital Design Session 4
Digital Design Session 4Digital Design Session 4
Digital Design Session 4
 
Digital Design Session 28
Digital Design Session 28Digital Design Session 28
Digital Design Session 28
 
Digital Design Session 3
Digital Design Session 3Digital Design Session 3
Digital Design Session 3
 
Digital Design Session 12
Digital Design Session 12Digital Design Session 12
Digital Design Session 12
 
Digital Design Session 23
Digital Design Session 23Digital Design Session 23
Digital Design Session 23
 
Digital Design Session 10
Digital Design Session 10Digital Design Session 10
Digital Design Session 10
 
Digital Design Session 5
Digital Design  Session 5Digital Design  Session 5
Digital Design Session 5
 
Digital Design Session 9
Digital Design Session 9Digital Design Session 9
Digital Design Session 9
 
Digital Design Session 8
Digital Design Session 8Digital Design Session 8
Digital Design Session 8
 
Digital Design Session 7
Digital Design  Session 7Digital Design  Session 7
Digital Design Session 7
 
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
 
Activity on Arrow Diagram
Activity on Arrow DiagramActivity on Arrow Diagram
Activity on Arrow Diagram
 

Similar to Digital Design Session 18

Aeav 301 lec 19
Aeav 301 lec 19Aeav 301 lec 19
Aeav 301 lec 190mehdi
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4RLJIT
 
counter using 4 master slave flip-flops
counter using 4 master slave flip-flops counter using 4 master slave flip-flops
counter using 4 master slave flip-flops ZunAib Ali
 
Diseño de sistemas
Diseño de sistemasDiseño de sistemas
Diseño de sistemasBertha Vega
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
 
Cnc part programming 4 unit
Cnc part programming 4 unitCnc part programming 4 unit
Cnc part programming 4 unitpalanivendhan
 
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Digital System Design
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxUtsavDas21
 
PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]Dr. S.N. Teli
 

Similar to Digital Design Session 18 (20)

Flip flop
Flip flopFlip flop
Flip flop
 
Digital Design Session 16
Digital Design Session 16Digital Design Session 16
Digital Design Session 16
 
Digital Design Session 11
Digital Design Session 11Digital Design Session 11
Digital Design Session 11
 
Flip flops & registers
Flip flops & registersFlip flops & registers
Flip flops & registers
 
Aeav 301 lec 19
Aeav 301 lec 19Aeav 301 lec 19
Aeav 301 lec 19
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
 
counter using 4 master slave flip-flops
counter using 4 master slave flip-flops counter using 4 master slave flip-flops
counter using 4 master slave flip-flops
 
Diseño de sistemas
Diseño de sistemasDiseño de sistemas
Diseño de sistemas
 
chapter 4
chapter 4chapter 4
chapter 4
 
Digital Design Session 26
Digital Design Session 26Digital Design Session 26
Digital Design Session 26
 
Digital Design Session 1
Digital Design Session 1Digital Design Session 1
Digital Design Session 1
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
Cnc part programming 4 unit
Cnc part programming 4 unitCnc part programming 4 unit
Cnc part programming 4 unit
 
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
Dee2034 chapter 6 register
Dee2034 chapter 6 registerDee2034 chapter 6 register
Dee2034 chapter 6 register
 
Trts d flip flop1
Trts d flip flop1Trts d flip flop1
Trts d flip flop1
 
Unit-III.pptx
Unit-III.pptxUnit-III.pptx
Unit-III.pptx
 
PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]PLC Ladder Programming [Mechatronics]
PLC Ladder Programming [Mechatronics]
 

Recently uploaded

Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageRCC Institute of Information Technology
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsAtif Razi
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxCenterEnamel
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdfKamal Acharya
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationDr. Radhey Shyam
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfPipe Restoration Solutions
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopEmre Günaydın
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdfKamal Acharya
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdfKamal Acharya
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdfKamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Krakówbim.edu.pl
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwoodseandesed
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 

Recently uploaded (20)

Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 

Digital Design Session 18

  • 1. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
  • 2. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2 Session 18: Focus  Latches and Flip-flops ◦ Level and Edge-triggered clocks ◦ Clock edges (+ve and –ve)  Edge-triggered D Flip-flops ◦ Negative edge-triggered (Master-Slave)
  • 3. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Latches and Flip-flops
  • 4. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4 D-Latch: Transparent Latch  The Control is called a trigger to the latch which allows changes to the output of the latch based on the input (D)  When Control is HIGH, any changes to D is reflected at the output (Q) of the latch  Which means that the latch is transparent to the input when the Control is HIGH D C Q Logic Diagrams S R C S R
  • 5. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5 Latches as Storage Elements  The state (Q) of a latch is switched by a change in the D with control input (C) is enabled.  This momentary change is called a trigger, and the transition it causes is said to trigger the latch  The state of latches change based on the level of the control input (C)  During the entire period of the control input the latch output (Q) is connected to the input (D) value  This creates an unstable state when these latches are used in the feedback loop of sequential circuits
  • 6. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6 Latches in the Feedback loop  Since the output of a latch is connected to combinational circuit, and the output from the combination circuit is feeding into Latches  Any changes in this loop creates an unstable state due the inherent nature of latches continuously changing its output value based on the level of the inputs to it  This can be prevented if latches are made to change state based on the edges rather than levels of the inputs Latches Input Latches Output
  • 7. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7 Flip-Flops  Flip-flop circuits are constructed in such a way as to make them operate properly when they are part of a sequential circuit  By controlling them with a common clock  The key to the proper operation of a flip-flop is to trigger it only during a signal transition Flip- Flops Clock Two possible transitions 0 to 1: Positive Edge 1 to 0: Negative Edge
  • 8. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8 Clock Pulse Transitions Clock Pulses Period
  • 9. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9 Clock Responses  The figure above shows when does the output of a latch or a flip-flap change with respect to its control input (clock) Level triggered Latches Positive-edge triggered Flip-flops Negative-edge triggered Flip-flops
  • 10. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Negative Edge-triggered D Flip-flop (Master-Slave)
  • 11. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11 D-Latch Construction 11 S R C S R Basic S’R’ Latch C Function Table of S’R’ Latch S’ R’ (after S’ = 1, R’ = 0) (after S’ = 0, R’ = 1) D Latch
  • 12. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12 Master-slave D Flip-flop  The output Y of Master D Latch connects to input D only when the Clk is HIGH  But, during that time slave D latch is disabled, so Q is not affected by the changes happening to Y Master is Enabled Slave is Enabled S2 D Q S1 D Q S1: Open: Clk LOW S1: Closed: Clk HIGH S2: Open: Clk HIGH S2: Closed: Clk LOW
  • 13. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13 Master-slave D Flip-flop  When the Clk changes to LOW, Master is disabled after having stored the state of D into it  Now Slave gets enabled connecting the stable input Y to Q  Thus, a change in the output (Y) of the flip-flop can be triggered only by and during the transition of the clock from 1 to 0 Master is Enabled Slave is Enabled
  • 14. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14 Master-slave D Flip-flop A Negative Edge-triggered  The value that is produced at the output (Q) of the flip-flop is the value that was stored in the master stage immediately before the negative edge occurred  So, the Master-slave construction of D Flip-flop is a negative edge-triggered flip-flop  The logic symbol of the negative edge-triggered D-flip-flop is above  Note that both Master and slave stages are D latches  Or, the slave can be a SR Latch, but Master has to be a D Latch Q The state before 1-to-0 Transition is Captured > is the dynamic indicator
  • 15. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15 Flip-flop Explained  In a flip-flop, before an output can change, the path from its inputs to its outputs is broken  So a flip-flop cannot “see” the change of its output or of the outputs of other similar flip-flops at its input during the same clock pulse.  Thus, the new state of a flip-flop depends only on the immediately preceding state ◦ And the flip-flops do not go through multiple changes of state.
  • 16. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16 Session 18: Summary  Latches and Flip-flops ◦ Level and Edge-triggered clocks ◦ Clock edges (+ve and –ve)  Edge-triggered D Flip-flops ◦ Negative edge-triggered (Master-Slave)
  • 17. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17 References Ref 1 Ref 2