1 / 63 · Concept
Digital signals: when voltages represent 0 and 1
Distinguish logic values from voltages, and calculate input thresholds, noise margins and propagation delays.
Lessons are free to read. Enroll to save your learning progress.
What you should be able to build
This course moves briskly through introductory university-level digital logic design and checks each idea with a circuit. High-school algebra is enough to start; basic programming experience helps with the RTL labs. First, connect gates → combinational circuits → storage elements → state machines. The optional advanced chapters then extend these foundations to datapaths and interfaces.
The goal of this lesson is more than memorizing “high voltage means 1.” You should be able to explain over what range, and from what time onward, a correct logic value is guaranteed.
A logic value is an interpretation of a voltage
Logic circuits compute with and , but wires carry continuously varying voltages. The input specification defines a reading of 0 at or below and 1 at or above . Neither interpretation is guaranteed between the two thresholds. The device data sheet specifies the actual permitted voltage range and thresholds.
Consider an educational 3.3 V circuit. The following values are illustrative, not specifications for a particular product.
| Received input voltage | Guaranteed interpretation |
|---|---|
| 0–0.8 V | Logic 0 |
| Above 0.8 V and below 2.0 V | Neither 0 nor 1 is guaranteed |
| 2.0–3.3 V | Logic 1 |
An input of 1.4 V is not a “third logic value.” It falls outside the conditions under which the digital model guarantees a result. A transition from 0 to 1 passes through this interval, so we must also specify when the output is observed.
- Driver output: Low and high voltages guaranteed under the permitted load
- Wires and noise: The received voltage can differ from the transmitted voltage
- Receiver input: VIL and VIH define the valid logic ranges
- Logic function: Output guaranteed after inputs settle and the delay elapses
The margin between output and input specifications
Assume a maximum low driver output of and a minimum high output of . The noise marginsNoise margin The margin between a driver's guaranteed output voltage and a receiver's input decision threshold. It is calculated from the difference between static voltage specifications. are
Even with +0.4 V of noise added to the low output, 0.6 V remains in the low input range. This is a static margin, assuming the voltage specifications and load conditions are met. This number alone does not characterize short pulses or wiring reflections.
Consider function and timing together
An AND gate outputs 1 for inputs 11. That does not guarantee an output of 1 at the very instant the inputs change. Add the maximum gate delays along each path, then use the longest total as the delay bound. For two gates in series with maximum delays of 2 ns and 3 ns, this model allows up to 5 ns after the inputs settle.
Leaving an input unconnected is also different from driving it with 0. In a simulator, X represents an unknown value and Z a high-impedance drive state; neither corresponds one-to-one to a particular physical voltage. The button exercises in this course use a stable 0/1 model.
Further reading: MIT OpenCourseWare — The Digital Abstraction
Lab · Cross a noise-margin boundary
VIL=0.8 V; VIH=2 V; VOL=0.2 V; VOH=2.8 V. NM_L=0.6 V; NM_H=0.8 V. Neither logic value is guaranteed between the input thresholds. This is a static teaching model.
- Select transmit 0. The output is fixed at its worst-case low voltage, 0.20 V. Set the noise to +0.60 V: the receiver sees 0.80 V, which still guarantees 0.
- Press the right arrow to add another 10 mV of noise. At 0.81 V, the result changes to “not guaranteed.” That does not mean it immediately becomes 1.
- For transmit 1, subtract noise from the 2.80 V output. A received 1 is guaranteed through −0.80 V, but not at −0.81 V.
- A larger disturbance can take the input into the opposite valid region. The receiver may then classify it as a valid logic level even though the transmitted data is wrong. Valid voltage and correct data are separate conditions.
Inputs outside the lab's 0–VDD range are not clamped into a valid region. Check the actual device's permitted input range, clamp current and transient-pulse conditions separately in its data sheet. This exercise does not predict damage or the dynamic response of a particular device.
Try it yourself
If a transmitted 1 has an output of 2.80 V and noise of −0.85 V, can you conclude that the receiver reads 0? Compare this with adding +2.00 V to a transmitted 0.
Read the explanation
In the first case, 1.95 V lies between the thresholds, so neither 0 nor 1 is guaranteed. In the second, 0.20+2.00=2.20 V is a received 1, although the transmitted bit was 0. A valid classification does not imply that the data was preserved.