Sunday, October 23, 2016

What is the difference between a latch and flip-flop?



            The main difference between latch and FF is that latches are level sensitive while FF is edge sensitive. They both require the use of clock signal and used in sequential logic.

·  For a latch, the output tracks the input when the clock signal is high. So as long as the clock is logic 1, the output can change if the input changes.
             FF on the other hand, will store the input only when there  is rising/falling edge of the clock.
·  Latch is sensitive to glitches on enable pin, whereas flip flop is immune to glitches.
·  Latches take fewer gates (also less power) to implement than flip-flops.
·   Latches are faster than flip-flops.

                                                          ----------x-----------x-----------

No comments:

Post a Comment