HiveBrain v1.2.0
Get Started
← Back to all entries
gotchaMinor

What is the exact difference between a latch & a flipflop?

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
exactthewhatflipfloplatchdifferencebetween

Problem

From what I have understood :

  • A Flip Flop is a clocked latch i.e. flip flop = latch + clock



  • Latch continuously checks for inputs & changes the output whenever there is a change in input



  • Flip Flop also continuously checks input, but changes the output time determined by clock. [so, even though if inputs are changed, it may not change the output at the same time]



  • A latch with enable [i.e. gated latch], is different from that of clocked latch.



I am reading from Digital Logic by Morris Mano & Wikipedia.

Solution

As far as I understand, the difference is indeed the clock/enable.

A flip-flop samples the inputs only at a clock event (rising edge, etc.)

A Latch samples the inputs continuously whenever it is enabled, that is, only when the enable signal is on. (or otherwise, it would be a wire, not a latch).

Context

StackExchange Computer Science Q#11090, answer score: 7

Revisions (0)

No revisions yet.