pcb_get_differential_pairs
Enumerate every differential pair on the active PCB and report each half's length and skew to detect high-speed routing length-mismatch violations before fabrication.
Instructions
Enumerate every IPCB_DifferentialPair on the active PCB
and report each pair's two halves with length skew.
Length mismatch between the two halves of a diff pair is one of the most common high-speed routing bugs. Transceiver specs:
USB 2.0: skew < 150 mils
USB 3.x SuperSpeed: skew < 5 mils per pair
HDMI: skew < 200 mils within pair, < 800 mils between
MIPI D-PHY (high-rate): skew < 5 mils
PCIe Gen3+: skew < 5 mils within lane
Ethernet PHY: typically < 50 mils Catching skew violations pre-fab saves a respin -- the agent should call this near the end of a layout review.
Returns one row per pair with:
name: pair name (e.g."USB_DATA"if the SCH had.DiffPairdirectivesUSB_DATA_P/USB_DATA_N)positive_net/negative_net: the two member netspos_length_mils/neg_length_mils: summed track + arc length for each half (signal layers only)skew_mils: absolute difference, the number you compare against the transceiver specboth_routed: false means one half is still ratsnest- only (lengths are unreliable in that state)
Uses the PCB API IPCB_DifferentialPair interface.
Returns:
Dict with {count, pairs: [...]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||