Couple differential pairs
couple_pairsAfter route_board: re-route the weakly coupled differential pairs one at a time, least coupled first. Both legs are ripped and routed alone around everything else as a pair; the new copper stays only when the pair's coupled share rises by min_gain_pct, its skew stays within max_skew_mm, KiCad counts no new open item or DRC error, and the board gains at most max_extra_vias vias. Pairs routed with the whole board lose their lanes; alone they couple. Run check_net_rules before and after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | Only pairs with a leg matching these (default every pair under target_pct). | |
| tries | No | Router seeds per pair; the best acceptable one is kept (default 2). | |
| wait_s | No | Seconds to wait for the job (default 55). A job still running comes back with status "running": follow it with get_board_job. | |
| design_id | Yes | The design id returned by import_kicad_project or list_designs. | |
| ml_options | No | ||
| target_pct | No | Pairs coupled below this are tried (default 70). | |
| max_skew_mm | No | Largest length mismatch kept (default: the pair's current skew, at least 1 mm). | |
| min_gain_pct | No | Coupling points a reroute must gain to be kept (default 10). | |
| time_budget_s | No | Router budget per try (default 90). | |
| bridge_islands | No | ||
| max_extra_vias | No | Vias a kept reroute may add to the board (default 2). | |
| total_budget_s | No | Stop starting pairs after this (default 1800). |