SlideShare uma empresa Scribd logo
1 de 17
DR. B. R. AMBEDKAR NATIONAL INSTITUTE OF TECHNOLOGY
JALANDHAR
TOPIC: Race around and Master Slave Flip Flop
SUBMITTED BY: Shubham Singh
1
What is Race Around Condition?
• It is the phenomenon which occurs in level triggered JK flip flop when
there is 1 at both of the input terminals.
• Race around means continuous toggling.
• If the width of clock pulse is too long compared to the propagation
delay of gate , the state of flip flop will keep on changing from 0 to 1,
1 to 0, 0 to 1 and so on and at the end of the clock pulse its state will
be uncertain.
2
SR NAND Latch
SR NAND Latch
NAND Gate
3
4
T
JK FLIP FLOP
• The JK Flip Flop is the most widely used flip flop. It is considered
to be a universal flip-flop circuit. The sequential operation of the
JK Flip Flop is the same as for the RS flip-flop with the
same SET and RESET input.
• The difference is that the JK Flip Flop does not have invalid states
of the RS Latch (when S and R are both 1).
• The S and R inputs of the RS bistable have been replaced by the
two inputs called the J and K input respectively.
• Here J = S and K = R. The two-input AND gates of the RS flip-flop is
replaced by the two 3 inputs NAND gates with the third input of
each gate connected to the outputs at Q and Ǭ. This cross-
coupling of the RS Flip-Flop is used to produce toggle action. As
the two inputs are interlocked.
• If the circuit is in the “SET” condition, the J input is inhibited by
the status 0 of Q through the lower NAND gate. Similarly, the
input K is inhibited by 0 status of Q through the upper NAND gate
in the “RESET” condition . When both J and K are at logic “1”, the
JK Flip Flop toggle.
The circuit diagram for JK Flip
Flop is shown above
JK Flip Flop Truth Table
• For CLK=1(Flip Flop is Enabled)
• For J=0, K=0 𝑆=1, 𝑅=1 Latch Retains Values.
• For J=0, K=1
• if 𝑄 = 1, 𝑄 = 0 𝑆=1, 𝑅=0 Latch Resets.
• If 𝑄 = 0, 𝑄 = 1 𝑆=1, 𝑅=1 Latch Retains Reset Mode.
• For J=1, K=0
• If 𝑄 = 1, 𝑄 = 0 𝑆=1, 𝑅=1 Latch Retains Set Mode.
• If𝑄 = 0, 𝑄 = 1 𝑆=0, 𝑅=1 Latch Sets.
• For J=1, K=1
• If 𝑄 = 1, 𝑄 = 0 𝑆=1, 𝑅=0 Set Mode Toggles.
• If 𝑄 = 0, 𝑄 = 1 𝑆=0, 𝑅=1 Reset Mode Toggles.
5
Propagation Delay
• Propagation Delay is the average transition delay time for the signal to propagate from input to
output when the binary changes in value.
• The signal that travel through a series of gates , the sum of propagation delays through the gates is
the total propagation delay of the circuit.
6
Race Around Condition Revisited
• Truth table of JK flip flop was formed with
the assumptions that inputs do not change
during clock pulse.
• But this condition is not true because of
feedback connections.
• Due to the feedback connection there is
uncontrolled toggling at the output.
Let 𝜏 = Propagation Delay time
T p = Clock Pulse Duration
Contd.
7
Race Around Condition Revisited
• For T p> N𝜏 this Racing continues. (N is natural number)
• Flip Flops keep complementing itself for every 2𝜏.
(Assumed)
Flow of Signals in Race Around Condition(J=1, K=1)
8
Solutions of Racing
1. Clock Pulse Duration≤ Propagation Delay of NAND gates (not feasible )
2. Edge triggered Flip flop
3. Master-Slave JK Flip flop
9
Master Slave JK Flip Flop
• Master Slave JK flip flop has two cascaded SR flip flops with complemented clocks.
• Outputs of second SR flip flop fed back to the steering gates of first SR flip flop.
10
Master Slave JK Flip Flop Operation
• Assumed the output of this Master flip flop latch is 1 and 0.
• When Clock input is ‘0’ output of the inverter is ‘1’, slave latch is then enabled and its output ’Q’
is equal to the master latch output.
1
1
0 1
0
1
1 0
1
1
1
0
1
?
?
11
Master Slave JK Flip Flop Operation
• When clock is ‘1’, master is enabled whose values, input value of master’s SR latch controls the
value stored in master.
• Any change in external inputs (J,K) can change the output of master but can not change the
slave output because it is getting inverted clock that is ‘0’.
1
1
0
1
12
Master Slave JK Flip Flop Operation
• When the clock input returns to zero, the master is disabled, at the same time slave is enabled
and the current value of master is transferred to the output of flipflop
1
1
13
Timing Diagram of MS JK flip flop
CLK
Master FF
Output
MS JK Flip Flop
Output
14
Conclusion
We surmised that Race Around Condition in JK Flip Flop can be
eliminated in following ways:
• If the clock on or high time is less than the propagation delay of
the flip flop then racing can be avoided. This is done by using edge
triggering rather than level triggering.
• If the flip flop is made to toggle over one clock period then racing
around condition can be eliminated. This is done by using Master-
Slave JK flip-flop.
15
REFRENCES
• D. A. Godse A. P. Godse, ”Logic Design”
• Morris Mano, ’’Digital Design”
• William H. Gothman,”Digital Electronics : An Introduction To Theory
And Practice”
• A. Anand Kumar, ”Fundamentals of Digital Circuits”
16
Thank You!
17

