Sunday, October 18, 2009

Differential Line Skew

One of the frequently asked questions is "what is the allowed skew between the traces in a differential pair". Sometimes the skew requirements for a differential interface are provided in its specifications. Thus, the TIA/EIA-644 or LVDS standard actually limits the maximum difference of the trace lengths within a differential pair link to 0.100". However, in majority of the high-speed interfaces the skew between lines in differential pair is not defined. Therefore, the question is what other parameters that are specified may be used in order to determine the skew within a differential pair.

Let us consider the effect of a trace skew in a differential pair. Assuming that there is no transmitter skew the signal on one branch of the differential pair will reach receiver before or after the signal on the other branch.


Figure 1. Signal distortion due differential traces skew

As the Figure 1 shows the difference of trace length in a differential pair produces distortion of the differential signal. This distortion clearly indicates that for the time that it takes the signal on the longer branch to catch up with the signal on the shorter one the signal from the differential mode switches into the common mode (when both branches of the differential line have the same potential) of propagation. Obviously, this switch distorts the signal and affects its integrity. Understanding the type of the distortion and how one may estimate the effect of the skew on differential signal may help us to address the original question and estimate the interface tolerance to the skew of differential traces.
Let us now look into how the parameters of interface media are specified according to the interface standards. The Figure 2 shows and example of transmitter and receiver specifications in form of the Eye Diagram Pattern masks as provided in the PCI Express standard for 2.5Gbps application. These signal masks define the signal amplitude and phase limits at the receiver and transmitter. The phase limits specified by these masks identify the allowed phase deviation of the signal and define the time window when signal shall be within its required range. The signal's phase deviation is called jitter and the jitter parameter is one of the major parameters defined for the high-speed interfaces. Obviously, the increase of jitter reduces the time available for the signal detection.

As it is illustrated in Figure 1 the length difference of differential traces increases the interface jitter. Of course, for the case of very high-speed interfaces, when the rise and fall times of the signal become comparable to the signal cycle the jitter increase also reduces the signal amplitude, thus closing the signal eye in the Receiver's input Eye Diagram in horizontal and vertical directions.


Figure 2. Interface performance specification
The speculation in Figure 2 allows us to define the methodology for analysis of trace length difference in a differential pair as a part of the interface jitter analysis. There are multiple factors that may affect the interface jitter performance: transmitter output jitter, interface media loss, Inter Symbol Interference (ISI), crosstalk, other noise sources like Simultaneous Switching Noise (SSN) and so on. Once the jitter budget is defined as a part of the standard and all other sources of jitter are defined the trace skew requirements may be addressed as well. In some cases the limitations of the physical design, trace length tolerance, connector pins length variations and so on may define the limit for the interface lines skew. In such cases the other noise sources and interface length should be controlled in order to achieve the overall interface jitter requirements as defined in the interface specification.

There are some applications where skew within differential pair of interface signals is indirectly specified via different parameters. One of the important examples of such specifications is the Ethernet standard definition of the interface between the PHY module and the Ethernet cabling plant – MDI (Medium Dependent Interface). The 1000BASE-T requirements define MDI impedance balance (section 40.8.3.2, IEEE Std. 802.3-2005) as follows:



By calculating the impedance imbalance due to the MDI trace length difference in differential pairs utilizing the lumped parameters of the traces unit length one may determine whether design of the 1000BASE-T MDI section meets the requirement that specified in the same section of the IEEE 802.3 Standard or determine the skew value that satisfies this requirement.

Differential Impedance

Nowadays it is not unusual to use differential signaling. Majority of high-speed interfaces are using the differential signaling. However, many engineers are not clear on the nature of one of the major parameters of differential lines – the differential characteristic impedance.

