Altifigence Academy

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.

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 00 and 11, but wires carry continuously varying voltages. The input specification defines a reading of 0 at or below VILV_{IL} and 1 at or above VIHV_{IH}. 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 voltageGuaranteed interpretation
0–0.8 VLogic 0
Above 0.8 V and below 2.0 VNeither 0 nor 1 is guaranteed
2.0–3.3 VLogic 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.

From voltage to a logic function
  1. Driver output: Low and high voltages guaranteed under the permitted load
  2. Wires and noise: The received voltage can differ from the transmitted voltage
  3. Receiver input: VIL and VIH define the valid logic ranges
  4. 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 VOL=0.2 VV_{OL}=0.2\,\mathrm V and a minimum high output of VOH=2.8 VV_{OH}=2.8\,\mathrm V. 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

NML=VIL−VOL=0.6 V,NMH=VOH−VIH=0.8 VNM_L=V_{IL}-V_{OL}=0.6\,\mathrm V,\qquad NM_H=V_{OH}-V_{IH}=0.8\,\mathrm V

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

As voltage changes, where does the logic guarantee end?

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Your choice applies to this browser. Change it any time using the footer.