DIGITAL ELECTRONICS

SR Latch

An SR latch stores one bit using set and reset inputs. The set input requests one output state, while reset requests the opposite state; after either input is released, the latch retains its last valid state. Q and Q-bar provide complementary outputs. Unlike a flip-flop, a basic SR latch is not edge-triggered, so its inputs must be controlled carefully. This diagram is useful for introducing bistable logic, interlocks and simple state retention. Avoid the prohibited input combination for the chosen NOR or NAND implementation.

UPDATED 2026-09-24
EXAMPLESR Latch
Make this diagram your own.

Open it in the AI editor with a prompt pre-filled — keep what works, change what doesn't.

CASE ANALYSIS

Scenario

The simplest bistable memory element.

Key decisions

  • Set input: Set requests Q high.
  • Reset input: Reset requests Q low.
  • Complementary outputs: Q and Q-bar expose the stored state.

When to reuse this

Use this to explain basic latch behavior before clocked flip-flops.

FAQ

Frequently asked questions

What does an SR latch store?01
It stores one binary state until a set or reset input changes it.
Is an SR latch edge-triggered?02
A basic SR latch is level-sensitive, not edge-triggered.
Why are Q and Q-bar both shown?03
They show the stored state and its complement.
Open this example in the editor →

Tweak it with chat, export PNG/SVG, or fork it for your own use case.