D latch
A d latch is a level-triggered digital storage element that saves one bit in Intro to Electrical Engineering. It passes D to the output while enable is active, then holds that value when enable goes low.
What is d latch?
A d latch is a one-bit memory element used in Intro to Electrical Engineering digital logic. It takes a data input, usually labeled D, and an enable signal that controls when the output can change. While enable is active, the latch is transparent, so the output follows D. When enable is inactive, it stores the last value and ignores changes at D.
That level-triggered behavior is what makes a latch different from a flip-flop. A flip-flop waits for a clock edge, but a d latch responds for as long as the enable level is asserted. If enable stays high, any change on D can pass straight through. If enable drops low, the circuit stops updating and keeps the stored bit.
In circuit diagrams, you will often see a d latch built from simpler logic, such as NAND or NOR gates. The exact implementation can vary, but the job stays the same: remember one bit reliably until the control signal allows a new value in. This is why latches show up in memory paths, temporary storage, and small control circuits.
A useful way to picture it is as a controlled doorway. D is the data trying to enter, enable is the door switch, and the output is the stored bit. When the door is open, the bit can pass through. When the door is closed, the latch keeps the last value even if the input keeps changing.
One common mistake is assuming a d latch behaves like a flip-flop because both store data. They do not update the same way. With a latch, the signal level matters over time, so sloppy timing can let unwanted changes leak through. That timing behavior is exactly why your lab work and timing diagrams matter when you study sequential circuits.
Why d latch matters in Intro to Electrical Engineering
The d latch is one of the first real memory elements you meet in digital electronics, so it connects basic logic gates to sequential systems that actually remember something. Once you can explain how a latch stores one bit, registers, counters, and small state machines make more sense because they are built from the same idea repeated many times.
It also gives you a clean example of level-triggered timing. In Intro to Electrical Engineering, that means you are not just checking whether a logic expression is true or false. You are checking when the signal is allowed to change and whether the circuit has enough time to settle before the enable turns off.
This matters in labs and problem sets because a latch can look correct in a simple truth table but still behave badly in a timing diagram. If D changes while enable is high, the output tracks it. If D changes right as enable closes, propagation delay can make the final value less obvious. That is the kind of detail instructors like to ask about.
The d latch also sets up the transition to edge-triggered storage. If you understand why a latch is transparent during an active level, the appeal of a d flip-flop becomes obvious: it samples only at a clock edge, which is easier to control in larger synchronous systems.
Keep studying Intro to Electrical Engineering Unit 16
Official unit cheatsheet
open one-pagerHow d latch connects across the course
Flip-flop
A flip-flop stores one bit too, but it updates on a clock edge instead of staying transparent while an enable level is active. That difference matters when you analyze timing diagrams or decide how a larger circuit should sample data. A d latch is often the easier starting point for seeing how sequential storage works before moving to edge-triggered design.
Set-Reset Latch
A set-reset latch is another basic memory circuit, but it uses separate set and reset inputs rather than a single D input. That makes it good for learning feedback in logic gates, but less convenient for direct data storage. The d latch simplifies that idea by packaging the stored bit around one data line and one control line.
Timing Diagram
Timing diagrams show exactly when D, enable, and output change relative to each other. For a d latch, the diagram tells you when the output is transparent and when it is holding. This is often where students spot the real behavior of the circuit, especially when propagation delay or close-together signal changes make the outcome less obvious.
Propagation Delay
Propagation delay is the small time it takes for a change at the input of a logic circuit to appear at the output. With a d latch, that delay matters because the output does not update instantly when enable becomes active or inactive. In timing questions, ignoring delay can lead you to predict the wrong stored value.
Is d latch on the Intro to Electrical Engineering exam?
A quiz or lab question will usually ask you to trace what the latch stores after a change in D and enable, often using a timing diagram. You may need to say whether the output is following the input or holding the previous bit at a specific moment. In circuit problems, look for the active enable level first, then track propagation delay if the diagram includes it.
You may also be asked to compare a d latch with a flip-flop or identify why a circuit is level-triggered. A good answer shows that you know the latch is transparent only while enable is active, not just when the input changes. If the question gives a gate-level circuit, you may have to infer that a NAND or NOR feedback structure is storing the bit.
D latch vs d flip-flop
These are easy to mix up because both store one bit and both use a D input. The difference is timing: a d latch is level-triggered and stays open while enable is active, while a d flip-flop updates only on a clock edge. If a problem mentions transparency over a time interval, you are probably looking at a latch.
Key things to remember about d latch
A d latch stores one bit by passing D through while enable is active and holding that value when enable is inactive.
The latch is level-triggered, so its output can keep changing during the active enable level instead of waiting for a clock edge.
D latches show up in digital memory paths, temporary storage, and simple sequential logic built from NAND or NOR gates.
Timing matters more than just the logic value, because the output depends on when D changes relative to enable and on propagation delay.
If you are comparing sequential devices, a d latch is transparent during an enable level, while a d flip-flop updates only on an edge.
Frequently asked questions about d latch
What is a d latch in Intro to Electrical Engineering?
A d latch is a level-triggered memory element that stores one bit. It copies the D input to the output while enable is active, then keeps the last value after enable turns off. That makes it a simple building block for sequential digital circuits.
How is a d latch different from a flip-flop?
A d latch is transparent during an active enable level, so the output can track the input for a span of time. A flip-flop samples only at a clock edge, which makes its update moment more precise. That timing difference is the main source of confusion between the two.
Why does a d latch need an enable signal?
The enable signal controls when the latch is allowed to update. Without it, the circuit would just mirror the input all the time and would not really store anything. In labs and timing problems, enable is what creates the hold state.
How do you read a d latch on a timing diagram?
Check when enable is active first. During that interval, the output follows D after a short propagation delay. When enable is inactive, the output stays fixed even if D changes, so the stored value is whatever D was before the latch closed.