SlideShare a Scribd company logo
1 of 17
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 (20)

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
 
Ff 2
Ff 2Ff 2
Ff 2
 
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
 
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
 
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
 
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]
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
eBike Sensorless Motor Control
eBike Sensorless Motor ControleBike Sensorless Motor Control
eBike Sensorless Motor Control
 

More from International Institute of Information Technology - Bangalore (6)

Digital Design Session 13
Digital Design Session 13Digital Design Session 13
Digital Design Session 13
 
Digital Design Session 6
Digital Design Session 6Digital Design Session 6
Digital Design Session 6
 
Digital Design Session 2
Digital Design Session 2Digital Design Session 2
Digital Design Session 2
 
Digital Design Session 1
Digital Design Session 1Digital Design Session 1
Digital Design Session 1
 
Digital Design Course Summary
 Digital Design Course Summary Digital Design Course Summary
Digital Design Course Summary
 
Basic Electric Circuits Tutorial 7
Basic Electric Circuits Tutorial 7Basic Electric Circuits Tutorial 7
Basic Electric Circuits Tutorial 7
 

Recently uploaded

HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

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