NAME-2 Inconsistent naming of differential pairs: suggest one notation¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist |
Data it needs: graph.
Looks at. Net names.
What it catches. Differential pairs named in several styles (USB_DP/USB_DM, USB_P/USB_N, USB+/USB-, CAN_H/CAN_L), or a pair whose two halves do not form a recognisable pair.
Why it matters. Layout tools find pairs by name: KiCad's differential pair router pairs nets with a common base name and a +/- or P/N suffix. A pair called D+/D- on one sheet and USB_DP/USB_DM on another is routed as two single nets unless someone notices; length matching and impedance rules miss it too.
Example. USB_DP/USB_DM from the MCU sheet joining USB_D+/USB_D- at the connector: the net takes one of the names, and the pair rule attached to the other never applies.
How to check. Find nets that look like halves of a pair (suffix pairs, or the two pins of a differential pin pair on a part); report mixed styles and halves without a partner.
Fix. One style that the layout tool recognises (_P/_N or +/- in KiCad); keep names consistent across sheets.
References. KiCad Pcbnew "Routing differential pairs" (+/- or P/N suffixes).
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only NAME-2 reports on it.
name-2_diff_pair_styles¶
suggestion NAME-2 #3af differential pairs are named in 2 styles: X_P/X_N (2: /ETH_RX_P//ETH_RX_N, /ETH_TX_P//ETH_TX_N); X+/X- (1: /CAN+//CAN-)
net /CAN+, net /CAN-
fix: one style the layout tool pairs by (`_P`/`_N` or `+`/`-` in KiCad), X_P/X_N as most pairs use it
suggestion NAME-2 #b67 /USB_DP and /USB_D- look like the two halves of one pair in two styles: a layout tool does not pair them
net /USB_D-, net /USB_DP
fix: name both halves in one style
NAME-2 also fires on the test schematics of other checks: ana-3_shunt_filters, hs-15_mipi_lane_parts, hs-4_pair_asymmetry, hs-9_choke_on_lanes.