Email: [email protected] Phone: 707-456-9802

Signal Integrity Analysis

Signal Integrity Analysis

What is Signal Integrity?

With every passing day more and more designs employ high speed board connections. Sometimes they are USB 2.0, sometimes they are PCI Express, sometimes they are interfaces to DRAM, and so on. These innovations offer huge advantages to the designer and to the customer; however their high speed signaling must be respected and the design rules carefully followed.

High speed interconnects are very sensitive to several manufacturing parameters that can make or break your product.

Among those are:

  • Reflections in interconnects
  • Signal losses within the laminate
  • Electromagnetic radiation from the traces
  • Quality of ground

A specification of a high speed connectivity standard, like PCI Express, spends tens of pages discussing these issues, and many standards define very detailed requirements for the entire design. If these requirements are not met the connection will be unreliable or completely unusable because the signals will be too distorted or too attenuated when they reach the receiver. Signal Integrity Analysis determines how much the signals will be distorted and whether that level of distortion is acceptable for a given connection. This is done by means of computer simulation, before the board is manufactured.

How Signal Integrity is Achieved

Signal Integrity should be considered by the designer from the moment he starts drawing the schematic and until the moment his board passes the final test. For example, the designer must be aware of trace length restriction or of proper selection of connectors.

Once the schematic is done, the PCB layout is then performed using numerous constraints placed on some nets; these constraints typically are derived from the standard on that particular connectivity. For example, USB 2.0 standard tells the designer that the traces should have a differential impedance of 90 Ohm. To achieve that, the layout designer selects a suitable stackup (they are offered by PCB manufacturers) and then sets up rules that define what traces may go on what layer, and what their geometry should be, and so on.

Once the layout is done, it is a very good idea to verify, by means of computer simulation, that the board meets the requirements of the standard. Many standards offer no help in dealing with interfering signals, breaks in the ground plane, or other complications of a practical board. So it may be necessary to simulate the routed board to check that the critical high speed traces are compliant with the standard. This simulation is called Signal Integrity Analysis.

How the PCB Affects High Speed Signals

We will illustrate typical signal integrity problems using a simple example. Let’s make two differential traces, one that is properly routed and matched, and another that is not of controlled impedance at all. Then we’ll see what happens. The schematic of the example is below:

Simple Trace Schematic

The routed PCB for this example:

Simple Trace PCB

For this example, we chose 90 Ohm differential pairs, and only one of them is correctly made. This design requires 8 mil trace, 9 mil space, and the microstrip layout with thickness of laminate slightly less than 5 mil. Below is the cross-section of the “good” differential pair:

Simple Trace cross-section

The “bad” connection, to be compared to the “good” one, is routed with traces of wrong width; the separation of those traces is not what it should be, and it varies too.

With these traces prepared, we will now apply test signals to connectors J1 and J3, and will terminate J2 and J4 with 90 Ohm resistors. We will also connect the differential probe of the oscilloscope to J2 and J4. All this can be simulated in software, such as HyperLynx™; it is sold by Mentor Graphics and is well integrated with the rest of PADS tools.

The stimulus that we use is a nearly ideal driver, with 10.980V/100.000ps rise and fall time, and the amplitude is 0.5V. The pair is fed with two such drivers, phase of one shifted 180° from another. We choose the data rate to be 2 Gbps (the bit interval is 0.5 ns.) Below is the eye diagram of the “good” connection:

Eye diagram of the good trace

This eye diagram represents an excellent signal integrity. Now let’s move the probes of the oscilloscope to the other, poorly designed, connection and repeat the simulation:

Eye diagram of the bad trace

This eye diagram is completely unacceptable – the signal enters prohibited areas of the mask. This happens because the impedance of the “bad” pair is not right for the termination, and we can’t change the termination because it is defined by the external equipment.

Board Design with Signal Integrity in Mind

Now we will demonstrate on a simple example how high speed boards may be designed. The schematic below implements a small two-port USB hub; we omitted power switching for clarity.

Sample USB 2.0 Hub Schematic

In the next step of the design process the board stackup is selected. For this sample board, we choose an inexpensive 4-layer construction, with inner layers allocated for planes and outer layers usable for impedance controlled traces.

Board stackup designer view

Now the designer can calculate proper trace widths and distances between traces for differential pairs. For this design we will aim for 90 Ohm differential impedance. A trace width calculator tells us that for our stackup we should use trace width 8 mil and separation of 6.2 mil, that will result in impedance that is very close to 90 Ohm.

With these decisions made, the printer circuit board designer performs parts placement and routes the board. Below is the board routed for this exercise. High speed differential pairs are clearly seen on the top layer.

Sample USB 2.0 Hub Board

