ENع
→Eye diagrams
الدرس 58 · Digital communications: bits on a wire

Eye diagrams: ISI and noise margin

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

15 دقيقة10 خطوات5 أسئلةAdvanced
عن هذا الدرس

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".

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 58 · تفاعلي
01 / 10

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"
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. 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"
  2. 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)
  3. 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 eye
  4. A 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 centre
  5. ISI 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"
  6. 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")
  7. 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")
  8. 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 rate
  9. Width 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 recovery
  10. Draw 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)

اختبار يتاح بعد الخطوة الأخيرة.