3.4.1 · D1Sequential Circuits

Foundations — SR latch operation

2,363 words11 min readBack to topic

Before you can read a single line of the parent note, you need a small toolbox of ideas. This page builds every one of them from absolute zero, in an order where each idea leans on the one before it — exactly like the two kids leaning on each other.


0. What is a "bit"? (the thing we store)

Figure — SR latch operation

1. A logic gate (the building block)

The rule never changes — the output only depends on what is at the inputs right now. That "right now" part matters a lot, so we give it a name.

The parent note's very first job is to escape this "no memory" trap. So hold that word — combinational — we will break it deliberately in section 5.


2. Two symbols we need first: the plus and the bar

Before we can even write down the NOR rule, we must fix two pieces of notation, because in this world they do not mean what they mean in ordinary arithmetic.

Now — and only now — every symbol we are about to use has a meaning. On to the gate itself.


3. The NOR gate (the parent's default gate)

The parent builds its main latch from NOR gates, so we must know NOR cold.

Here is that rule written out completely — a self-contained truth table, every possible input row shown:

(OR) (NOR out)
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0

The same table is drawn as a figure so you can see the shape of the gate beside it:

Figure — SR latch operation

The dual gate, NAND, works the mirror-opposite way (output is 0 only when both inputs are 1). The parent's NAND version is just this same domino with 0 and 1 swapping roles — see Cross-coupled gates for how the wiring is identical.


4. and — naming the two outputs


5. Feedback — the idea that makes memory

This is the keystone. Everything above was tools; this is the trick.

Figure — SR latch operation

This is precisely why the parent opens with "feed their outputs back into each other". Now that sentence is fully unpacked.


6. The control inputs and , active-HIGH vs active-LOW

Now we can finally name the two buttons that drive the latch.

Why does the parent bother with both flavours? Because real chips come in both, and later devices like the Gated SR latch, D latch, and JK flip-flop are all built on top of one of these two. Knowing that 0 and 1 simply swap roles saves you from re-learning the whole table.


7. "State", "previous", "next" — talking about time

The parent writes and . Latches live in time, so we need words for before and after.

One extra warning word you'll meet:


The prerequisite map

Bit = one of two values

Logic gate = input bits to output bit

Combinational = no memory

Boolean plus means OR

NOR rule = any 1 forces 0

Overbar means NOT

Q and Q-bar = two outputs

Feedback = output wired to input

Cross-coupled = each feeds the other

State prev and next = time

S and R inputs active high or low

SR latch operation

Read it bottom-up: every arrow is a "you need this first". The parent topic SR latch operation sits at the very end because it consumes all of them at once.


Equipment checklist

What is a bit, physically?
A two-state value, usually low voltage = 0 and high voltage = 1.
What does "combinational" mean, and why is it the enemy of memory?
Output depends only on present inputs; remove inputs and the output vanishes — no storage.
In these equations, what does the symbol mean?
OR — so , not 2.
What does an overbar do?
Flips (NOT) whatever is under it, after evaluating the inside first.
State the NOR rule in one sentence.
Output is 1 only when both inputs are 0; any input equal to 1 forces the output to 0.
What are and , and is guaranteed to be the opposite of ?
The stored bit and its intended complement; the opposite relation holds only for legal inputs, not the forbidden one.
Define feedback and explain why it creates memory.
Output wired back as input; the loop can settle into a state that keeps re-asserting itself, so it "remembers" after inputs leave.
What does "cross-coupled" mean?
Each gate's output feeds the other gate's input, forming the smallest memory loop.
What do the inputs and do?
S (Set) forces Q=1, R (Reset) forces Q=0; neither driven means Hold.
Which input combination is forbidden for a NOR SR latch, and why?
S=1 and R=1 together; it forces both outputs to 0 (not complementary) and leaves the state undecided/metastable on release.
Active-HIGH vs active-LOW — which is NOR, which is NAND?
NOR inputs are active-HIGH (1 triggers); NAND inputs are active-LOW (0 triggers).
What do and represent?
The stored value just before and just after applying new inputs; Hold means .
What is metastability and why does it make the "both active" input forbidden?
An unstable balanced state between 0 and 1 that resolves randomly; the forbidden input can trigger it.