If the Signal Integrity Analysis is not required, the board at this point would be ready to go to manufacturing. To perform the Signal Integrity Analysis, the board is transferred into a specialized CAD software that can do simulation of routed traces, vias, and of coupling effects of neighboring traces – HyperLynx™ in this case.

The Signal Integrity Analysis Workflow

Step number one is to import the routed PCB into HyperLynx™. It is then displayed on the screen. Note that only those traces are highlighted that (a) are selected and (b) that are sufficiently close to selected traces to warrant simulation. We can select different traces for simulation, but for this exercise we will focus only on the highlighted differential pair.

Sample USB 2.0 Hub Schematic

The stackup information is also transferred, and we can review it. Note that HyperLynx™ independently calculated impedances of traces and we can see that our original design decisions were correct:

Board stackup designer view

Immediately we are able to select any trace segment and verify the EM field around it. If we select a differential trace then coupling effects will be also calculated. Below is a plot of EM field around the input USB 2.0 differential pair:

Sample USB 2.0 Hub Board

Now we are ready to simulate the high speed connection from J1 to U1. We attach an ideal driver to the pins of the J1, then we attach a 90 Ohm terminator at input pins of U1, and we connect the oscilloscope probes to U1. Then we configure the measurement to be an eye diagram, with USB 2.0 TX compliance mask (as being more strict compared to RX mask,) and we select 2.0 ns as the bit period (USB 2.0 actually uses 2.083 ns bit period.). Below is the result:

Eye Diagram #1

What do we see? We see a marginal performance; traces of the eye diagram touch the mask. Will it work? Probably yes, in a controlled environment and with zero tolerance on all parts. Will you want to ship this? Most definitely not. The board, as it appears, has issues – and we wouldn’t know about them without simulation. If there are 100,000 boards on order already, the designer would be in serious trouble.

What can be done about this? There are two possibilities. We can tweak values of some components on the board, and we can redo the board. The former option is appealing if boards are already made. The latter option is preferred if nothing had been ordered yet.

Let’s start with component tweaking and see how much it buys us. The serial termination resistors R11 and R12 are currently 18 Ohm, and we see that the signal level is too low. We have to live with the ripple (since we are stuck with the board,) but we need to raise the level a bit. We can do that by reducing these resistors to, say, 8.2 Ohm:

Eye Diagram #2

It is better now; we managed to center the ripple within the allowed zone of the mask. Now the trace is compliant, and we have some margin. This is the solution if you must use the boards as they are.

A better solution is to fix the board, though. Then ripple would be reduced, greatly improving immunity to the noise and to the drift of components’ parameters. Before we make any changes, we need to look closely at the board and understand what is actually wrong with it.

There are following issues with this particular trace:

  1. The resistors R11 and R12 have large pads; this is because the resistors themselves, 1206, are large. But these pads create impedance bumps. We must use physically smaller components here, with pads that are not much wider than 8 mil. Perhaps 0402 would be adequate; we don’t want to deal with smaller parts.
  2. The traces between the pins of J1 and R11,R12 are not impedance controlled. Yes, they are short, but we do have problems, and we need to clean up all the defects if we want to get a properly designed circuit.
  3. There is a long stub hanging off of the J1.3 pin and going to R3. This stub should be very short, and it would also help if R3 is also physically small.

We implemented these changes, and the new PCB is shown below:

Corrected sample USB 2.0 Hub Board

Here are results of the simulation done on the improved board:

Eye Diagram #3

As we can see, the signal is now nearly flawless, just as we’d like it to be. This simulation indicates that this particular differential trace is now done right.

Finally, the developer may want to look for an IBIS model of a particular component and plug it into the simulation. IBIS models are created by measuring signals that the IC produces and responds to. Large tables of these measurements then are grouped into one file. It is expensive for an IC manufacturer to create and maintain models; because of that not all ICs have models, and not all models are usable.

For this example, we want to drive the pins of J1 with a real USB source, and we picked Cypress Semiconductor CY7C65640 USB 2.0 Hub for that simulation. We changed the model that drives J1.2 and J1.3 and ran the eye diagram again. The results are shown below:

Eye Diagram #4

The simulation shows perfect matching. The ripple completely disappeared because the driver within the CY7C65640 is twice as slow as the one we used before, but it is the optimal match to the requirements of the USB 2.0 standard. The signal level is also within the mask for the USB 2.0 transmitter. We can only declare that this trace on our example board is now perfect.

Conclusion

Design of high speed interfaces is sometimes complicated, and many analog parameters need to be taken into account by the design engineer. Mistakes in the design can be expensive. A signal integrity analysis, done before the boards are sent to manufacturing, can help in detection of those mistakes. Modern software allows to simulate boards and detect problems that otherwise may remain undetected until there is no time left in the project to make changes.