What is a Flip-Flop? How are they used in FPGAs?

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 180

  • @afzal5569
    @afzal5569 Рік тому +5

    Now its been 7 years u upload the video. I m doing masters in power electronic and control . Starting i don't know about FPGA. Even my teacher teach be about FPGA. I didn't understand what he said. But U are genius, and i understand what is FPGA . I watch your first video. This this is my 4th video. I m gonna watch your all video. Thanks again .... keep it up.. sir ..

  • @mikail5682
    @mikail5682 5 років тому +18

    We did these basics in cs courses, but you fill the gaps in my knowledge very nicely. Those bits of intuition you give make it a lot easier to digest

  • @GalinaMalakhova
    @GalinaMalakhova 7 років тому +8

    I love your videos man. I'm a new FPGA designer (and a mechE, so totally don't know electrical stuff) and this is really helping me to grasp the basics!

  • @ProblahDefied
    @ProblahDefied 9 років тому +69

    More videos!!! These are great. It's like FPGA for dummies.

  • @abelashenafi6291
    @abelashenafi6291 5 років тому +4

    Thank you!!! for all of your videos. I mean for all of them. I'm Glad i subscribed and thank you "youtube" for providing the platform for seeing a one in a billion tutorial like this. Thanks man I really mean it.

  • @renepromesse7410
    @renepromesse7410 3 роки тому

    I've been struggling to understand the concept of flip-flop, but now all I can say is thank you.

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

    Watched this for the second time, 6 months after the first, but now i have an FPGA dev board. light-bulb moment such a simple thing that as a traditional software programmer i never had to really worry about but this video really helps my understanding as i work on my FPGA project.

  • @samykamkar
    @samykamkar 6 років тому +34

    Thanks for your videos, they're great! I am a little worried about how much ink is getting on your shirt, though.

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

      I confuse how to save date with D when D changing with clock in H state.

  • @chathurikadilhani1951
    @chathurikadilhani1951 2 роки тому

    Ur teaching pattern is quite interesting.. And also speaking style is very pleasant. Well done thank you 🙂💐

  • @shirleyachara3809
    @shirleyachara3809 3 роки тому

    The flip flop and rising edge of the clock was so well explained, thanks 🙏

  • @nickasher7105
    @nickasher7105 8 років тому +1

    Thank you for making these videos, they are awesome and the way you explain things are awesome.

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

    very useful video. I am new to FPGA, but it is very easy to understand what you say. Thank you.

  • @josech5743
    @josech5743 7 років тому +2

    Thanks for making this videos they are great and very easy to understand even for me that Im not a native speaker

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

    These videos are great. I was able to get a really clear understanding of the flip flop after this video.

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

    it is old, but still helping people. It is really helpful.

  • @liangshi6965
    @liangshi6965 9 років тому +3

    plz add more video :) can't wait!

  • @enverkaancabuk73
    @enverkaancabuk73 3 роки тому

    Q2 is logic low because of propogation delay at second rising edge.Q does not change at the same time as the clock. It has a small delay each time.

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

    Clear and helpful. Thank you very much!

  • @huanlinxberkeley
    @huanlinxberkeley 2 роки тому

    Very good explanation. Still relevant today!

  • @MrPissefanten
    @MrPissefanten 9 років тому +1

    Great Videos! I am stil hoping for more in the future!

  • @SameBasicRiff
    @SameBasicRiff 9 років тому

    one way to think of it too, is the "gears" or clock are like tidal waves, coming in and out, with the polar harmony generating the "life" of the circuit. (this helps if your familiar with the concept that the early earth had a moon closer to it causing 100 mile tides, potentially creating life, just like the "life" of the circuit is created by this back and forth, on and off, clock motion. but anyways....... lol)

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

    I have not many time to learn, but I will try understand it. I love electronics :-)

  • @taekwondotime
    @taekwondotime 6 років тому +4

    Great video. Hard to find information on this topic with UA-cam. A few comments though:
    A *register* is defined as a group of flip flops. Therefore, a 4-bit register is just a group of four flip flops, each one holding 1 bit of data.
    LUT? You mean a *truth table* . It's called a truth table whenever you're dealing with combinational circuits (the ones without storage elements). The moment you get into sequential circuits (circuits that have flip flops) it becomes a *state table* . I would replace "LUT" with "state table" because the accompanying diagram is called a state diagram, and then ultimately you produce the circuit diagram.
    A *state table* fully describes the operation of the sequential circuit. A state table contains a column for the present state, the inputs, the next state, and any outputs. But when you really get right down to it, the state table is just a truth table that includes present state as one of the inputs.
    It's also important to mention what a flip flop is. *A flip flop is storage for 1-bit of data, which can be either 0 or 1* .
    There are three types of flip flops commonly taught in digital logic courses:
    - D flip flop
    - T flip flop
    - JK flip flop
    *The D flip flop (data) is by far the easiest to understand:*
    - If you input 0, it stores 0 and outputs 0.
    - If you input 1, it stores 1 and outputs 1.
    *The T flip flop (toggle) operates as follows:*
    - If you input 0, the current state is maintained and outputted. (0 stays 0, 1 stays 1)
    - If you input 1, the current state toggles to its opposite and is outputted. (0 becomes 1, 1 becomes 0.)
    *The JK flip flop is the most advanced and most complex* . *It has TWO inputs (J and K) plus the clock:*
    - If J = 0 and K = 0: Current state is maintained and outputted. (0 stays 0, 1 stays 1)
    - If J = 1 and K = 0: Current state is set to 1 and outputted.
    - If J = 0 and K = 1: Current state is reset to 0 and outputted.
    - If J = 1 and K = 1: The current state toggles. (0 becomes 1, 1 becomes 0).
    Therefore, the JK flip flop can perform the operations of both the D flip flop and the T flip flop in one.
    Why use different flip flops? Well, sometimes the logic is a lot more complex to implement with one type of flip flop than it is with another. That can greatly affect the speed of the circuit.

  • @dr.muhideenhasan2757
    @dr.muhideenhasan2757 9 років тому +2

    That's great. Thanks for easy way in explanation .

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

    Thanks Russel, very well explained.

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

    Excellent introduction

  • @killer2point057
    @killer2point057 2 роки тому

    Great info! Thank you

  • @samarkhan3154
    @samarkhan3154 7 років тому +2

    thanks mate you saved my test

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

    Thank you so much!
    You save my life

  • @mrechbreger
    @mrechbreger 7 років тому +2

    Thank you for this video!

  • @Ian-Threaded
    @Ian-Threaded 8 років тому +3

    More understandable than my penn state teacher. Thank you!

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

      Ian F Penn State here too. What year do you take this class?

  • @Juanchofizz
    @Juanchofizz 8 років тому +1

    Excellent man, thanks a lot!

  • @jamesmasonic
    @jamesmasonic 8 років тому +1

    thank you man, wish u make more tutorials

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

    Well explained my man.

  • @Nodal488
    @Nodal488 6 місяців тому

    Best explanation ive seen so far :p

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

    Las esplicaciones son faciles de entender. seria muy conveniente poner una numeracion que indique una secuencia de videos de inicio al mas reciente.

  • @mdrezaulkarim47
    @mdrezaulkarim47 2 роки тому

    clear explanation

  • @SameBasicRiff
    @SameBasicRiff 9 років тому

    thanks for the videos! and thank you for your website too! i dont really understand why so many people work so hard to put out good work like this for everyone to use, when so many people dont even use it. they want better jobs and a better life yet these free resources go ....... anyway ..... //end of rant. thank you!

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

    Digital Techniques ... How do you write in software?

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

    Good explaination.

  • @asmatauqir7652
    @asmatauqir7652 7 років тому +2

    Thanks, It was so good

  • @viswanathanramakrishnan7613
    @viswanathanramakrishnan7613 3 роки тому

    Superb information. Will you guide to use flip flop's in making a model train signalling system involving only 2 leds (red and green) per flip flop cascaded so that each flip flop triggers the next one so that green becomes red once the train passes the sensor say magnetic reed switch on the track.

  • @Ed-et5gj
    @Ed-et5gj 4 роки тому

    Great work, keep it up!

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

    thanks man, very good explanation . keep up

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

    The process control industry mostly uses SR-FlipFlops. No clocks just states!

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

      For ASICs you mean?

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

    You Are Amazing !!

  • @DungNguyen-jx4lr
    @DungNguyen-jx4lr 3 роки тому

    You are goodlooking :))

  • @DevaDeva-oq3kv
    @DevaDeva-oq3kv 4 роки тому

    U are doing a great job!

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

    if you look closely you'll actually see that he is not standing but is rather sitting on something

  • @duality4y
    @duality4y 2 роки тому

    what you describe is a latch not a flipflop though it's confusing because often the words are interchanged

  • @justCoolest
    @justCoolest 2 роки тому

    So its SISO type registor the 3rd example

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

    You are great! Thank you.

  • @toninogalit
    @toninogalit 9 років тому +1

    thanx
    one question please!
    In the single and simple example of a Dflip-flop
    if the input data D is changing exactly with a rising cycle clock CLK, does the output Q of the DFF will perceive it or not?

    • @jean-baptistelasselle4562
      @jean-baptistelasselle4562 9 років тому

      Tony Sznabel
      Hi, I'm not the author of those videos, but here's my guess: Just as in
      the author explains in the case of two flip flop, "In the real physical
      world, it takes some time for the signal to rise", and in that same
      example Q2 is the data input of the second flip flop. My guess is, the
      time duration of that "some time to rise" is the sum of two times: T1,
      the time for the signal to propagate from Q1 to D2, like it's a cord.
      then, T2 is the necessary time for the signal to rise from low to high
      level. Why, in the real world, is there a
      necessary time for the signal to rise from a level to another level?
      Because this signal is never actually "square", it is an electrical
      current whose value is continuously changing, and here it is contiously
      rising from one value, to another. To convinced yourself, just say to
      yourself that the current value at a given instant CANNOT have more than
      ONE value, so the curve at the rise CANNOT be vertical. drawing it
      vertical is an approximation, just meaning the slope's gradient of tangent
      is very high, "almost vertical in the neighborhood". Very, very sloppy.
      In other words, current's value rises so fast, its curve looks like
      vertical at that point. Alright, so in the example with 2 flip flops,
      author says that when clock rise and Q1 rise occur at the same instant,
      T1 + T2 is big enough so that Q2 stays low, and he adds, "this is dued
      to what's called propagation time". So your question is "what happens to
      Q2 if T1 = 0?", isn't it? What I'm doing here, is shifting your exact
      question as closely as possible to the author's vocabulary, so that I
      can use the exact same reasoning as a mechanism to come to a conclusion,
      based on what the authored gives. Okay, so here 's my answer: the
      author, again, says that if Q2 stays low, it is dued to something
      reaaaally important called propagation time. Then my guess is: the
      answer to your question is that what will happen is kind of random, un
      predictible, and most importantly, IT DOESN'T matter, we don't care,
      what we care about (to understand FGPA's) is what happens when there's a
      T1 : T1 is not zero. Futhermore, T1 is considered non zero when it's
      big enough so that the system behaves with that VERY IMPORTANT thing that
      is the delay between Q1 and Q2: meaning the system is designed to
      behave WITH such a delay. Designers of FGPA's WANT that delay to be part
      of the behaviour of the system they designed. there's a treshold where
      that delay appears, what is the exact treshold we don't care, we'll
      eventually just tune it to some other system's tuned value, so that we
      get the desired collaboration between systems. To end with this, the
      value we are going to tune is a physical value measured for the
      electrical current, that one value that determines the slope of the
      rise of the (curve of the) current's voltage from low level to high
      level.
      Thank you very much for your question, it had think the whole thing
      over! And thank you to the author of the video for making and
      broadcasting them!
      Jean-B.

    • @Nandland
      @Nandland  8 років тому +1

      Probably not... There's a thing called setup time that is required. Meaning the input D needs to be stable for some amount of time before the rising clock edge comes along. This is a subject for a future video. I already wrote about it on www.nandland.com. Check the FPGA-101 page.

  • @dmitr8194
    @dmitr8194 2 роки тому

    I understood Rising edge and Falling edge a little. Never Dont understand diagrams data exchange

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

    How would D change to high before the rising edge? Would the data not be in sync with the clock?

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

      The output of the flip-flop (Q is output) changes high or low depending on the D input. The Flip-Flop "looks" at the input when the rising edge of the clock comes along. This happens to all flip-flops in the system at the same time. Hope that's helpful.

  • @edwardbrito8802
    @edwardbrito8802 5 місяців тому

    Dude you’re awesome

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

    can u please put some commercial level work what designers doing at office from scratch

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

    Big thanks.

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

    Thank you! You are awesome

  • @xinxingwang7902
    @xinxingwang7902 9 років тому

    One question though: Q2 is one cycle shifted w.r.t. Q1, but Q1 is not exactly once cycle shifted to D, right? It is actually like 3/4 cycle shifted?

    • @damianbachmat1264
      @damianbachmat1264 9 років тому

      Xinxing Wang Right, but D does not change along with the clock rising edge. In this example we assumed that D can change at any time.

    • @Nandland
      @Nandland  8 років тому +1

      There are some real world delays associated with changing flip flops, yes. Look up setup time, hold time, and propagation delay. But this waveform is exactly what you'll see in a simulation. Simulations are perfect case (no delays).

  • @dhruvo100
    @dhruvo100 9 років тому

    so Q behaves like the output of an AND gate??

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

    thanks for the video

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

    Rewatching these videos is critically important.

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

    perfect video thx bro

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

    why does Q always start low?

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

      It usually does. You can set it to non zero value if you need to.

  • @cloud_1992
    @cloud_1992 9 років тому

    More Videos please.

  • @lakshmikanthk442
    @lakshmikanthk442 3 роки тому

    Make a playlist

  • @arthur.passos
    @arthur.passos 5 років тому

    Very good :)

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

    Great video, thanks for the help!

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

    What is a hardware nerd's favorite energy drink?
    Field Programmable Gatorade.

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

    Without flip flops you wouldn't have almost any electronic device in the world.

  • @noureddinshehab8919
    @noureddinshehab8919 8 років тому

    it is nice thanks

  • @user-lw5vg1zd6l
    @user-lw5vg1zd6l 6 років тому +1

    Thank you handsome

  • @ЕаАс-ч4з
    @ЕаАс-ч4з 4 роки тому

    Data between two clock edge are LOST !

  • @Nylon-xj9ml
    @Nylon-xj9ml 3 роки тому

    a flip flop is when u flip me on that DEE

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

    So a flip-flop is similar to RAM?

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

      A flip-flop is a type of RAM. In an FPGA RAM is most often created with either Flip-Flops or Block RAMs. I made a video on what a Block RAM is if you're unfamiliar with those. In general, flip flops are for small amounts of storage, Block RAMs are for storing large amounts of data. ua-cam.com/video/fqUuvwl4QJA/v-deo.html

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

      ok awesome, just glad I didn't have some glaring mis-conception.
      Thanks, I'll take a look now.

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

    how to get job ? i made 32 bit alu

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

    First before flip flop I would like to know what is a FPGA

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

      K. ua-cam.com/video/CfmlsDW3Z4c/v-deo.html

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

    Actually the clock in a microproccessor does go to every Flip-Flop, otherwise there wouldnt be any flipping or flopping ;)

  • @Jkauppa
    @Jkauppa 2 роки тому

    an active state component, flip-flop, is insanity, should be pure state object, non-powered

    • @Jkauppa
      @Jkauppa 2 роки тому

      sample the contents, not transmit them all the time, like your mouth is repeating all the time

    • @Jkauppa
      @Jkauppa 2 роки тому

      pulse clock, wave, not repeating clock

  • @narsinghmahilang553
    @narsinghmahilang553 3 роки тому

    Please hindi dub this vedio

  • @shoravsuriyal5954
    @shoravsuriyal5954 8 років тому +1

    now he got the eraser after seeing the previous comments

  • @jjosephineanitha8538
    @jjosephineanitha8538 2 роки тому

    Please teach some discipline for your sis, Sir.

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

    YOU FORGOT THE CLOCK . . . Do you assume we can pull it out of the air? Your video is only conceptual.

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

      shut up, meg

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

      @@Gunth0r Why? Are you his sister? What's this have to do with you PoppyPants?

  • @splitpersonalty
    @splitpersonalty 8 місяців тому +3

    You explained this the same way a college buddy would. You're really good at this.

  • @xinxingwang7902
    @xinxingwang7902 9 років тому +8

    Good job dude, nice explained and easy to follow. Very interesting to me since I am new to FPGA. Looking forward to your next video!

  • @songxiaojia4135
    @songxiaojia4135 9 років тому +5

    Your talking way is very comfortable to me. Update more videos.
    I like FPGA.

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

    i'm sorry but i'm at 23:05 and you still haven't referenced how flip flops are used in FPGAs? if we're learning about FPGA's then the chances are that most of us have covered what a flip flop is already.. Other people seem to like the video though so thanks anyways

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

    Thank you SO much! I have been learning fpga's and verilog for a long time now at CU Denver and am going to watch your whole series bc I just seem to be struggling so much. You are so much more helpful than my professor and I really want to learn!

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

    Your tutorials has been great! You provide layman explanation on niche technical terms, it is newbie friendly! Thanks for your effort.

  • @Dougie-
    @Dougie- 9 років тому +3

    Easy to follow, good explanations. Subscribed. Please more videos :)

  • @ethiopiaandenet896
    @ethiopiaandenet896 7 років тому +2

    Thanks for the video , please continue your good work , believe me they are very helpful .

  • @oliviervalery1780
    @oliviervalery1780 7 років тому +2

    It is really interesting. Thank you

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

    thank for your videos they are really helpful .. just i want to say that i use NE555 like a clock

  • @adriandeveraaa
    @adriandeveraaa 8 років тому +2

    Thanks this really cleared up a lot of stuff.

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

    I’m struggling to understand what your video has to do with FPGA’s. It’s all about a basic explanation od one of the flip-flops…

  • @BryanChance
    @BryanChance 2 роки тому

    If there's a propagation delay in Q1, why not on D1? I can understand the second flip-flop being delay 1 clock cycle. But that's not the same as the sampling propagation delay is it?

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

    Why is Tom Hardy teaching me about flip flops?

  • @akashmusiclove3554
    @akashmusiclove3554 9 років тому +7

    Sir,please post more videos. Your explanations are really easy to understand. Helped alot. Thank you.

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

      Seriously? Kitna Padhai karega be? :/ . should i even be surprised to see you here... Jokes apart, thanks for the brilliant explanation man

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

    Great Tutorials Sir Please do more. Thanks!!