ErinEast

Lay your EYES on this! – How to set up an Eye Diagram on an Oscilloscope

Blog Post created by ErinEast Employee on Sep 6, 2017

Eye diagrams are extremely helpful in testing the physical layer fidelity of clock or serial data, but many engineers don’t know:

  • What they are
  • Why they should use one
  • How to easily set one up

 

They actually aren’t that complex when broken down.

Eye diagrams can quickly give you insight into your signal, along with any jitter or anomalies that may be present that you might know exist.

 

What they are

What is an eye diagram? Eye diagrams are a layered view of every bit transition combination. There are eight of these in total. You can see in Figure 1 how each of these are layered to make up the eye. This provides a composite picture of the overall quality of a system’s physical layer characteristics like amplitude variation, timing uncertainties, or infrequent glitches.

 

Figure 1: Bit transition combinations

 

Why you should care

An eye diagram is used to detect jitter, but what is jitter and why is jitter bad?

 

Jitter can cause errors in the data that you are trying to transmit. If there is too much of it riding on your signal, the data that is sent will be interpreted incorrectly by the receiving end because the edge crossings aren’t occurring when they should be.

 

Figure 2: Jitter causes errors in the interpreted waveform.

 

How to create an eye diagram

One of the first things many people think when they see an eye diagram on an oscilloscope is “how do you get it to look like that?”

 

This layered view of bit transitions is not something that a normal trigger would be capable of displaying. The answer is, the oscilloscope utilizes a built-in clock recovery system. Clock recovery is actually pretty straightforward. Some signals have an explicit clock signal, and some have an embedded clock. An explicit clock can be driven right into one of the oscilloscope channels, but embedded clocks have to somehow be de-embedded, or recovered, hence “clock recovery.”

 

Figure 3: Clock recovery dialog

 

There are three different ways to utilize the clock recovery system, which all depends on how well you know the bitrate of your signal (the width of each bit):

  1. Fully automatic
    1. The oscilloscope will calculate the ideal bitrate (or nominal data rate) of your signal.
    2. This should be used when you have no idea what the bitrate is and you need the oscilloscope to figure it out.
    3. However, this method is only about 80% accurate.
  2. Semi-automatic
    1. In most situations, you should have a rough idea of what the bitrate should be. You can very easily make a bitrate measurement on the oscilloscope to find this estimation. This method allows you to enter your rough measurement and then use that information as a seed as it calculates the exact ideal bitrate.
    2. This method is significantly more accurate.
  3. Manual
    1. This method should be used if you know the exact ideal bitrate of your signal.
    2. This is the most accurate method of clock recovery.

 

There are a few other settings within the clock recovery menu. To learn more about these, make sure you check out episode 3, How to set up an Eye Diagram, and episode 5, How to Measure Jitter, of Scopes University video series.

 

Once you have your clock recovery system set up, all you have to do to set up the eye is press “auto setup”. You will see in just a few seconds that the eye diagram has begun to form. Over time, you will be able to see if there is any jitter or anomalies in your signal. Generally, you will want to let the test run for a longer period of time.

 

The longer you let it run, the more data is collected, and the more jitter, anomalies, or any infrequent events you can see.

Figure 4: Eye diagram with jitter

 

From here, you can analyze the eye diagram further by using the color grading key. This allows you to visually analyze the frequency of each edge crossing. You can also very easily turn on a histogram on the eye to determine whether the jitter is deterministic or random. This will help you decide if this is something you can fix with a phase locked loop filter or if you have to redesign the component. Perhaps this is a topic for the next blog, though!

Figure 5: Histogram of the eye diagram

 

To learn more about what I talk about here, check out these Scopes University videos.

Episode 3: How to set up an Eye Diagram

Episode 5: How to Measure Jitter

Outcomes