design_suggest_diff_pair_traces
Detects differential pairs in a PCB plan and recommends controlled-impedance trace widths for each using target ohms, stackup, and spacing.
Instructions
Recommend a controlled-impedance trace width for every differential pair in a plan.
Detects the differential pairs (nets with role differential) and
sizes each to target_ohms (90 USB / 100 HDMI/LVDS) for the supplied
stackup and edge-to-edge spacing_mils via the IPC-2141 impedance
inverse -- the trace geometry for every pair in one call instead of
identifying pairs and running pcb_calc_trace_width_for_impedance by
hand. The stackup and target are board-level decisions you supply; pure
Python, no Altium.
Returns {"ok": True, "pairs": [{nets, endpoints, width_mils, spacing_mils, target_ohms, feasible}]} or {"ok": False, ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry | No | microstrip_diff | |
| copper_oz | No | ||
| plan_json | Yes | ||
| target_ohms | No | ||
| spacing_mils | No | ||
| dielectric_constant | No | ||
| dielectric_height_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||