AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
Placement: rank heat, EMC and routability for each board, and place by that ranking
Placement: rank heat, EMC and routability for each board, and place by that ranking
Seen on: adom-aiflow 0.2.44 (AM32 ESC run, adom/am32-esc-2s6s-molecule). It applies to every board.
What happened: placement is the AI's step, helped by place pack --wish, place check and place land. What place check judges is legality (courtyards, outline, molecule grid, decoupling and placement-intent constraints). Nothing asks which of heat, EMC and easy routing should drive this board's placement. Nothing measures the placement against that choice before routing starts. Problems found later send the run back (current, thermal, Fields), but by then the routing is built on the placement.
On the ESC, the gate-drive loops, back-EMF lines and MCU-to-driver lines came out 1.5 times (gate drive) to 4 to 12 times (back-EMF, PWM) longer than on the hand-placed board of the same circuit (numbers in #128 and #129). Those are placement outcomes: the router had no way to fix them.
How a layout engineer decides: good placement is what makes routing easy, and it should be dictated by a combination of heat, EMC and easy routing for the prioritised signals. The AI has to rank how serious each one is on this board. For example, two very hot chips whose only signal is a 9600-baud UART: place for thermals first (spread them, give them copper and vias, keep them off each other's heat path). Easy routing comes second, although good routing can help the thermals.
Suggested fix:
- A placement ranking at the start of the placement step, as
spec.placementPriorities: thermal, EMC (loop areas, return paths, the noisy and quiet zones), and routability of the top signal classes (fromspec.signalPriority, #129). Each gets a rank and a reason from this board's numbers: the watts fromspec.hot, the di/dt from the switching nodes, the class list.step placementasks for it; the timeline shows it. place checkscores the placement against the ranking, beforeplace land:- thermal: each hot part's spacing to the others and its copper and via budget area, a quick screen in the spirit of the current thermal step
- EMC: the power-loop and gate-loop areas, switch-node copper area, and the distance from noisy nodes to the sensitive class
- routability: the ratsnest length per top class, and crossings It prints the score in rank order with the worst offender named.
place packhonours the order: top-ranked groups are placed first and get their space.- A return from current, thermal or Fields to placement records which ranking item failed, so the ledger shows whether the ranking was wrong or only the placement.
2 Replies
Log in to reply.