Mais conteúdo relacionado

Mais procurados

Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
Lee Diaz
 

Mais procurados (20)

D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Counters
CountersCounters
Counters
 
Flipflop
FlipflopFlipflop
Flipflop
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Ring counter
Ring counterRing counter
Ring counter
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
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 circuits
sequential circuitssequential circuits
sequential circuits
 
Flip Flop
Flip FlopFlip Flop
Flip Flop
 
Counters
CountersCounters
Counters
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 

Semelhante a Race around and master slave flip flop

f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdff576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
ssuserd7ef0c
 

Semelhante a Race around and master slave flip flop (20)

Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOPMASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
 
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdff576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Master slave jk flip flop.pdf
Master slave jk flip flop.pdfMaster slave jk flip flop.pdf
Master slave jk flip flop.pdf
 
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
 
SEQUENTIAL CIRCUITS [Flip-flops and Latches]
SEQUENTIAL CIRCUITS [Flip-flops and Latches]SEQUENTIAL CIRCUITS [Flip-flops and Latches]
SEQUENTIAL CIRCUITS [Flip-flops and Latches]
 
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
 
Flip flops
Flip flopsFlip flops
Flip flops
 
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-FlopsFYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
 
Sequential cmos logic circuits
Sequential cmos logic circuitsSequential cmos logic circuits
Sequential cmos logic circuits
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
Flip flop
Flip flopFlip flop
Flip flop
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 

Último

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Último (20)

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
 
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
 
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
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
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...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
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
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 

