3.4.2 · D1Sequential Circuits

Foundations — D latch and gated latches

1,948 words9 min readBack to topic

This page assumes you have seen nothing. Before we can read $Q_{\text{next}} = E\,D + \overline{E}\,Q$ on the parent note, we must earn every single symbol in it. We go one brick at a time.


1. A bit — the smallest thing there is

Plain words: a bit is a yes/no. Nothing in between — no , no "maybe".

The picture: a light switch. Down = (off), up = (on). There is no half-pressed switch.

Why the topic needs it: a latch's whole job is to store one bit. If you don't know what a bit is, "storing one" means nothing.

Figure — D latch and gated latches

2. A wire and a signal — how a bit travels

The picture: a water pipe. Water flowing = signal (high); no water = signal (low). The pipe (wire) is always there; what changes is whether it's carrying a or a .

Why the topic needs it: the latch has several wires — , , . Each carries one bit. When we say "" we mean "the enable wire is currently high".


3. Naming wires with letters — , ,

Plain words: , , are just nicknames for wires, the way is a nickname for a number in algebra. Writing means "the wire we nicknamed is high right now."

The picture: a whiteboard with a sliding cover.

  • = the marker you press against the board.
  • = the cover: open () lets you write; closed () protects what's there.
  • = whatever is currently visible on the board.

Why the topic needs it: these three letters are the entire cast of characters. Every equation on the parent page is a story about how reacts to and .


4. The overline — , the "opposite" (NOT)

Plain words: the overline is the word "not". = "not ".

The picture: a see-saw. Push one side down (that's ) and the other side () goes up to . They are always opposite — they can never both be up.

Why the tool and not another? We specifically need something that guarantees two wires are always opposite. The overline is exactly that guarantee. The parent uses it to set so that and can never both be 1 — that is the trick that kills the SR latch's forbidden state. No other operation gives you "always opposite" so cheaply.

Figure — D latch and gated latches

5. The dot — , the "both" gate (AND)

Plain words: the dot is the word "and". " AND ".

The picture: two doors in a hallway, one after the other. You get through () only if both are open. If either is shut, you're stopped ().

Why the tool and not another? The parent builds the gated latch by feeding the SR latch . Read it: the set signal only reaches the latch when is also 1. AND is the perfect "permission gate" — it lets a signal pass only with permission from the enable. That is literally what "gated" means.

0 0 0
0 1 0
1 0 0
1 1 1

6. The plus — , the "either" gate (OR)

Plain words: the plus is the word "or". Careful — this is not ordinary addition. In boolean algebra , not , because "at least one is on" is still just "on".

The picture: two doors side-by-side into the same room. You reach the room () if either door is open.

Why the tool and not another? The characteristic equation has two situations — "enabled, so take " and "not enabled, so keep old ". Exactly one of them is ever active (because and are opposites). OR glues the two branches into a single formula: whichever branch is "on" wins, and they never fight.

Figure — D latch and gated latches

7. Two special outputs — and

The picture: the see-saw again — if is up, is down. The SR latch's forbidden state is the impossible moment when someone tries to push both ends up at once — the see-saw jams. That jam is exactly what the D latch is designed to prevent.

Why the topic needs it: understanding why is a contradiction is the whole motivation for the D latch. See SR Latch and NOR and NAND Gates for how cross-coupling produces this pair.


8. "Old value" vs "new value" — and

Plain words: memory only makes sense across time. The equation asks: given what you're storing now and the inputs, what will you store next?

The picture: a film strip. Each frame is one moment. is the previous frame; is the frame we are about to draw.

Why the tool and not another? Without a "before/after" split, an equation like would read as " equals something containing " — a circular sentence. Splitting it into and turns a puzzle into a clear recipe: new = f(inputs, old).


9. Feedback — how a wire remembers itself

The picture: a snake gently biting its own tail — the value keeps circling around, unchanged, until something outside forces a new value in.

Why the topic needs it: the term is the feedback. When , that term hands the old straight back to become the new . Remove the loop and the latch forgets everything the instant you stop driving it. This is the seed idea behind Registers and the D Flip-Flop.


10. Putting the symbols back together

Now read the parent's boxed line with fully-earned eyes:

  • : " AND " — nonzero only when enabled and the data is .
  • : "(NOT ) AND old " — active only when disabled, and it just returns the stored bit (feedback).
  • : "OR" — glue the two mutually-exclusive branches into one answer.

Because and are always opposite, exactly one term is ever live. That is the same select-one-of-two logic used by a 2:1 multiplexer, which is why the parent calls the D latch "a MUX with feedback."


Prerequisite map

Bit 0 or 1

Wire carries a signal

Named wires D E Q

NOT overline flips a bit

AND dot both high

OR plus either high

Q and Qbar always opposite

Gated latch enable permission

Characteristic equation

D latch

Feedback loop remembers

Q prev vs Q next


Equipment checklist

Hide the right side and test yourself. If any answer is fuzzy, re-read that section before the parent note.

What is a bit?
A value that is either or — nothing in between.
What does it mean for a wire to be "high"?
Its signal is currently .
What do the letters , , stand for?
Data input, Enable control, and the stored Output.
What does the overline do?
Flips the bit — becomes and vice versa (NOT). and are always opposite.
When is equal to ?
Only when both and are (AND).
When is equal to ?
Only when both and are ; otherwise it's (OR).
In boolean algebra, what is ?
— "at least one is on" is still just on, not .
Why can and never both be in a healthy latch?
They are opposites; both being is the jammed "forbidden" state the D latch avoids.
What is the difference between and ?
The bit stored just before vs the bit stored just after the inputs settle.
What is feedback, and which term in the equation provides it?
An output fed back as an input; the term feeds old back to hold it.
Why is exactly one term of ever active?
Because and are always opposite, so only one branch is live at a time.