Let us now consider the specific aspects of signal propagation on differential transmission line. The signals on two wires of a differential line may have any of the infinite number of possible relationships. If the signal and signal-not lines are coupled the signals on both lines will affect each other and distort their waveforms. There are two modes of signals relationship, however, when signals reach their destinations undistorted: the differential or odd mode and common or even mode. In case of differential mode the signals are exactly 180 degree out of phase, and in case of common mode the signals are exactly in phase. If the branches of differential line are geometrically slightly different the differential signal will arrive distorted to destination. That means that geometry of lines defines the modes that will carry the signals to the end undistorted. For practical purposes we will consider symmetrical or balanced lines.

In case of the single ended lines we want to minimize the mutual components in order to reduce the effect of one line on another, or crosstalk. For differential application the mutual parameters are defined and should be controlled. We may start with general equations that govern performance of two lines with mutual capacitance and inductance.

The first two equations express voltage as a function of current with help of self and mutual inductances.
V1 = L1 * dI1/dt + Lm * dI2/dt (1a)
V2 = Lm * dI1/dt + L2 * dI2/dt (1b)
The second two equations represent current as a function of voltage with help of capacitances from the lines to reference plane and between the lines themselves.
I1 = C1 * dV1/dt + Cm * d(V1 - V2)/dt
I2 = C2 * dV2/dt + Cm * d(V2 - V1)/dt
or
I1 = (C1 + Cm) * dV1/dt - Cm * dV2/dt (2a)
I2 = - Cm * dV1/dt + (C2 + Cm) * dV2/dt (2b)
Where:
L1 and L2 are respective self-inductances of each branch of differential line
Lm is a mutual inductance between two branches of differential line
C1 and C2 are respective self-capacitances of each branch of differential line to ground
Cm is a mutual capacitance between two branches of differential line

Now we may address the Odd or Differential signal propagation mode, where I1 = -I2; V1 = -V2. From equations (1) and (2) for one branch of differential lines:

V1 = L1 * dI1/dt - Lm * dI1/dt => V1 = jw(L1-Lm)*I1
I1 = (C1 + Cm) * dV1/dt + Cm * dV1/dt => I1 = jw(C1+2Cm)*V1

From these two equations it is easy to obtain the relationship between the voltage and current, which represents the characteristic line impedance of one branch of differential line and that is called an Odd characteristic line impedance:

Zodd = V1/I1 = Ö[(L1 – Lm)/(C1 + 2Cm)]

Also considering that we are dealing with symmetrical lines and, therefore, L1 = L2 = L and C1 = C2 = C, than:

Zodd = Ö[(L – Lm)/(C + 2Cm)] (3)

In order to determine the differential characteristic impedance we may write equations for both branches of the differential line:

V1 = Zodd * I1
V2 = Zodd * I2

Considering that differential voltage between the signals on branches of differential line is the difference between voltages on individual branches, than:

Vdiff = V1 - V2 = Zodd * (I1 -I2), and since I1 = -I2 = I, than:
Vdiff = Zodd * 2 * I = 2*Zodd * I

Therefore:

Zdiff = 2*Zodd = 2*Ö[(L – Lm)/(C + 2Cm)] (4)


Comparing Zodd expression (3) to the characteristic line impedance for a single ended line Zse = Ö(L/C) it is easy to notice that Zodd < Zse. That may be assessed intuitively as well. If two lines are coupled a current will exist between these lines in addition to the current between the line and reference plane and since for the same signal voltage level the current is higher, therefore, the line impedance is the lower. If we move the branches of differential line far away from each other, so the Lm = 0 and Cm = 0, then Zodd = Zse = Ö(L/C) and Zdiff = 2* Zse = 2*Ö(L/C), which is also a valid way to construct a differential line in some circumstances.

Friday, October 16, 2009

Lumped Parameter on Transmission Line

I am often asked questions related to variations and non-uniformities in characteristic impedance of the signal traces on PCB.

