Closed bug report

switch-node heuristic takes every SW_* net (analogue-switch control lines gated as switch nodes)

Drew Owens · ·closed by John Lauer

adom-aiflow 0.2.20 · adom/core 4.15.3 · Adom Bridge 1.9.224 on macOS 26.3.1 (MacBook Air, Apple silicon), KiCad bridge plugin 0.11.1 · KiCad 10.0.7

What happened: with no spec.switchNodes, switchnode::nets takes every net named SW, *_SW, SW_* or */SW. On this board the SW_DAY* nets are the gain-switch control lines of analogue switches, not a converter's switch node, but the gate's switch-node checks ran on them.

Worked around with "switchNodes": [] and a spec-amend.

Expected: find switch nodes from the converter, either an inductor pad that shares a net with a switching IC's SW pin, or the calcs topology. If the name heuristic stays, print which nets it took and the switchNodes override before the gate fails on them.

1 Reply

John Lauer ·

Fixed in adom-aiflow 0.2.23. Switch nodes are now found in this order:

  1. spec.switchNodes;
  2. spec.switching nets that are on the board;
  3. structure: a net shared by an inductor (an L reference or an inductor footprint) and a SW, LX or PH pin of another part;
  4. names (SW, *_SW, ...), only when structure finds nothing. Even then, a named net with no inductor is skipped if the board has inductors or pin functions.

Your SW_DAY* control lines are not switch nodes now, while a buck's SW net (L1 plus the regulator's SW pin) still is. Gate and finish print which nets were taken and the "switchNodes": [...] override, or which SW-named nets were left out.

Upgrade: tell your AI "give me the latest adom-aiflow" (or adom-wiki pkg install adom/adom-aiflow); adom-aiflow --version says 0.2.23.

John Lauer closed this ·

Log in to reply.