audit_find_via_antennas
Detects vias connected on only one layer, identifying unused via stubs that resonate at RF and high data rates so you can fix EMC and signal-integrity issues.
Instructions
Find vias connected on only one layer (resonating stubs).
At RF / high data rates the unused side of a one-layer-connected via acts as an open-ended transmission-line stub: it resonates at frequencies whose quarter-wavelength matches the stub length, reflecting signal back into the trace and degrading rise time + EMC compliance. Common after iterative editing where a layer-change via gets stranded when the destination trace was later rerouted on a different layer.
Counts a via "connected" on a layer when:
it's a signal layer with a track/arc/pad/fill/region touching the via (
Board.PrimPrimDistance = 0), ORit's a plane layer and
Via.IsConnectedToPlanereturns True.
Returns a JSON list (rather than selecting and highlighting).
Cost: O(vias × layers × spatial-prims-near-via). Typical boards finish in 1-3 seconds; very dense boards may take longer.
Returns:
Dict with:
- checked: total vias inspected
- violations: antenna-via count
- items: per-violation {net, at, connected_layers}
where at is "(x,y)" mils and connected_layers
will always be 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||