Considering that all high-speed differential interfaces are defined in specifications and standards these documents may have useful information for the design of various deviations, like connectors requirements or return loss of the packages. With increase of the signal bandwidth the PCB structures that could be neglected at lower data rates have become quite important. For example, the parameters of the packages should be considered (and very often the models of ICs do not include them). Or the PCB area under packages and connectors (breakout areas) are so densely populated with vias that traces routed in this area may have parameters quite different than in the free routing area. Another example of such deviations could be a via in a trace for transitions between different layers. When we are dealing with data rates above 3 Gbps the accurate analysis of these deviations is imperative. For the lower data rates the interface analysis may utilize a simplified approach replacing the actual line characteristics with lumped parameters like capacitance or inductance or if needed by impedance variation.

Of course the proliferation of signal integrity simulation tools allows an engineer to incorporate the lumped parameters into the model and verify the effect of these parameters. However, sometimes an engineer may want to understand the reason for the behavior of certain structure in order to determine the course of actions. Quite often one may want to understand what kind of parameter may cause certain signal behavior. For example, an engineer may want to figure out the effect of adding via capacitance or adding some inductance by clearing the reference plain around via and so on. Another situation may call for a quick analysis without a simulation tool or verification of simulation tool performance. In all these cases it may be beneficial to understand how to calculate an addition of small lumped parameters to an interface line.

Let us consider an example of addition of extra capacitance in the middle of the trace. Adding it at one of the line ends is too simple because the parameters of addition are just added to the lumped circuit parameters of driver or receiver.

To begin with we may check the reflection coefficient of this transmission line with added lumped parameter C and its effect upon the signal. Using the Laplace transform it is easy to show that:

r(s) = (1/sCIIZ0) – Z0)/(1/sCIIZ0) + Z0) = – s/(s + 2/CZ0)

Consider an incident signal ramp: Vi(t) = (V/tr)[t*U(t) – (t-tr)*U(t-tr), which may be expressed using the Laplace transform as: Vi(s) = V/trs2 – Ve-trs/trs2 = (V/trs2)*(1 – e-trs)

Where:
II – defines parallel circuits, for example: 1/sCIIZ0 means value of capacitor parallel to transmission line impedance
t – time domain argument
s – Laplace transform argument
C – lumped capacitance
Z0characteristic impedance of the line
V – amplitude of the incident wave
trtransition time
U(t), U(t-tr) – unity functions
Vi(t) – incident signal
Vr(t) – reflected signal

Therefore, the reflection amplitude may be estimated as:

Vr(s) = r(s) * Vi(s) = –(V/tr)*[s/(s + 2/Z0C)]*(1/s2)*(1 – e-trs)] =

–(V/tr)/[s(s + 2/Z0C)]+(V/tr)*e-trs/[s(s + 2/Z0C)]

Using the inverse Laplace transform:

L-1{–(V/tr)/[s(s + 2/Z0C)]} = V*(Z0C/2tr)*[e–(2/Z0C)*t – 1]

L-1{(V/tr)*e-trs/[s(s + 2/Z0C)]} = –V*(Z0C/2tr)*[e–(2/Z0C)*(t-tr) – 1]

Therefore:

Vr(t) = V(Z0C/2tr)*[e–(2/Z0C)*tu(t) – e–(Z0/2C)*(t-tr)u(t-tr))]


The result has shown a small negative pulse, which those who are used to deal with Time Domain Reflectometry (TDR) measurements may recognize for the case of additional capacitance on the line. This pulse will be added to the edge of the incident signal and affect the rise time of the signal that, of course, will be seen as an additional deterministic jitter.

Similar analysis methodology may be used if additional inductance or combination of inductance-capacitance-resistance is added anywhere on the line. Of course, I am using the Laplace transforms just as a convenient way to simplify the differential equations (and transform tables are readily available). Other solution methods are equally usable.

As it was mentioned above this analysis is a simplified method that is sufficient to the applicable data rates and it may allow engineer a quick evaluation of the effect of any circuit addition to the transmission line. Of course, the topic of how to determine the parasitic lumped parameters added to the line is not covered in this paper.

