Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.


Latches vs. Flip-Flops

FeatureLatchesFlip-Flops
TriggerLevel-Triggered (High/Low)Edge-Triggered (Rising/Falling)
TransparencyTransparent during active levelOnly captures data on the transition
Primary UseSimple storage, high-speed buffersSynchronous logic, registers, FSMs

Latches (Level-Triggered)

SR Latch (Set-Reset)The SR latch is the most basic form of memory, but it includes an invalid state.

ENSRQ(next)State
0XXQHold
100QHold
1010Reset
1101Set
111?FORBIDDEN

D Latch (Transparent)Eliminates the forbidden state by ensuring S and R are never both high.

ENDQ(next)State
0XQHold
100Reset
111Set

Flip-Flops (Edge-Triggered)

D Flip-Flop (Data)The industry standard for registers and synchronous design.

CLKDQ(next)
00
11
XQ

JK Flip-Flop (Universal)

CLKJKQ(next)
00Q (Hold)
010 (Reset)
101 (Set)
11Q̄ (Toggle)

Timing Constraints

For reliable operation, data must be stable around the active clock edge.

ParameterSymbolDescription
Setup Timet_{su}Minimum time input must be stable before the clock edge.
Hold Timet_hMinimum time input must remain stable after the clock edge.
Prop Delayt_{pd}Time taken for the output to reflect the input change.

Selection Guide