SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronicsEasy n Inspire L
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsVinoth Loganathan
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Modulo n counter
Modulo n counterModulo n counter
Modulo n counterManoj Guha
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsMd Sadequl Islam
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and DemultiplexersGargiKhanna1
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptSIVALAKSHMIPANNEERSE
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoderUnsa Shakir
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous countersLee Diaz
 
sequential circuits
sequential circuitssequential circuits
sequential circuitsUnsa Shakir
 
Chapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemChapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemAttaporn Ninsuwan
 

What's hot (20)

Counters
CountersCounters
Counters
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
K - Map
  K - Map    K - Map
K - Map
 
Synchronous sequential Circuits
Synchronous sequential CircuitsSynchronous sequential Circuits
Synchronous sequential Circuits
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Modulo n counter
Modulo n counterModulo n counter
Modulo n counter
 
flip flops
flip flops flip flops
flip flops
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and Demultiplexers
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Flipflop
FlipflopFlipflop
Flipflop
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
sequential circuits
sequential circuitssequential circuits
sequential circuits
 
Chapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemChapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant System
 

Similar to Race around and master slave flip flop

Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxThapar Institute
 
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 FLOPSmit Shah
 
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdff576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdf
f576923412c99d7fdcd05e60e352c89bde9c3953-1648269078926.pdfssuserd7ef0c
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptxamudhak10
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuitsganeshwalke3
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuitBrenda Debra
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slidejyothir19
 
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 1Sarah Sue Calbio
 
Master slave jk flip flop.pdf
Master slave jk flip flop.pdfMaster slave jk flip flop.pdf
Master slave jk flip flop.pdfAbdurRakib68
 
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)Sairam Adithya
 
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]SUBHA SHREE
 
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-FlopsArti Parab Academics
 
Sequential cmos logic circuits
Sequential cmos logic circuitsSequential cmos logic circuits
Sequential cmos logic circuitsSakshi Bhargava
 

Similar to 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
 
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
 
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
 

Recently uploaded

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 

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