Latches and Flip-Flops 4 - The Clocked D Latch

Поделиться
HTML-код
  • Опубликовано: 13 авг 2016
  • This is the fourth in a series of videos about latches and flip-flops. These bi-stable combinations of logic gates form the basis of computer memory, counters, shift registers, and more. In particular, this video covers the clocked D latch, that is, a D latch controlled by a computer clock signal which is important for synchronisation. It shows how an edge detection device can be built from a NOT gate and an AND gate in order to isolate the rising edge of the clock cycle. It then shows how this can be used to turn a level triggered D latch into an edge triggered D latch - the so called pulse latch. The asynchronous inputs PRE and CLR in a clocked D latch are also mentioned. The video that follows this one builds upon the principles covered and goes on to describe the master slave D type flip flop.

Комментарии • 118

  • @lightbulb48
    @lightbulb48 6 лет назад +145

    Teacher takes 3 weeks to explain this...i don't understand
    I spent an hour watching your series and i know every little detail. Thanks a bunch!

    • @ComputerScienceLessons
      @ComputerScienceLessons  6 лет назад +54

      I love it when the light bulbs switch on :)

    • @lightbulb48
      @lightbulb48 6 лет назад +12

      that...made my day :D

    • @wg3771
      @wg3771 4 года назад +1

      ✊👨🏽‍💻🤭🙋‍♂️me too

  • @aaa14u
    @aaa14u 5 лет назад +29

    tears rolling through my eyes because you explained it so well.

  • @narayansuthar5190
    @narayansuthar5190 7 лет назад +47

    This video deserve way more views than It has currently.
    Please keep it up

  • @worldclassmediocre9275
    @worldclassmediocre9275 3 года назад +35

    The likes to dislikes ratio says is all. Your 5 videos on latches and flip flops are just perfect. The time you take to explain it all, the detail, everything. You are saving my grades, thank you!

    • @ComputerScienceLessons
      @ComputerScienceLessons  3 года назад +7

      Thanks for taking the time to comment. It keeps me at it. :)KD

    • @moradelshorbagy4173
      @moradelshorbagy4173 6 месяцев назад

      Ahh, how I miss the good ol' days when the dislike number was visible to the average viewer.

  • @narayansuthar5190
    @narayansuthar5190 7 лет назад +5

    Best on flip flop I found on RUclips.After watching series on flip flop I understand what I was looking to understand for last two year.

  • @jerryocrow1
    @jerryocrow1 3 года назад +3

    This (you) are the third teacher to me on this subject. You hit it out of the park. Especially with the addition of the timing lines after explanations.

  • @kptn1095
    @kptn1095 5 лет назад +1

    Such a great series on latches and flip-flops. Thank you very much for the content!

  • @jiachengdong6093
    @jiachengdong6093 6 лет назад +7

    This is amazing... I never realized that edge detection naturally arises from static hazard! You are such a good teacher!

  • @boonk4525
    @boonk4525 5 лет назад +2

    One of the series of videos giving clear and simple explanation about latches and flip-flops! Great job!

  • @ThejusRao
    @ThejusRao 5 лет назад +1

    I literally logged in only to like and comment on this video. This latches and Flip-Flops series is probably some of the best educational stuff on here! You need more recognition! Keep up the good work!

  • @amazingbait26
    @amazingbait26 6 лет назад +10

    Just a heads up these are still being watched and appreciated--shared this with my study group and saved us from the finals. Thanks!

    • @ComputerScienceLessons
      @ComputerScienceLessons  6 лет назад +4

      That's great to hear. Tnx. :)

    • @michaelfranciotti3900
      @michaelfranciotti3900 3 года назад +3

      Still being watched and appreciated in 2021! I however, am just a layman who likes to understand how things work.

  • @karolakkolo123
    @karolakkolo123 6 лет назад

    Thanks! Your videos about latches and flip flops are the only I could finally understand!

  • @xy5572
    @xy5572 7 лет назад +17

    you saved me from the test!! There are also videos on my school's website, I swear I have watched 5 times but I still don't understand, and you did it. thanks a lot!!

  • @laurajane8440
    @laurajane8440 5 лет назад +3

    Amazing! Week 10 of 13 in Aus, and this makes SO much more sense than our lecturers! 👏

  • @spacewalker3519
    @spacewalker3519 4 года назад +1

    This playlist and the way it is explained is greatly appreciated. I am a green tech, and this really helps to
    reaffirm my understanding of gates/latches/flip flops/counters/shift registers....ect... this is helping to
    build the foundation that I need move ahead. Thank you so much.

  • @hypergolic8468
    @hypergolic8468 11 месяцев назад

    It's just like watching the Open University courses back in the 80's. Just focused on the facts and the knowledge. Just outstanding.

  • @AbhayChandraYouTube
    @AbhayChandraYouTube 7 лет назад +1

    You, sir, are a lifesaver! Subscribed!

  • @JS19190
    @JS19190 5 лет назад +10

    Incredible, I just started my B.Sc. and your videos are beyond just helpful! Thank you so much for all the great explanations! :)

  • @bradleymay5350
    @bradleymay5350 5 лет назад +2

    Hah gosh bless you, sir. That explanation on "triggered D latches" saved me. Specifically, I've been wracking my brain about why "shift registers" don't race all the way to the end while the clock is on and no one explained why. That small comment about "edge detection" finally explained that seemingly irreconcilable error. I'm so glad that you brought it up

  • @nickriker8196
    @nickriker8196 6 лет назад +1

    Crazy good video series. More please.

  • @omarnawaz7362
    @omarnawaz7362 4 года назад +1

    I normally never comment but had to make an exception for this set of videos. Very concise explanations. The timing diagrams were very helpful! Thank you!

  • @harshsharma03
    @harshsharma03 2 года назад +2

    I'm a first year CS student and man these explanation videos and your channel help me so so so damn much. Can't put it in words. I specifically look up if you've made videos whenever I get stuck on a certain topic or want to learn one. You're godsend. Power and health to you.

  • @JohnVance
    @JohnVance Год назад

    I've been building Ben Eater's 8-bit computer, and while his videos are excellent, your timing diagrams with the moving yellow bar are really helping things click for me. Thanks so much for including these!

    • @ComputerScienceLessons
      @ComputerScienceLessons  Год назад +2

      Delighted to help. I built an 8 bit computer too and it's all over my wall :)KD

  • @burry218
    @burry218 5 лет назад

    Excellent series of videos!!!

  • @craigkilkenny7143
    @craigkilkenny7143 3 года назад +2

    Brilliant little series of videos, thanks for sharing

  • @JossinJax
    @JossinJax 4 года назад +2

    This series is saving my life right now.

  • @marcodesimone8285
    @marcodesimone8285 6 лет назад +3

    Your videos are incredible! Thank you so much!

  • @rabeyabasri7070
    @rabeyabasri7070 4 года назад +2

    best explanation i have ever got!!

  • @ruyangguo6495
    @ruyangguo6495 7 лет назад

    Such a nice video! Thanks a LOT!

  • @hintaichan3658
    @hintaichan3658 5 лет назад +1

    This explains in a very simple way to understand!!! Save me from lectures! Keep it up. ~Engineering Student

  • @lucassimpsonjr3787
    @lucassimpsonjr3787 Год назад +1

    Thank you so much for your Videos! They making my hardware class way simpler for my Comp sci degree!

  • @4BohrKid
    @4BohrKid 3 года назад +2

    bruh these videos are so goooood

  • @hosseinreza1498
    @hosseinreza1498 6 лет назад

    Your videos are really helpful, thanks a lot!

  • @razer2flame
    @razer2flame 5 лет назад +1

    very epic video my dude understood everything

  • @captaincosmo6157
    @captaincosmo6157 5 лет назад +13

    Is there a patreon we can use to help aid these videos?

  • @kommsk
    @kommsk 3 года назад +1

    i got it now.....my teacher never said a D FF is a clocked latch, that was the reason to why i was confused...Thanks a lot

    • @ComputerScienceLessons
      @ComputerScienceLessons  3 года назад

      Sadly, a number of text books confuse the D type flip flip with other types of latch. :)KD

  • @bengitter7117
    @bengitter7117 4 года назад +2

    The only comment I have ever made on a youtube video, You sir, are a saint. Sad universities only hire big worded, small-brained academics.

  • @ikeikeikeikeikeikeikeike
    @ikeikeikeikeikeikeikeike 5 лет назад

    You are amazing!

  • @johnsonkibocha
    @johnsonkibocha 3 года назад +2

    Great explanation

  • @matthewjohnson5646
    @matthewjohnson5646 3 года назад +1

    This is clean as hell.

  • @mr.e9778
    @mr.e9778 4 года назад

    i dont curse but uuuhhm....... yea, kudos to you sir. THIS IS BRILLIANTLY FUCKING WELL CONSTRUCTED, STRAIGHT TO THE POINT, NICELY DONE EXPLANITION OF THIS STUFF. We need teachers like you

  • @alexandrehurst1144
    @alexandrehurst1144 Год назад +2

    I absolutely love this video and the rest of the videos you've made on boolean algebgra, karnaugh maps, and cryptocurrency. (though I haven't studied that yet)
    Though I do have a question. If preset and clear are both 0, doesn't this create a race condition?

    • @ComputerScienceLessons
      @ComputerScienceLessons  Год назад

      Yes but only briefly. Inconsistencies in the manufacturing mean that soon enough a latch will settle into a stable state.

  • @e-k4110
    @e-k4110 5 лет назад

    thank u a lot kevin

  • @Simply--Science
    @Simply--Science 3 года назад

    quality teaching!

  • @umbra7859
    @umbra7859 4 года назад

    Thank you for the video! Helps me so much with my classes

  • @aggoor1
    @aggoor1 7 лет назад

    Thank you

  • @jbx907
    @jbx907 6 лет назад +1

    i think this is used for sequence combination, where the inputs need to be sequentially inputed, ihope yuu can do a video on making sequence combination circuit which can be used for locking

  • @victormaxwellpeters9771
    @victormaxwellpeters9771 2 года назад

    Hi sir , I am from india and You have no idea how beautifully you have dissected the whole topic and presented in such a meaningfull way. Many other videos are so horribly wrong were they are giving clock pulse directly to enable pin of series shift register and I was soo confused on the durations of individual clock pulse . But still one questions is still prevailing in my mind that what causes that delay or data persistence in not gate out put inspite of the fact that input signal is been changed???

  • @panavsheth5460
    @panavsheth5460 3 года назад +1

    saving my life bro

  • @spaceghost8327
    @spaceghost8327 Год назад +1

    thank you very much!

  • @RK-fr4qf
    @RK-fr4qf 3 месяца назад +1

    Splendid

  • @nantes9807
    @nantes9807 Год назад

    I love you my lord.

  • @rinzan
    @rinzan 2 года назад +1

    Respect!

  • @worldclassmediocre9275
    @worldclassmediocre9275 3 года назад

    What happens if the edge detector goes back to zero before the latch has managed to change states? Aka what happens when the time interval that the edge detector allows current to flow through is less than the propagation delay of the latch? Would that mean that the state of the latch will not change? (I have watched the 5th episode of the series)

  • @m_t_t_
    @m_t_t_ 9 месяцев назад

    what happens if you don't want to change the value in the D latch every clock cycle? What if you only wanted to change it on a certain clock cycle?

  • @abbbby100
    @abbbby100 5 лет назад +3

    thanks daddy. this rlyylyly helped ima pass my class (-:::::

  • @nurannahadiislam7940
    @nurannahadiislam7940 8 месяцев назад

    I have a question if you could kindly answer it would be very helpful.
    What happens if PRE and CLR are both set to 0 ?

  • @ComputerScienceLessons
    @ComputerScienceLessons  7 лет назад +20

    :)

    • @jsnam8139
      @jsnam8139 4 года назад

      You sir are way better than my professor! Thank you!!

  • @ouahoudizakaria1668
    @ouahoudizakaria1668 4 года назад +1

    thanks

  • @ashwinnaidu887
    @ashwinnaidu887 4 года назад +1

    thanks a lot!!!!!!

  • @avineshakumar5881
    @avineshakumar5881 2 года назад +1

    legend

  • @abaundwal
    @abaundwal 4 года назад

    9:30
    I can understand that :
    1. Making clear = 0 means that one of the inputs of the bottom right NAND gate is 0
    2. So that gate will output 1
    3. So Q' = 1
    Which should mean that Q = 0, but how can ee see it. I do not see how making Q' = 1 would make Q = 1.
    Maybe it has something to do with the clock at that time? :(

  • @inafridge8573
    @inafridge8573 4 года назад

    Is there any functional difference between this clocked D latch and a D flip flop?

  • @altheacastro5543
    @altheacastro5543 5 лет назад

    why not make E 1 all the time sir,,, thanks a lot

  • @amjadiqbal5720
    @amjadiqbal5720 4 года назад

    Second High output Q is a bit wrongly displayed at 2:40. It may perplex the viewers.

    • @ComputerScienceLessons
      @ComputerScienceLessons  4 года назад

      D is high, clock is high, Q is high. I believe it's correct.

    • @amjadiqbal5720
      @amjadiqbal5720 4 года назад

      Yes, It is right that D is High, E (clock) is High, but these are High in the pattern of 100 whereas Q is High in 111? Please elaborate if I miss anything. Regards.

    • @amjadiqbal5720
      @amjadiqbal5720 4 года назад

      That means D & Clock is High only once , then Low Low: whereas Q is High High High.

  • @elgs1980
    @elgs1980 7 лет назад

    For the PRE and CLR, how can the NAND have 3 inputs?

    • @ComputerScienceLessons
      @ComputerScienceLessons  7 лет назад +2

      Hi Elgs Chen. A NAND gate can have 3 inputs. You can even have a 4 input NAND function (which is actually several 2 input NAND gates combined together). Take a look at www.electronics-tutorials.ws/logic/logic_5.html The important thing about a NAND gate is that only when ALL inputs are high the output will be low.

    • @elgs1980
      @elgs1980 7 лет назад

      Thank you Kevin! I cannot express how much I appreciate your effort making these concepts so clear and easy to understand. I watched a lot of other videos and I had never really understood what they were talking about.

    • @muntahaislam1332
      @muntahaislam1332 5 лет назад

      @@elgs1980 Kevin? Hummmmm.

  • @sethother8012
    @sethother8012 4 года назад

    Waaaaaaait a minute. At 4:48 when a high signal is coming out of the not gate, and then takes a high input, “there is a brief period where both input and the output of the Not gate are high, and therefore the output of the AND gate is high.” But if there is some kind of propogation delay in which both the input and output of the NOT. gate are high, wouldn’t this be cancelled out by the propogation delay for the OTHER input of the AND gate’s signal to reach the output? If the NOT gate has a delay, that briefly keeps both input and output high, why doesn’t the AND gate’s input have a corresponding delay that keeps it’s output low?

    • @sethother8012
      @sethother8012 4 года назад

      Answering my own question: By putting more NOT gates in series. By creating a big enough odd number of NOT gates in series, their cumulative propogation delay relative to the other straight input signal of the AND gate, would create a pulse width from the clock long enough to measure, but at some point there will a point, where a single NOT gate would not create a propogation delay long enough to not be cancelled out by the propagation delay of the AND gates’s input. Two NOT gates’ delay can be measured; one NOT gate, not so much. That’s my guess anyways.

    • @ComputerScienceLessons
      @ComputerScienceLessons  4 года назад

      Take a look at the master slave D-type flip flop

  • @hansktube
    @hansktube 5 лет назад

    this its not the reduced and more stable version of a d flipflop

  • @sethother8012
    @sethother8012 4 года назад

    I heard a puppy in the background at 1:30 a little after he says the word “clock

  • @charbelnakad7668
    @charbelnakad7668 Год назад

    😘😘😘😘😘😘😘😘😘😘😘😘😘

  • @Jnbsksbsgcvn
    @Jnbsksbsgcvn 4 года назад +1

    This is ridiculous... I spend 14 grand for college and this youtube video is 100x better, and its free...