Thursday, October 15, 2009

Series Resistor Analysis

It may not be widely recognized but hardware design engineers have encounters with signal integrity or SI issues practically on a daily basis.
On one of recent projects I have encountered a line termination application that is slightly different from usual techniques. The usual ones, like pull-ups and Thevenin equivalent circuits at the end of interface line or series resistors next to driver, are well understood. But the Micron Technology Application Note TN-46-14 has the following line termination recommendation for DDR memory data line termination: "For bidirectional I/O signals, such as DQ (Data line – M.G.), minimize ringing, overshoot, and undershoots by placing the RS halfway between source and sink devices." That configuration is shown in Figure 1.

Figure 1. Resistor in the middle of the line


So… let us look why and how this approach works. The purpose of the series termination resistor is to reduce the value of the signal amplitude and rely upon reflection from the end of the line to bring the signal back into the range appropriate for receiver. The lower amplitude is beneficial for limiting reflections, crosstalk and emissions. The series resistor in the middle of the line is supposed to imitate the performance of a typical application when series resistor is placed close to the driver and, therefore, we should compare these two cases.

Figure 2. The typical case of series resistor is very close to the driver



The series resistor immediately after the driver, as shown in Figure 2, increases the driver's output resistance value and thus reduces the signal amplitude at point A calculated from the voltage divider generated by resistances Rout+Rs and Z:
VA = V · Z/( Z + Rout + Rs) (1)
In the case of the resistor in the middle of the line, as shown in Figure 1, the point C is in the same position (in front of transmission line segment before receiver) as the point A in Figure 2. Therefore, we should compare the signal amplitudes at these points.
Let us consider the middle of the line case. The circuit configuration as seen from the point A is similar to one in the Figure 2 but without the series resistor Rs. Therefore:
VA = V · Z/(Z + Rout) (2)
After the point A the signal with amplitude VA traverses the transmission line to the point B (see Figure 3). It reflects from the point B, where Reflection Coefficient is:
r = [(Z+Rs)-Z]/[(Z+Rs)+Z]
Therefore, the signal amplitude at point B is:
VB = VA · [1 + r] = VA · {1 + [(Z+Rs)-Z]/[(Z+Rs)+Z]} = VA · 2(Z+Rs)/(2Z+Rs) (3)

Figure 3. Transmission line discontinuity

The signal amplitude at point C may be calculated from the divider as it is shown in Figure 4:
VC = VB · Z/(Z + Rs) (4)

Figure 4. Voltage divider created by series resistance and transmission line impedance


Combining the expressions for VA, VB and VC we obtain the expression for VC as a function of the input value V:
VC = V · Z/( Z + Rout + Rs/2 + RoutRs/2Z) (5)
As it could be seen comparing the expressions (5) and (1) the Rs
member of denominator in expression (1) is replaced by the (Rs/2 + RoutRs/2Z ) in (5). That difference may show us the effect of moving the series resistor from the position near the driver to the middle of the transmission line.
The effect of the change clearly depends on the value of driver's output impedance. Consider that Rout of a high-speed transmitter circuit is relatively low. As a rule it is much lower than the value of line characteristic impedance that typically ranges between 45 Ohms and 65 Ohms. Therefore, depending on the value of Rout in respect to Z the range of the signal amplitude at point C varies between: VC = V · Z/( Z + Rout + Rs/2) for Rout
approaching 0, which is slightly larger than VA in (1), and VC = V · Z/( Z + Rout + Rs) for Rout = Z, which is the same as VA in (1).
The analysis shown above is beneficial in several ways:
  • it shows that the series resistor placed in the middle of the transmission line does perform its duty of signal amplitude reduction
  • it provides engineer with methodology to calculate the series resistor value
  • it also shows the generic approach toward analysis of the high-speed interfaces with series termination resistors