When E=1 the latch is transparent: the output simply copies D.
Qnext=ED+EQ=(1)(0)+(0)(1)=0.Answer: Qnext=0. The old Q=1 is overwritten because the "door is open."
Recall Solution 1.2
E=0 means hold (opaque). The new D=1 is ignored.
Qnext=(0)(1)+(1)(0)=0.Answer: Qnext=0 — the latch keeps its old value, it does not copy D.
Recall Solution 1.3
True. Internally the D latch wires S=D and R=D. Since D and D are always opposite, S and R can never both be 1. The forbidden state is designed out.
Apply Qnext=ED+EQ column by column, carrying Q forward.
t1:E=1 → transparent → Q=D=0.
t2:E=0 → hold → Q=0 (ignore D=1).
t3:E=0 → hold → Q=0.
t4:E=1 → transparent → Q=D=1.
t5:E=1 → transparent → Q=D=0 (follows the new D immediately — this is the "transparency" you can see in the waveform below).
t6:E=0 → hold → Q=0.
Answer row: 0 0 0 1 0 0.
Look at the green Q line: while E is high (shaded bands) Q chases D; while E is low it flat-lines.
Recall Solution 2.2
Compare Q (from 2.1) with D each step:
t
1
2
3
4
5
6
D
0
1
0
1
0
1
Q
0
0
0
1
0
0
Q=D?
✓
✗
✓
✓
✓
✗
Answer: 4 steps (t=1,3,4,5). Note that steps where they happen to match while holding (t3) still count as equal, but the cause differs — only during E=1 is the equality guaranteed.
Answer:E=1,0,(either),(either). The forced values are E1=1,E2=0.
Recall Solution 3.2
A 2:1 MUX with select S outputs MUX=SI0+SI1. Substitute S=E,I0=Q,I1=D:
MUX=EQ+ED.
By commutativity of OR this is identical to ED+EQ. Proven. So a D latch is literally a 2:1 MUX with its own output Q fed back into input-0.
Put one inverter on the enable pin: feed E=EN into the standard latch. Then transparency (E=1) happens exactly when EN=0. Substitute E=EN into the master equation:
Qnext=END+ENQ.Check:EN=0 → Qnext=1⋅D+0⋅Q=D (transparent). EN=1 → Qnext=0+1⋅Q=Q (hold). ✓ Minimum extra hardware = one NOT gate.
Recall Solution 4.2
We want: T=1⇒Qnext=Q (flip); T=0⇒Qnext=Q (hold). This is exactly XOR:
D=T⊕Q.
Feed that into the latch (with E pulsed). Verify:
T=0: D=0⊕Q=Q → stores Q → hold. ✓
T=1: D=1⊕Q=Q → stores Q → flip. ✓
Answer: D=T⊕Q, i.e. an XOR gate between the control T and the fed-back output Q. (Note: with a level-triggered latch this would oscillate while E is high — see the L4 trap. A proper toggle needs an edge-triggered D Flip-Flop.)
D latch (level-triggered): because it is transparent while E=1, Q copies Dcontinuously. So Q goes 0→1→0 — the glitch passes straight through to the output. This is the danger of transparency (Clocking and Timing).
D flip-flop (edge-triggered): it only samples D at the clock edge. If no edge occurs during the glitch, Q is unaffected — it captured whatever D was at the last edge. This edge-rejection is exactly why registers are built from flip-flops, not latches (Registers).
Answer: latch passes the glitch; flip-flop (if the glitch misses the edge) rejects it.
Recall Solution 5.2
Trace (Q starts at 0):
t1: E=1 → Q=D=1.
t2: E=1 → Q=D=0.
t3: E=0 → hold → Q=0.
t4: E=1 → Q=D=1.
t5: E=0 → hold → Q=1.
Answer row: 1 0 0 1 1.
Cross-check t4 with Qnext=ED+EQ, using E=1,D=1,Qprev=0:
Qnext=(1)(1)+(0)(0)=1✓
Matches the trace → both methods agree.
Recall Solution 5.3
Each latch obeys its own copy of the master equation:
Q1=ED1+EQ1prev,Q0=ED0+EQ0prev.
While E=1 both are transparent, so they load Q1=D1=1,Q0=D0=0. When E drops to 0, both freeze at that value.
Answer: stored value Q1Q0=10 (decimal 2). This 2-bit array of latches sharing one enable is the seed idea behind a register.