The NAND SR latch does the same job as the NOR SR latch with two NAND gates. A NAND outputs 1 whenever any input is 0, so here the inputs act when they are 0. They are active-low, written and .
- = 1, = 1: hold.
- = 0, = 1: set, Q = 1.
- = 1, = 0: reset, Q = 0.
- = 0, = 0: forbidden. Both outputs are forced to 1.
In the gates, Q = and = .
The four behaviors match the NOR latch with every input level flipped. Invert both NAND inputs and you get the equivalent NOR inputs.
Why it exists: NAND gates are cheap and common, and many real control signals are active-low anyway, so the NAND version is often the natural choice. It is also the core of the preset and clear logic inside many flip-flops, which is why those pins are so often active-low.
A quick way to read one: look for the input sitting at 0. That is the one doing something. If neither is 0, the latch holds.