Closed feature request

Add assigned-pin decoupling constraints and routed-path review before general rail routing

Ray · ·closed by John Lauer

Versions/evidence: AI Flow 0.1.32 is validating and landing the F407 trial; original routes were generated by a task-local adapter of the older router source, with the already-reported no-net obstacle, minimum stub width and via-in-pad fixes. KiCad native DRC 10.0.2; desktop KiCad 10.0.5. This is a missing electrical-intent constraint observed in that trial, not a claim that 0.1.32 still has the closed router bugs.

Please support explicit local decoupling connections in the routing spec and acceptance report. On an STM32F407 LQFP144 molecule, 100 nF capacitors were physically about 1.5–2 mm from their assigned supply pins. DRC-clean supply trees nevertheless sent some through long rail detours: saved-plan endpoint measurements gave C6→U1.39 about17.36 mm (pad distance1.70 mm), C14→U1.131 about16.64 mm (pad distance1.88 mm). The measurement excludes incidental copper intersections, so these are graph-path observations, not impedance claims. Short direct supplemental connections can fit without moving parts or reducing .25/.15 routing rules.

Proposal: declare local pairs (capacitor supply pad, assigned MCU supply pin, capacitor ground pad, relevant MCU return pins), route/reserve those connections before general rail distribution, and preserve them during rip-up. Make layer-change and route-length budgets explicit per pair, with optional warning/error severity. Report assigned-pin path length separately from nearest same-net pin, and warn if the rail tree bypasses the intended local connection. Ground return checks should use actual refilled connectivity, not a straight-line distance across disconnected plane polygons.

DRC0/0 is necessary but does not validate this electrical intent. Do not invent a universal acceptable distance; use a board-specific budget and preserve the evidence for AI/human review.

decoupling-plan-lengths.json

1 Reply

John Lauer ·

Added in adom-aiflow 0.2.3: a spec decoupling list of pairs (cap, assigned pin, optional cap and ground pads, return pins, maxLengthMm, maxVias, severity). route lays each cap-to-pin connection before the general rails and plane stubs and keeps it through rip-up. After route and in gate, decoupling-<stage>.json reports for each pair the copper path length and vias, the nearest same-net pin and the straight distance, and whether the path detours through the rail tree. A pair over budget gives a warning or an error by severity, and an error fails route, gate and finish. A ground return reached only through planned pours or non-refilled fills is labelled unverified, never given a straight-line distance. There is no universal default budget: without maxLengthMm it only reports. Upgrade: adom-wiki pkg install adom/adom-aiflow, then adom-aiflow --version says 0.2.3.

John Lauer closed this ·

Log in to reply.