Level-sensitive (transparent while the enable/clock input is at a specific logic level—HIGH for a D-latch, LOW for an SR-latch, etc.)
Edge-triggered (captures input only on a rising, falling, or dual clock edge)
Control input name
Enable, Gate, or Clock (level)
Clock (edge)
Timing granularity
Can change state any time the enable level is active → “transparent” region
Updates state only once per clock edge → discrete, well-defined sampling instant
Glitch susceptibility
More susceptible—data hazards or glitches on D or S/R propagate while transparent
Less susceptible—input glitches between edges are ignored (if setup/hold times are satisfied)
Typical use cases
Small asynchronous storage, gated clocks, two-phase master-slave flip-flop construction
Synchronous pipelines, counters, FSM state registers
Hardware cost
Slightly fewer gates
Slightly more gates (master + slave or edge-forming logic)
Notation in schematics
Open rectangle or triangle before rectangle (▶)
Rectangle with clock edge symbol (⊥, ↑, ↓)
Metastability behavior
Similar basic metastability concerns; shorter exposure window makes flip-flops easier to manage in synchronous design
Intuitive picture
Latch
Think of a garage door that stays open as long as you press the button (enable = 1). Anything (data) can go in and out during that time.
Flip-Flop
Think of a camera shutter that only snaps a photo at the exact instant you press the button (clock edge). Whatever the scene (data) looks like at that instant is what gets stored until the next snap.
Why designers usually choose flip-flops for synchronous systems
• Level-sensitive latches can create race-through conditions if multiple latches share an enable that is high for too long.
• Edge-triggered flip-flops reduce timing analysis to simple setup/hold checks around a single instant, simplifying CAD tools and timing closure.
• Modern FPGAs, ASIC cell libraries, and microprocessor pipelines overwhelmingly provide edge-triggered FF primitives; latches are less common but still useful for low-power gated-clock schemes.
Relationship between the two
A typical edge-triggered flip-flop can be built from two latches in series (master-slave configuration) driven by complementary phases of the clock:
During the high phase, the master is transparent and captures D. When the clock goes low, the master locks, the slave becomes transparent, and Q updates. At the next rising edge a new sample is allowed in, giving edge-triggered behavior.
Quick takeaway
• Latch = level-sensitive storage element – simpler, “transparent” while enabled.
• Flip-Flop = edge-triggered storage element – captures data only on clock edges and is the backbone of synchronous sequential logic.
Now you can spot the difference anytime you read a timing diagram or HDL code!