Eye diagrams: ISI and noise margin
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
An eye diagram stacks two-bit slices of a received waveform on one screen, so you can judge every bit at once. Sixteen bits go through an RC wire and a one-bit averaging filter; an oscilloscope triggered by the symbol clock overlays 14 slices into an eye. A perfect wire gives an eye 2.00 V tall. Intersymbol interference pinches it to 1.28 V, a slower wire to 0.60 V, and noise blurs it. The eye's height at the sampling instant is the noise margin, which sets the error rate through the Q function; its width shows how much clock error you can afford. The Hardware lesson "Signal integrity" shows what an eye looks like; here it is read for numbers. It builds on "Inside a digital communication system", "Intersymbol interference" and "The matched filter".
The waveform before the sampler
Sixteen bits leave as ±1 V pulses, 1 ms each, through an RC wire (τ = 0.2 ms). The receive filter averages each bit. Its output y(t) wiggles up and down. Is every bit safely clear of 0 V? Hard to tell.
bits 0100011101101111
(the word "Go" in ASCII, MSB first)
symbols 1 -> +1 V, 0 -> −1 V, NRZ, Tb = 1 ms
wire RC low-pass, τ = 0.2 ms
filter average over one bit (1 ms box)
y(t) is the receive-filter output: the
voltage the sampler would read at
t = 1, 2 … 16 ms
y lags the bits by the 1 ms average:
bit k is read at the END of its bit
time, so on the plot each sample sits
between two bit labels
the whole link: "Inside a digital
communication system"اقرأ الدرس خطوة بخطوة
The waveform before the sampler
Sixteen bits leave as ±1 V pulses, 1 ms each, through an RC wire (τ = 0.2 ms). The receive filter averages each bit. Its output y(t) wiggles up and down. Is every bit safely clear of 0 V? Hard to tell.
bits 0100011101101111 (the word "Go" in ASCII, MSB first) symbols 1 -> +1 V, 0 -> −1 V, NRZ, Tb = 1 ms wire RC low-pass, τ = 0.2 ms filter average over one bit (1 ms box) y(t) is the receive-filter output: the voltage the sampler would read at t = 1, 2 … 16 ms y lags the bits by the 1 ms average: bit k is read at the END of its bit time, so on the plot each sample sits between two bit labels the whole link: "Inside a digital communication system"A scope cuts two-bit slices
An oscilloscope is triggered by the symbol clock, once per bit. Each tick it draws a 2 ms slice of y(t), centred on that bit's sampling instant. One slice alone tells us little.
trigger the symbol clock, every Tb = 1 ms sweep 2 Tb = 2 ms wide slice k shows y(t) for k ≤ t ≤ k + 2 ms its centre (1 ms on the scope) is the sampling instant of bit k, t = k + 1 ms (the end of bit k: y lags the bits by the filter, so the centre line falls between two bit labels) 14 full slices fit in 16 bits (k = 1 .. 14)Stack the slices: an eye
Now the scope keeps every slice on screen. All 14 land on the same axes. The lines cross between bits and spread apart in the middle, around a hole. That shape is the eye diagram.
persistence: old slices stay on screen the 14 slices overlaid: lines cross 0 V about halfway between sampling instants: 0.50 and 1.50 ms on an ideal wire, a little later (0.67 and 1.67 ms) with this RC wire at 0 and 2 ms sit the previous and next bits' sampling instants: half-eyes widest gap near 1 ms (sampling instant) upper lines: slices whose centre bit is 1 lower lines: centre bit 0 the hole between them: the eyeA perfect wire: a wide-open eye
First, a wire with no low-pass at all. Each slice is then straight ramps between −1 V and +1 V. At the centre every 1 sits at +1 V, every 0 at −1 V: the eye is 2.00 V tall.
ideal wire: c(t) = s(t) the 1 ms average of NRZ pulses is a straight ramp from one level to the next eye height at the centre: +1 − (−1) = 2.00 V eye width: 1.00 ms (the whole bit) no ISI: every slice of a 1 passes through exactly +1 V at the centreISI pinches the eye
The RC wire makes each bit lean on the one before: intersymbol interference (ISI). A bit right after a change reaches only ±0.64 V. Each rail splits into several lines, and the eye shrinks to 1.28 V tall.
τ = 0.2 ms at the centre (the sampling instant): after a repeat y ≈ ±1.00 V after a change y = ±0.64 V eye height 1.28 V (64 % of 2.00 V) eye width 0.99 ms one line per bit history: ISI is pattern dependent. More in "Intersymbol interference"A slower wire nearly shuts it
Double the time constant to τ = 0.4 ms and the wire smears more. After a change a bit now reaches only ±0.30 V. The eye is 0.60 V tall: a much smaller target for the sampler.
τ = 0.4 ms (a longer or slower wire) eye height 0.60 V (was 1.28 V) worst bit ±0.30 V eye width 0.94 ms fixes: a faster wire, an equaliser, or pulses shaped so the tails are 0 at every sampling instant ("The Nyquist pulse and raised cosine")Noise blurs every line
Back to τ = 0.2 ms, now with white noise added on the wire. After the filter it has spread σ = 0.1 V. Each slice wobbles, so the thin lines become fuzzy bands and the hole gets smaller.
noise on the wire: σ = 0.5 V every 40 µs after the 1 ms average: σ/√25 = 0.1 V (this draw: 0.11 V) eye height in this picture: 1.11 V (was 1.28 V without noise) averaging over 1 ms is matched to the transmitted pulse: a good, simple choice (more in "The matched filter")Half the height is the noise margin
The threshold is 0 V, mid-eye. The noise margin is half the eye height: the closest level sits 0.64 V away, 6.4 σ. Gaussian noise crosses 6.4 σ with chance Q(6.4) ≈ 8×10⁻¹¹ per such bit.
eye height 1.28 V, threshold in the middle noise margin d = 0.64 V (worst bit, no noise) = threshold to the nearer inner rail noise spread σ = 0.1 V d / σ = 6.4 P(error) = Q(d/σ) = ½·erfc(d / (σ√2)) ≈ 8×10⁻¹¹ slower wire: d = 0.30 V = 3.0 σ Q(3.0) ≈ 1×10⁻³ a half-shut eye costs orders of magnitude in error rateWidth is the timing margin
Slide the sampling instant and the gap changes. It is widest at 1.12 ms, 1.45 V: 120 µs late, because the wire delays the pulses. Sample at 0.80 ms instead and it falls to 0.49 V. Steep sides punish clock errors.
opening vs sampling time (τ = 0.2 ms, no noise): 0.80 ms 0.49 V 1.00 ms (bit end) 1.28 V 1.12 ms (widest) 1.45 V 1.20 ms 1.39 V eye width (opening > 0): 0.99 ms ideal wire: 1.00 ms the RC wire delays every pulse, so the best instant moves later. Finding it is timing recoveryDraw an eye in Python
With numpy, two convolutions give y(t). sliding_window_view cuts it into 51-point windows, and [24::25] keeps one starting each bit: the 14 slices. Plotting them all together draws the eye.
import numpy as np import matplotlib.pyplot as plt from numpy.lib.stride_tricks import \ sliding_window_view as swv b = np.array([0,1,0,0,0,1,1,1, 0,1,1,0,1,1,1,1]) # 'Go' s = np.repeat(2*b - 1, 25) a = np.exp(-0.04 / 0.2) g = (1 - a) * a**np.arange(400) h = np.ones(25) / 25 n = np.random.default_rng(1).normal(0, 0.5, 400) t = np.arange(51) * 0.04 # ms c = np.convolve(s, g)[:400] y = np.convolve(c + n, h)[:400] eye = swv(y, 51)[24::25] plt.plot(t, eye.T) plt.show() >>> eye.shape (14, 51) (Python 3 with numpy and matplotlib; numpy's noise is a different draw)
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01How does an oscilloscope build an eye diagram from a stream of bits?
Each clock tick starts a sweep about two symbols long, and persistence keeps old sweeps on screen. Here 14 slices of 2 ms pile up on the same axes.
02With the ideal wire the eye is 2.00 V tall at the sampling instant; with the RC wire (τ = 0.2 ms) it is 1.28 V. What closed it?
There is no noise in this eye. A bit right after a change only reaches ±0.64 V because the previous, opposite bit still leaks in. That is ISI, and it splits each rail into several lines.
03The noise margin is 0.64 V and the filtered noise has σ = 0.1 V. What is the chance that Gaussian noise pushes such a bit across the 0 V threshold?
The margin is 6.4 standard deviations, and P = Q(6.4) = ½·erfc(6.4/√2) ≈ 8×10⁻¹¹. With the slower wire the margin is 3.0 σ and the chance rises to about 1×10⁻³.
04The RC eye is widest at 1.12 ms in the slice, not at 1.00 ms. Why?
The low-pass wire responds slowly, so every pulse arrives a little late. Sampling at 1.12 ms gives 1.45 V of opening instead of 1.28 V; sampling at 0.80 ms gives only 0.49 V. Finding the best instant is timing recovery.
05In the Python version, what does sliding_window_view(y, 51)[24::25] return?
sliding_window_view gives every 51-point window of y; the slice [24::25] keeps those that start at t = 1, 2, … ms. plt.plot(t, eye.T) draws one line per column of eye.T, that is one per slice.
المسرد
- Eye diagram
- Many short slices of a received waveform, each one or two symbols long and started by the symbol clock, drawn on top of each other.
- Eye height (opening)
- The vertical gap between the lowest '1' trace and the highest '0' trace at a given instant.
- Eye width
- The span of sampling instants over which the eye is open.
- Intersymbol interference (ISI)
- Part of one symbol's pulse spilling into the time of the next symbols, because the channel removes high frequencies.
- Noise margin
- How far the nearest noiseless level sits from the decision threshold at the sampling instant.
- Q function
- Q(x): the chance that a Gaussian value lands more than x standard deviations above its mean; Q(x) = ½·erfc(x/√2).
- Persistence
- An oscilloscope setting that keeps earlier sweeps on screen, so slices pile up.
- Timing recovery
- How a receiver finds the best sampling instant from the received signal.
الملاحظات والمصادر
- The bits, the bit rate (1000 bit/s), the RC time constants (0.2 and 0.4 ms) and the noise level (σ = 0.5 V every 40 µs) are chosen example values. Every curve and number in the figure is computed from this model; the noise is a fixed pseudo-random draw.
- The waveforms are computed on a 40 µs grid (25 points per bit), so each slice has 51 points and times move in 40 µs steps.
- Q(x) is the chance that a Gaussian value lands more than x standard deviations above its mean. The error figures assume the filtered noise is Gaussian with σ = 0.1 V and count only the worst bit pattern.
- J. G. Proakis, M. Salehi, Fundamentals of Communication Systems, 2nd ed., Pearson (ch. 10 digital transmission through bandlimited channels: ISI and the eye pattern; error probability of binary antipodal signals and the Q function)
- MIT 6.02 course notes, Bits, Signals, and Packets: ch. 9 Noise, ch. 10 Models for Physical Communication Channels, ch. 11 LTI Models and Convolution
- MIT OpenCourseWare 6.450 Principles of Digital Communications I (Fall 2006)
- Eye pattern (Wikipedia): forming the eye, eye opening and eye width
- Intersymbol interference (Wikipedia): band-limited channels and effects on eye patterns
- Q-function (Wikipedia): Q(x) = ½·erfc(x/√2)
- NumPy documentation: numpy.lib.stride_tricks.sliding_window_view (new in 1.20.0)
- NumPy documentation: numpy.convolve (default mode 'full', length N + M − 1)
- Matplotlib documentation: pyplot.plot (a 2D y draws one data set per column)
اختبار يتاح بعد الخطوة الأخيرة.