Transients on Lines and Bounce Diagrams
A logic gate switches in a nanosecond; a trace on FR-4 delays its edge by about the same. The far end of that trace does not see a clean step: it sees a staircase or a ring, the sum of waves bouncing between a mismatched driver and load. Sinusoidal analysis (Reflection Coefficient, Standing Waves and VSWR) describes the steady state at one frequency; digital edges, pulses and switch-on events need the time-domain picture. This lesson builds it from two reflection coefficients, draws the bounce (lattice) diagram, checks it with ngspice's lossless line element and the ee-transmission-line lab, and finishes with a capacitive load and the time-domain reflectometer.
What happens when a step is launched
A source with internal resistance switches on at into a lossless line of characteristic impedance and one-way delay , terminated in (The Distributed Line). At first the source cannot know what is at the far end; it sees only the line's , so it launches a wave set by a voltage divider:
At the wave reaches the load, and a reflected wave starts back. At it reaches the source, where is sent forward again, and so on. The voltage at any point is the sum of all waves that have passed it. The total at the load after many round trips is a geometric series,
which is the DC divider, as it must be. The line only changes how the final value is reached: monotonically when , with alternating overshoot and undershoot when .
Worked example: a 25 Ohm driver into a 150 Ohm load
Given: a step, , a lossless line with , (the ee-transmission-line lab's defaults).
Find: , , , the voltages at both ends up to , and the final value.
Solve:
Check: , so the load overshoots (), undershoots () and converges, each error one sixth of the last. A logic input with a threshold would see a glitch; matching either end stops it.
Interactive: the same line in the lab
At the lab reads , , , at the source end, at the load and a final value of . Try : one reflection and done. Try with an open end: , a square wave that never settles ("Final value: none").
In Python: the bounce diagram
import numpy as np
import matplotlib.pyplot as plt
VS, RS, Z0, RL, TD = 5.0, 25.0, 50.0, 150.0, 1.0 # V, Ohm, Ohm, Ohm, ns
gl, gs = (RL - Z0) / (RL + Z0), (RS - Z0) / (RS + Z0)
v1 = VS * Z0 / (RS + Z0)
print(f"Gamma_L = {gl:.4f}, Gamma_S = {gs:.4f}, V1 = {v1:.4f} V, final = {VS*RL/(RS+RL):.4f} V")
# waves: forward wave k leaves the source at 2k*TD, backward wave k leaves the load at (2k+1)*TD
waves, a = [], v1
for k in range(4):
waves.append(("forward", 2 * k * TD, a))
waves.append(("backward", (2 * k + 1) * TD, a * gl))
a *= gl * gs
def v_end(x, t):
"""Voltage at x = 0 (source) or x = 1 (load) at time t (in ns): sum of the waves that have arrived."""
v = 0.0
for kind, t0, amp in waves:
arrive = t0 + (x if kind == "forward" else 1 - x) * TD
if t >= arrive:
v += amp
return v
print(" t (ns) v source end v load end")
for t in [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 7.5]:
print(f"{t:6.1f} {v_end(0, t):10.4f} {v_end(1, t):10.4f}")
# lattice (bounce) diagram: position across, time down
fig, ax = plt.subplots(figsize=(5, 4.5))
for kind, t0, amp in waves:
x0, x1 = (0, 1) if kind == "forward" else (1, 0)
ax.plot([x0, x1], [t0, t0 + TD], color="C0" if kind == "forward" else "C1")
ax.text((x0 + x1) / 2, t0 + 0.5 * TD - 0.15, f"{amp:+.3f} V", ha="center", fontsize=8)
ax.set_ylim(8, 0)
ax.set_xticks([0, 1], ["source (x = 0)", "load (x = l)"])
ax.set_ylabel("t (ns)")
ax.set_title("Bounce diagram: Rs = 25, Z0 = 50, RL = 150 Ohm", fontsize=10)
plt.show()Gamma_L = 0.5000, Gamma_S = -0.3333, V1 = 3.3333 V, final = 4.2857 V
t (ns) v source end v load end
0.5 3.3333 0.0000
1.5 3.3333 5.0000
2.5 4.4444 5.0000
3.5 4.4444 4.1667
4.5 4.2593 4.1667
5.5 4.2593 4.3056
7.5 4.2901 4.2824
Cross-check with SPICE
ngspice's T element is an exact lossless line (it solves the same wave equation with delays, not a ladder of lumped parts). The deck applies a step with a rise and prints both ends halfway between arrivals:
cat > bounce.cir <<'EOF'
* 5 V step through 25 Ohm into a 50 Ohm lossless line (TD = 1 ns) ending in 150 Ohm
VS src 0 PWL(0 0 10p 5)
RS src in 25
T1 in 0 out 0 Z0=50 TD=1n
RL out 0 150
.control
tran 5p 8n
foreach tt 0.5n 1.5n 2.5n 3.5n 4.5n 5.5n 7.5n
meas tran vin find v(in) at=$tt
meas tran vout find v(out) at=$tt
echo "t = $tt: v(in) = amp;vin V, v(out) = amp;vout V"
end
.endc
.end
EOF
ngspice -b bounce.cir 2>&1 | grep '^t ='t = 0.5n: v(in) = 3.33333 V, v(out) = 0 V
t = 1.5n: v(in) = 3.33333 V, v(out) = 5 V
t = 2.5n: v(in) = 4.44444 V, v(out) = 5 V
t = 3.5n: v(in) = 4.44444 V, v(out) = 4.16667 V
t = 4.5n: v(in) = 4.25926 V, v(out) = 4.16667 V
t = 5.5n: v(in) = 4.25926 V, v(out) = 4.30556 V
t = 7.5n: v(in) = 4.29012 V, v(out) = 4.28241 V
Hand calculation, Python, the lab and SPICE agree to every digit they share.
Reactive loads and the TDR
A capacitor at the end of a line (an IC input, a via, a connector) is a short circuit at the instant the wave arrives () and an open circuit later (), so the reflection moves smoothly from one to the other with the time constant of the capacitor and the line, . With a matched source, the load voltage is and the source end shows a dip that starts at :
cat > capload.cir <<'EOF'
* matched 50 Ohm source, 1 ns line, 10 pF load (an IC input pin)
VS src 0 PWL(0 0 10p 5)
RS src in 50
T1 in 0 out 0 Z0=50 TD=1n
CL out 0 10p
.control
tran 2p 6n
meas tran t_load when v(out)=3.16 rise=1
echo "load reaches 63.2 % of 5 V at t = amp;t_load s"
foreach tt 1.5n 2.01n 2.5n 3n 4n
meas tran vin find v(in) at=$tt
echo "t = $tt: v(in) = amp;vin V"
end
.endc
.end
EOF
ngspice -b capload.cir 2>&1 | grep -E '^(load|t =)'load reaches 63.2 % of 5 V at t = 1.50485E-09 s
t = 1.5n: v(in) = 2.5 V
t = 2.01n: v(in) = 0.175143 V
t = 2.5n: v(in) = 3.14208 V
t = 3n: v(in) = 4.31651 V
t = 4n: v(in) = 4.9075 V
With the load reaches at (plus for the half of the source's rise time), and the source end falls almost to zero at before recovering with the same . That dip is the signature a time-domain reflectometer (TDR) looks for: it launches a fast step, watches the source end, and reads each discontinuity's position from its arrival time () and its nature from the shape (a step up for a resistance above , a dip for a capacitance, a bump for an inductance). Cable faults are located the same way.
Guided lab: see the reflections
Hand calculation. The bounce sums for your cable: , , , .
Simulation. The Python script or the lab with your values.
What you would measure. Use of RG-58 (, so a scope of or more resolves it) driven by a function generator's square wave at through its output, with a BNC T-piece at the scope input. With the far end open, the near end shows half the generator's open-circuit voltage for , then the full value (, ). Short the far end: the near end drops back to zero after . Terminate it in : a clean step. Insert in place of the generator's match by adding a series resistor at the source, and the load end (second channel) shows the staircase. Expect step heights within about (cable loss and the scope's input are the main errors) and the timing to .
Hazards and safe setup. Signal-generator levels only.
Pitfalls
- Using the DC divider for the first step. The source sees , not , until .
- Forgetting the sign of . A low-impedance driver () has and causes ringing on a high-impedance load.
- Edge rate decides, not clock rate. A clock with edges needs line treatment on any trace longer than about one sixth of (a common rule of thumb).
- Reading TDR distances. The round trip is ; distance is .
Practice
- A CMOS driver () drives a trace to a high-impedance input. Find the first two load voltages.
- What series resistor at the driver of problem 1 removes all ringing at the load?
- A TDR on a cable with sees a reflection after the launch. How far away is the fault?
Answer
- , , . Load: at , then at (the wave doubles at the open end). In reality the input's protection diodes clamp the overshoot.
- : (series termination). The launched wave is , doubled to at the open end, absorbed when it returns.
- .
Test yourself
A step with enters a line. The launched wave is…
For that line with a load, the load voltage at and is…
- then
- then
- then
- then
Which condition makes the load voltage ring (overshoot and undershoot) before settling?
A TDR trace shows a brief dip at a point along a cable. The discontinuity there is most likely…
- an open circuit
- a series inductance
- a shunt capacitance
- a matched load