Curious Minds

Clear answers to science and history questions

Eye Diagram Test: Reading the Eye Mask

· 6 min read · Science

Many people assume an eye diagram test is a quick pass/fail check of a cable or chip, but it is really a way of drawing a signal so its timing and voltage behaviour become visible at a glance. The test overlays many short slices of a digital signal on top of each other, and a healthy result looks like an open eye: a clear gap in the middle where a receiver can reliably decide whether a bit is a 1 or a 0. The wider and taller that opening, the more margin the link has against noise and timing error.

What the Eye Shows

Each trace in the diagram is one bit period, or unit interval, captured and aligned to a clock. When hundreds or thousands of these traces are stacked, the lines spread into a band. The empty space in the centre is the eye opening. Its height tells you how much voltage margin remains at the sampling instant, and its width tells you how much timing margin remains before the decision point drifts into a transition.

Three measurements usually matter most:

MeasurementWhat it describesTypical concern
Eye heightVertical opening at the sampling pointAmplitude loss, noise, attenuation
Eye widthHorizontal opening at the decision thresholdJitter, rise time, intersymbol interference
Crossing pointWhere rising and falling edges meetDuty-cycle distortion, offset

The crossing percentage is often quoted alongside these. A crossing that sits well above or below the midpoint suggests the driver is not symmetric, which can shrink the usable window even when the raw amplitude looks fine.

The Mask and Pass or Fail

A mask is a forbidden zone drawn in the middle of the eye. It is shaped like a hexagon or a polygon, and its exact size comes from the standard the link must meet, not from the instrument. The test passes when no trace enters the mask. Because a single stray trace can fail an otherwise good signal, most procedures define a required number of unit intervals, often in the thousands or millions, and sometimes a bit-error-rate target that the mask represents.

This is where a common misconception causes trouble. People often think a clean-looking eye on the screen means the link is compliant. It does not. Compliance depends on the mask definition, the number of bits captured, the measurement bandwidth and the fixture or probe used. A visually open eye can still fail a tight mask once enough traces are collected, and a slightly messy eye can pass a loose one.

Two numbers decide most arguments: the sample count and the target error rate. If the mask corresponds to a bit error rate of one in a trillion, you cannot prove compliance with a thousand bits. The instrument needs enough captures for the statistics to mean something, and the test report should state the population behind the result.

Jitter, Noise and What Changes the Eye

Jitter is the horizontal smearing of the edges. It splits into random jitter, which never goes away and grows with the number of samples, and deterministic jitter, which comes from patterns, duty-cycle error or interference. Random jitter is described by a standard deviation, and the total jitter at a given error rate is estimated from that. More captures widen the measured eye closure because rarer edge positions show up.

Noise is the vertical equivalent. It comes from the driver, the receiver, crosstalk from neighbouring lanes and the power supply. A long cable adds attenuation that shrinks the eye height and slows the edges, which in turn narrows the eye width. Connectors and vias add reflections that appear as extra lines inside the eye, sometimes called ghosts.

Pattern length matters too. A short repeating pattern such as a clock-like sequence can hide intersymbol interference that a longer pseudorandom pattern exposes. Test standards usually name the pattern to use, and using a different one changes the result without changing the hardware.

A worked example

Suppose a link runs at 10 gigabits per second, so one unit interval is 100 picoseconds. The eye diagram shows an opening 60 picoseconds wide and 400 millivolts tall at the receiver. If the mask requires 50 picoseconds of width and 300 millivolts of height at the sampling point, the link passes with 10 picoseconds and 100 millivolts of margin. Now add a longer cable that slows the edges and pushes the width down to 45 picoseconds. The link now fails on width even though the height still clears the mask. The fix is equalisation or a shorter channel, not more drive amplitude.

Setting Up a Test You Can Trust

The result is only as good as the setup. Work through these points before trusting a pass:

  1. Confirm the standard, data rate and pattern the link must meet, and load the matching mask.
  2. Connect through a controlled fixture or probe with known bandwidth, and calibrate out the fixture loss where the procedure allows.
  3. Set the sampling scope or equivalent-time instrument to enough samples per unit interval, typically several points per bit, so the eye is not drawn from too few dots.
  4. Choose the decision threshold and clock recovery settings the standard specifies rather than leaving them at default.
  5. Collect the required number of unit intervals, then read eye height, eye width and mask hits from the report.
  6. Record the sample count, pattern, fixture and instrument settings alongside the result so the measurement can be repeated.

Menu labels and calibration steps differ between instruments and software versions, so check the instrument manual for the exact path rather than assuming a sequence. What stays constant is the principle: the mask, the pattern and the sample count must match the standard, or the number means little.

When the eye looks bad

If the eye is closed vertically, suspect attenuation, a weak driver or crosstalk, and check the channel loss first. If it is closed horizontally, suspect jitter, a slow edge or a clock recovery setting that does not match the data rate. If the crossing point is lopsided, check duty cycle and driver symmetry. If stray traces appear only with certain patterns, look for reflections and impedance discontinuities in the channel.

The same picture serves very different jobs. For a high-speed serial lane, the eye diagram is the main compliance view and the mask is tight. For a memory interface, the eye is often measured with a strobe or clock and the timing window is the focus. For an optical link, the eye is captured after conversion and the mask reflects optical modulation quality. For a simple low-speed bus, the eye may be wide open and the test is mostly a sanity check on rise time and overshoot.

In every case, ask what the mask represents. It encodes a target error rate, a measurement bandwidth and a defined pattern. Without those three, a pass is a picture, not a guarantee.

Questions that come up in practice

Does a bigger eye always mean a better link? Not necessarily. A link with excessive pre-emphasis can show a tall eye at the transmitter that collapses after the channel, so measure where the receiver actually samples.

Can I test with a short cable and assume the long one works? No. Channel loss and reflections change the eye, so test the length and fixture the product will actually use.

Why does my eye change between runs? Random jitter and noise make each capture slightly different, and the number of samples changes how much of that spread you see. Compare runs with the same pattern and sample count.

What if the mask is not specified? Then report eye height and width at the sampling point with the sample count and settings, and treat the result as a relative comparison rather than a compliance verdict.

In this article
  1. What the Eye Shows
  2. The Mask and Pass or Fail
  3. Jitter, Noise and What Changes the Eye
  4. Setting Up a Test You Can Trust
  5. Eye Diagrams for Different Links