Race around and master slave flip flop

  • 1. DR. B. R. AMBEDKAR NATIONAL INSTITUTE OF TECHNOLOGY JALANDHAR TOPIC: Race around and Master Slave Flip Flop SUBMITTED BY: Shubham Singh 1
  • 2. What is Race Around Condition? • It is the phenomenon which occurs in level triggered JK flip flop when there is 1 at both of the input terminals. • Race around means continuous toggling. • If the width of clock pulse is too long compared to the propagation delay of gate , the state of flip flop will keep on changing from 0 to 1, 1 to 0, 0 to 1 and so on and at the end of the clock pulse its state will be uncertain. 2
  • 3. SR NAND Latch SR NAND Latch NAND Gate 3
  • 4. 4 T JK FLIP FLOP • The JK Flip Flop is the most widely used flip flop. It is considered to be a universal flip-flop circuit. The sequential operation of the JK Flip Flop is the same as for the RS flip-flop with the same SET and RESET input. • The difference is that the JK Flip Flop does not have invalid states of the RS Latch (when S and R are both 1). • The S and R inputs of the RS bistable have been replaced by the two inputs called the J and K input respectively. • Here J = S and K = R. The two-input AND gates of the RS flip-flop is replaced by the two 3 inputs NAND gates with the third input of each gate connected to the outputs at Q and Ǭ. This cross- coupling of the RS Flip-Flop is used to produce toggle action. As the two inputs are interlocked. • If the circuit is in the “SET” condition, the J input is inhibited by the status 0 of Q through the lower NAND gate. Similarly, the input K is inhibited by 0 status of Q through the upper NAND gate in the “RESET” condition . When both J and K are at logic “1”, the JK Flip Flop toggle. The circuit diagram for JK Flip Flop is shown above
  • 5. JK Flip Flop Truth Table • For CLK=1(Flip Flop is Enabled) • For J=0, K=0 𝑆=1, 𝑅=1 Latch Retains Values. • For J=0, K=1 • if 𝑄 = 1, 𝑄 = 0 𝑆=1, 𝑅=0 Latch Resets. • If 𝑄 = 0, 𝑄 = 1 𝑆=1, 𝑅=1 Latch Retains Reset Mode. • For J=1, K=0 • If 𝑄 = 1, 𝑄 = 0 𝑆=1, 𝑅=1 Latch Retains Set Mode. • If𝑄 = 0, 𝑄 = 1 𝑆=0, 𝑅=1 Latch Sets. • For J=1, K=1 • If 𝑄 = 1, 𝑄 = 0 𝑆=1, 𝑅=0 Set Mode Toggles. • If 𝑄 = 0, 𝑄 = 1 𝑆=0, 𝑅=1 Reset Mode Toggles. 5
  • 6. Propagation Delay • Propagation Delay is the average transition delay time for the signal to propagate from input to output when the binary changes in value. • The signal that travel through a series of gates , the sum of propagation delays through the gates is the total propagation delay of the circuit. 6
  • 7. Race Around Condition Revisited • Truth table of JK flip flop was formed with the assumptions that inputs do not change during clock pulse. • But this condition is not true because of feedback connections. • Due to the feedback connection there is uncontrolled toggling at the output. Let 𝜏 = Propagation Delay time T p = Clock Pulse Duration Contd. 7
  • 8. Race Around Condition Revisited • For T p> N𝜏 this Racing continues. (N is natural number) • Flip Flops keep complementing itself for every 2𝜏. (Assumed) Flow of Signals in Race Around Condition(J=1, K=1) 8
  • 9. Solutions of Racing 1. Clock Pulse Duration≤ Propagation Delay of NAND gates (not feasible ) 2. Edge triggered Flip flop 3. Master-Slave JK Flip flop 9
  • 10. Master Slave JK Flip Flop • Master Slave JK flip flop has two cascaded SR flip flops with complemented clocks. • Outputs of second SR flip flop fed back to the steering gates of first SR flip flop. 10
  • 11. Master Slave JK Flip Flop Operation • Assumed the output of this Master flip flop latch is 1 and 0. • When Clock input is ‘0’ output of the inverter is ‘1’, slave latch is then enabled and its output ’Q’ is equal to the master latch output. 1 1 0 1 0 1 1 0 1 1 1 0 1 ? ? 11
  • 12. Master Slave JK Flip Flop Operation • When clock is ‘1’, master is enabled whose values, input value of master’s SR latch controls the value stored in master. • Any change in external inputs (J,K) can change the output of master but can not change the slave output because it is getting inverted clock that is ‘0’. 1 1 0 1 12
  • 13. Master Slave JK Flip Flop Operation • When the clock input returns to zero, the master is disabled, at the same time slave is enabled and the current value of master is transferred to the output of flipflop 1 1 13
  • 14. Timing Diagram of MS JK flip flop CLK Master FF Output MS JK Flip Flop Output 14
  • 15. Conclusion We surmised that Race Around Condition in JK Flip Flop can be eliminated in following ways: • If the clock on or high time is less than the propagation delay of the flip flop then racing can be avoided. This is done by using edge triggering rather than level triggering. • If the flip flop is made to toggle over one clock period then racing around condition can be eliminated. This is done by using Master- Slave JK flip-flop. 15
  • 16. REFRENCES • D. A. Godse A. P. Godse, ”Logic Design” • Morris Mano, ’’Digital Design” • William H. Gothman,”Digital Electronics : An Introduction To Theory And Practice” • A. Anand Kumar, ”Fundamentals of Digital Circuits” 16