An SR storage element uses set and reset controls to store one bit. The basic cross-coupled NOR or NAND circuit is a latch, not an edge-triggered flip-flop. Its control polarity determines which combination holds state and which combination is invalid.
Reviewed 12 November 2026 · Binary examples checked with executable tests.
On this page
How does the active-high NOR SR latch work?
With S=R=0, feedback preserves a valid stored state. S=1, R=0 sets Q to 1. S=0, R=1 resets Q to 0. The inputs act without waiting for a clock edge in this basic latch.
| S | R | Qnext | Condition |
|---|---|---|---|
| 0 | 0 | Q | Hold |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Invalid | Both NOR outputs forced low |
When S=R=1, both NOR outputs are driven low, so they are no longer complements. Releasing both controls together does not define a reliable final state. Avoid that condition rather than assigning it an ordinary binary next state.
How does an active-low NAND latch differ?
Write the inputs as S̅ and R̅ to make their active-low nature explicit. Both high means hold; pulling only S̅ low sets Q, and pulling only R̅ low resets it.
| S̅ | R̅ | Qnext | Condition |
|---|---|---|---|
| 1 | 1 | Q | Hold |
| 1 | 0 | 0 | Reset |
| 0 | 1 | 1 | Set |
| 0 | 0 | Invalid | Both NAND outputs forced high |
Driving both active-low controls to 0 forces both NAND outputs high. That is the NAND latch's invalid condition. Reusing the NOR table for this circuit reverses the hold and invalid rows and is a common wiring and interview mistake.
What is the difference between a latch and a flip-flop?
A basic SR latch responds asynchronously to set and reset. A gated latch adds an enable condition and remains sensitive during the enabled level. An edge-triggered flip-flop updates its normal data state at a designated edge. These are different sampling rules, even when their high-level set/reset functions look similar.
The pulse diagram illustrates a clockless active-high SR latch: a set pulse stores 1, which remains after the pulse ends, and a later reset pulse stores 0. It should not be labeled as evidence of edge-triggered operation.
Can you write a next-state equation?
For valid active-high SR inputs, the characteristic expression is:
Qnext = S + NOT(R)·Q with S·R = 0The side condition matters. Evaluating the Boolean expression at S=R=1 gives 1, but that does not describe the invalid two-output state of the physical cross-coupled NOR latch. A model that assigns set priority or reset priority is specifying an additional policy, not recovering a safe state from the forbidden circuit input.
What should a verification checklist cover?
- Start from both stored states and check the hold combination.
- Assert set alone, release it and verify that the set state remains.
- Assert reset alone, release it and verify that the reset state remains.
- Reject or explicitly report simultaneous asserted controls.
- Check control polarity and any enable or clock assumption separately.
The lab's binary SR helper reports invalid active-high inputs as an invalid result instead of silently choosing priority. It checks all eight present-state/input combinations. It is not an analog model of a latch settling after conflicting controls.
Continue with NAND construction, JK behavior and the D flip-flop.
Common questions
Is S=R=0 always the hold condition?
Only for the active-high SR convention described here. An active-low NAND latch holds when both active-low inputs are 1.
Why is the invalid combination dangerous?
It drives both outputs to the same level. Simultaneous release may settle unpredictably and can violate assumptions in the receiving logic; a Boolean priority rule is not proof of safe physical behavior.
Does power-up guarantee Q=0?
Not for a generic latch. Use the particular device or design specifications and a defined initialization/reset strategy.
References and checks
- Texas Instruments: SN74LS279A active-low SR latch datasheet
- Texas Instruments: SN74HC112 JK device and timing requirements
Download the functional tests and model source. These check stated binary functions; they do not establish analog timing, physical implementation, fault coverage or board behavior.