Discuss The Difference Between Latches and Flip
Discuss The Difference Between Latches and Flip
The main difference between a latch and a flip-flop is that for a latch, its state or output is constantly
affected by its input as long as its enable signal is asserted. In other words, when a latch is enabled, its
state changes immediately when its input changes. When a latch is disabled, its state remains constant,
thereby, remembering its previous value. On the other hand, a flip-flop changes state only at the active
edge of its enable signal, and at precisely the moment when either its enable signal rises from a 0 to a 1
(rising edge of the signal), or from a 1 to a 0 (the falling edge). However, after the rising or falling edge of
the enable signal, and during the time when the enable signal is at a constant 1 or 0, the flip-flop’s state
remains constant even if the input changes.
The main difference between a latch and flip-flop: latches are level-sensitive while flip-flops are edge-
sensitive. Both might require the use of a clock signal and are used in sequential logic. (The clock on the
latch is for synchronization whereas the clock on the flip-flop may trigger a change in output.)
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 also changes. (Logic 1 + new data = new output)
Flip-flops, in comparison, will store the input only when there is a rising/falling edge of the clock. (Edge-
triggered, so they may flip on clock pulses.)
Flip-flops are heavily used for digital data storage and transfer and are commonly used in banks called
"registers" for the storage of binary numerical data. A flip-flop may be used to store or 'lock' one bit of
information. This locking of information is also known as 'latching', so a flip-flop may be referred to as a
single-bit latch or flip-flops may be used to store data temporarily, to multiply or divide, to count
operations, or to receive and transfer information.
There now exist many digital IC's consisting of a set of several flip-flops, whose main function is to latch
several bits of data. These IC's are known as 'latches', and are used to capture data from the data bus of
a digital system at precise moments in time. In fact, simple computer-controlled circuits use latches as
I/O devices. The flip-flop is also the basic building block of SRAM's.