What is a differential pair?
A differential pair is two traces that carry one signal as equal and opposite voltages, such as USB D+ and D-. The receiver reads the difference between them, so noise that couples equally onto both traces cancels. To work, the two traces must be routed together, at the same length and with a controlled spacing and impedance.
Why route signals as pairs?
Because the two halves carry opposite currents, their fields largely cancel, which reduces emissions, and interference that reaches both traces equally is rejected by the receiver. USB, Ethernet, HDMI, PCIe, CAN, RS-485 and LVDS all use differential pairs. The benefit depends on symmetry: any difference in length, spacing or surroundings converts part of the signal into common-mode noise.
How should a differential pair be routed?
- Impedance: route to the interface's differential target, for example 90 Ω for USB and 100 Ω for PCIe and HDMI in TI's tables. See controlled impedance.
- Symmetry: keep the two traces parallel and together. TI accepts deviations only where they occur naturally, at package escape and connector pins.
- Reference: route over a solid ground plane, at least 90 mils (about 2.3 mm) from the plane edge and at least 1.5 trace widths from voids in it.
- Spacing to other signals: TI's 5W rule keeps pairs at least five trace widths apart, 30 mils for 6 mil traces, with 30 mils to other signals and 50 mils to clocks and periodic signals.
- Bends: avoid them where possible; where needed, keep each bend angle greater than 135 degrees.
- Nothing in the path: no test points or stubs, and SMD parts in the path in 0402 or smaller where possible.
How closely must the lengths match?
Length difference inside a pair is skew. TI's example limits are 50 mils (about 1.3 mm) within a USB 2.0 pair and 5 mils (about 0.13 mm) within USB 3, SATA, PCIe and HDMI pairs. The pairs themselves, for example transmit and receive, do not need to match each other. TI recommends adding the serpentine near the end where the mismatch occurs, and notes that glass weave can add skew on long pairs because the two traces see different mixes of glass and resin.
What about vias on a pair?
If a pair must change layer, give both traces the same number of vias, placed symmetrically, and add ground stitching vias within 200 mils of the signal vias when the reference plane changes. TI's example limits allow up to four vias on each USB 2.0 trace, two on USB 3 and none on PCIe, SATA or HDMI in that design. Keep via stubs short, see via.
How are differential pairs set up in KiCad?
KiCad recognizes a pair from net names with a common base and a positive and negative suffix: USB+ and USB-, or USB_P and USB_N. The two suffix styles cannot be mixed. The pair's width and gap come from the net class or custom rules, the differential pair router holds that gap and adds a short fan-out where pads are further apart, and DRC checks the diff_pair_gap and diff_pair_uncoupled constraints. Naming nets correctly in the schematic is the step most often missed.
Sources
- Texas Instruments: High-Speed Interface Layout Guidelines (SPRAAR7J)ti.com
Impedance targets, 5W spacing and keep-outs, plane edge and void distances, symmetry, bends, skew limits, length matching, via counts, stitching vias, SMD size, flow-through ESD
- KiCad 9 Documentation: PCB Editordocs.kicad.org
Pair naming, differential pair router, gap rules and DRC constraints
