Skip to content
๐Ÿ” Latches vs Flip-Flops

๐Ÿ” Latches vs Flip-Flops

Sequential circuits rely on memory elements to store and update state. Two fundamental types are latches and flip-flops.


๐Ÿงฉ Core Difference

FeatureLatchFlip-Flop
TriggeringLevel-sensitive (enabled while active)Edge-triggered (updates on clock edge)
ControlResponds to enable signalResponds to clock edge
TimingTransparent while enabledUpdates only at discrete moments
UsageSimpler, used in low-speed or gated designsPreferred in synchronous systems

๐Ÿ”“ Latches

  • Level-sensitive: Output follows input while enable is active.
  • Types:
    • SR Latch: Set-Reset control
    • D Latch: Data latch, simpler and safer
  • Behavior: Transparent when enabled, holds value when disabled.

Example: D Latch

SignalDescription
DData input
EEnable
QOutput

Q = D when E = 1 Q holds when E = 0


๐Ÿ•’ Flip-Flops

  • Edge-triggered: Updates only on rising or falling clock edge.
  • Types:
    • D Flip-Flop: Most common, stores one bit
    • JK Flip-Flop: Versatile, avoids invalid states
    • T Flip-Flop: Toggles output
  • Behavior: Samples input at clock edge, holds until next edge.

Example: D Flip-Flop

SignalDescription
DData input
CLKClock
QOutput

Q updates to D on rising edge of CLK


๐Ÿง  Summary

Latches are level-sensitive and update continuously while enabled. Flip-flops are edge-triggered and update only at clock transitions. Flip-flops are preferred in synchronous systems for predictable timing and noise immunity.

Last updated on