Repository navigation
fix(bus_lanes): expose through-hole obstacle span layers on terminals - #5815
devbox-zero-ops wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
I filed #5802 and tested this end to end. I merged it onto
So the extra header-side transition is gone, and the SOIC board now needs exactly one escape per SOIC pad, which is what #5802 expected. Core tests: I ran the 47 bus-lanes and On the approach: core's SRJ uses The docs side is tscircuit/skill#67. I left a note there. |
|
Thanks @nitina-ariveguru for running the full 6-board end-to-end verification and core regression check! I also updated |
Summary
Fixes #5802.
Root Cause
Core's
SimpleRouteJsonemits single-layer terminal points (layer: "top"for plated through-holes), while the through-hole pad's full copper layer span (e.g.["top", "bottom"]) is carried on its matching obstacle ininput.obstacles.@tscircuit/bus-lanes-solveralready supports multilayer terminals viaTerminal.layers?: string[](falling back to[point.layer]when omitted), butgetBusLanesInputFromSrjdid not populatepoint.layersfrom matching multilayer obstacles. As a result, routing a bottom-side SMD bus to a through-hole header treated the through-hole terminal as top-only and inserted an unnecessary via per connection.Changes
lib/utils/autorouting/get-bus-lanes-input-from-srj.ts: Populatepoint.layersonBusLanesInputterminals when a point lies inside a connected multilayer obstacle (obstacle.layers.length > 1containingpoint.layer), without mutating the caller'sSimpleRouteJson.tests/repros/bus-lanes-through-hole-no-extra-via.test.tsx: Added regression tests covering both the issue repro (bottom SMD → through-hole header routed onbottomwith0vias) and the top SMD → through-hole header control case.Verification
bun test tests/repros/bus-lanes-through-hole-no-extra-via.test.tsx(2 pass, 0 fail)bun test tests/utils/autorouting/(all pass)bunx tsc --noEmit(clean)