Latches and Flip-Flops 4 - The Clocked D Latch

Поділитися
Вставка
  • Опубліковано 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 років тому +143

    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 років тому +28

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

  • @worldclassmediocre9275
    @worldclassmediocre9275 3 роки тому +34

    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 6 років тому +47

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

  • @narayansuthar5190
    @narayansuthar5190 6 років тому +5

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

  • @jerryocrow1
    @jerryocrow1 2 роки тому +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.

  • @jiachengdong6093
    @jiachengdong6093 6 років тому +7

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

  • @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!!

  • @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.

  • @boonk4525
    @boonk4525 5 років тому +2

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

  • @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

  • @kptn1095
    @kptn1095 5 років тому +1

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

  • @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! :)

  • @laurajane8440
    @laurajane8440 5 років тому +3

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

  • @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.

  • @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.

  • @karolakkolo123
    @karolakkolo123 6 років тому

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

  • @craigkilkenny7143
    @craigkilkenny7143 3 роки тому +2

    Brilliant little series of videos, thanks for sharing

  • @JossinJax
    @JossinJax 4 роки тому +2

    This series is saving my life right now.

  • @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!

  • @AbhayChandraYouTube
    @AbhayChandraYouTube 7 років тому +1

    You, sir, are a lifesaver! Subscribed!

  • @marcodesimone8285
    @marcodesimone8285 6 років тому +3

    Your videos are incredible! Thank you so much!

  • @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

  • @nickriker8196
    @nickriker8196 6 років тому +1

    Crazy good video series. More please.

  • @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.

  • @burry218
    @burry218 5 років тому

    Excellent series of videos!!!

  • @captaincosmo6157
    @captaincosmo6157 5 років тому +13

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

  • @rabeyabasri7070
    @rabeyabasri7070 4 роки тому +2

    best explanation i have ever got!!

  • @hosseinreza1498
    @hosseinreza1498 6 років тому

    Your videos are really helpful, thanks a lot!

  • @ruyangguo6495
    @ruyangguo6495 7 років тому

    Such a nice video! Thanks a LOT!

  • @lucassimpsonjr3787
    @lucassimpsonjr3787 Рік тому +1

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

  • @matthewjohnson5646
    @matthewjohnson5646 3 роки тому +1

    This is clean as hell.

  • @hintaichan3658
    @hintaichan3658 4 роки тому +1

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

  • @razer2flame
    @razer2flame 5 років тому +1

    very epic video my dude understood everything

  • @ikeikeikeikeikeikeikeike
    @ikeikeikeikeikeikeikeike 5 років тому

    You are amazing!

  • @umbra7859
    @umbra7859 4 роки тому

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

  • @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

  • @4BohrKid
    @4BohrKid 3 роки тому +2

    bruh these videos are so goooood

  • @Simply--Science
    @Simply--Science 3 роки тому

    quality teaching!

  • @johnsonkibocha
    @johnsonkibocha 3 роки тому +2

    Great explanation

  • @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.

  • @e-k4110
    @e-k4110 5 років тому

    thank u a lot kevin

  • @spaceghost8327
    @spaceghost8327 Рік тому +1

    thank you very much!

  • @aggoor1
    @aggoor1 7 років тому

    Thank you

  • @rinzan
    @rinzan 2 роки тому +1

    Respect!

  • @ComputerScienceLessons
    @ComputerScienceLessons  7 років тому +20

    :)

    • @jsnam8139
      @jsnam8139 4 роки тому

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

  • @RK-fr4qf
    @RK-fr4qf 3 місяці тому +1

    Splendid

  • @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.

  • @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

  • @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

  • @nantes9807
    @nantes9807 Рік тому

    I love you my lord.

  • @ashwinnaidu887
    @ashwinnaidu887 4 роки тому +1

    thanks a lot!!!!!!

  • @panavsheth5460
    @panavsheth5460 3 роки тому +1

    saving my life bro

  • @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)

  • @avineshakumar5881
    @avineshakumar5881 2 роки тому +1

    legend

  • @nurannahadiislam7940
    @nurannahadiislam7940 7 місяців тому

    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 ?

  • @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???

  • @ouahoudizakaria1668
    @ouahoudizakaria1668 4 роки тому +1

    thanks

  • @m_t_t_
    @m_t_t_ 8 місяців тому

    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 (-:::::

  • @inafridge8573
    @inafridge8573 4 роки тому

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

  • @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? :(

  • @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

  • @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.

  • @charbelnakad7668
    @charbelnakad7668 Рік тому

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

  • @altheacastro5543
    @altheacastro5543 5 років тому

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

  • @sethother8012
    @sethother8012 4 роки тому

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

  • @hansktube
    @hansktube 5 років тому

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

  • @Jnbsksbsgcvn
    @Jnbsksbsgcvn 4 роки тому +1

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