Review: power tools and their GUI integration (2026-11-09)¶
The full-bridge tool reviewed here (kicad2ems.pcbqs.power_circuit, power_bridge) was removed on 2026-11-14: its
model is a general circuit model (data/wpthb_bridge.json, run by kicad2ems.pcbqs.circuit). The findings about it are kept
as they were written.
Scope: kicad2ems.pcbqs.pdn (rail DC drop and PDN impedance), kicad2ems.pcbqs.mqs CLI (converter
input-loop near field), kicad2ems.pcbqs.power_circuit / power_bridge / power_spice
(switching circuits with PCB copper), and the kicad2ems window’s Power
Integrity, Near field and Circuit pages. Exercised on Jetson AGX Thor, CM5
Minima and the wpthb wireless-power bridge; see
power-workflow.md and examples/power-workflow/.
Fixed on claude/circuit-sim-speed and its base marks findings found and
fixed while running these boards; the rest are in the roadmap (“ROADMAP” below).
Correctness¶
# |
Finding |
Where |
Status |
|---|---|---|---|
C1 |
The PDN tool shorted series filter inductors: |
|
Fixed: followed inductors keep L and DCR; |
C2 |
Capacitors named CA1/CE1/CP1 were silently not decaps (reference regex |
|
Fixed: prefixed refs, package defaults, |
C3 |
Small rails failed (“no plane pair over 1790 mm²”) with no way to set the plane threshold from the CLI/GUI. |
|
Fixed: |
C4 |
Gate pulses with an on-interval spanning t = 0 started off: every transient began with a wrong bridge state for part of a cycle, re-exciting the input filter; at 180° a low-side switch skipped a whole period. |
|
Fixed |
C5 |
abstol 1e-9 A made strict runs fail (“timestep too small”) at hard-switched edges; no retry existed. |
|
Fixed: 1e-6 A default, trap/cold retries, failed logs kept |
C6 |
Coaxial via segments used 1e-7 m separation for their mutual inductance; vias through inner copper were over-inductive (Jetson X −1.6% after fixing). |
|
Fixed (earlier this branch’s base) |
C7 |
Precharge hard-codes the template’s references and drops (C19–C24, CA*, L3, C25/C27/C30; 0.055/0.085 Ω). Another board, or a renamed or replaced L3, starts far from steady state. Warm starts now replace it after the first (pilot) run. |
|
Mostly: warm starts; precharge by connectivity (2026-11-11). wpthb’s own values still in the code: ROADMAP |
C8 |
The periodicity check ignores supply current, and input power is averaged over one switching cycle, so a slowly decaying input-filter mode biases input power and efficiency (≤ 0.66% on wpthb in both old and new code). |
|
ROADMAP |
C9 |
High-side FET loads have no ground pad, so a bridge’s DC return (through the low-side FET) is not modelled; the tool only notes it. |
|
Fixed 2026-11-10: |
C10 |
The PDN target defaults to V × 5% ÷ (half the loads’ current) even for a switching bridge, where it has little meaning. |
|
Fixed 2026-11-10: |
C11 |
DC pads were not equipotential: a 1e6 S tie shared over all of a pad’s vertices, with current entering at its edge, left pads ~20 µV/A off (+1% on a strip, growing with refinement). Found by |
|
Fixed: 1e6 S per vertex |
C12 |
DC meshes had slivers from each via’s ring to vertices ~2 mm away (Triangle without a minimum angle), underestimating every via junction’s spreading by ~0.1 mΩ, regardless of |
|
Fixed: 25° minimum angle for DC meshes |
C13 |
A terminal is one node, so a part crosses its pads instantly and large pads lower a small loop’s inductance (20 × 10 mm loop: 37.4 nH with 1 mm pads, 38.8 nH with 0.25 mm). Otherwise inductance matches FastHenry to 0.3–2% and |
H |
matches Palace to ~5%. |
C14 |
AC resistance from the slab model is 11–34% low at 10–100 MHz against FastHenry: every sheet’s current is spread over one or both faces alike, while traces over planes crowd onto the facing surfaces. Fine below ~1 MHz (35 µm copper). |
|
Started: |
Integration and results¶
# |
Finding |
Where |
Status |
|---|---|---|---|
I1 |
|
|
Fixed: |
I2 |
Each tool re-imports the KiCad board (25 s for Jetson) on every run; nothing is shared between the three tools or the GUI pages. |
CLIs |
Fixed: |
I3 |
Two near-field paths: |
|
Fixed 2026-11-12 for the general circuit: |
I4 |
PDN and Near field forms are generated from |
|
ROADMAP: |
I5 |
Converter discovery stops at ambiguous input nets (VCC/VDD/VDRV on five Jetson bucks); the user must know the right net. |
|
Fixed 2026-11-10: Find converters in the Near field page |
I6 |
The PDN impedance plot’s bare-planes curve can reach 10¹¹ Ω on boards with a tiny cavity, flattening the useful curves. |
|
Fixed 2026-11-10: the axis follows the loaded curves (CLI figure and window) |
UI flow (kicad2ems window)¶
# |
Finding |
Where |
Status |
|---|---|---|---|
U1 |
Circuit page overrides “L3 DCR” and the waveform view “Input filter currents” ( |
|
ROADMAP |
U2 |
“All-capacitor ESR/ESL override” also changes the resonant bank and polymers. |
|
ROADMAP: per-group overrides |
U3 |
Circuit results table lacks input power, VHB spike, supply ripple, settling and run time; the Power Integrity summary does not show a series inductor’s inductance. |
|
Fixed in kicad2ems-gui branch (table columns, L in the tree) |
U4 |
No path from a converter on Near field to its switching circuit, or from Circuit’s input current to a PDN load. The PDN↔Near field transfer exists. |
pages |
Fixed 2026-11-12: a near field’s converter opens as a circuit ( |
U5 |
The Circuit page’s switch list offers the behavioural |
|
ROADMAP: default to the template’s VDMOS, warn |
U6 |
The Power Integrity page split list options at every comma, so |
|
Fixed: only a comma before a new |
Maintainability¶
The
power_*modules were written as dense one-line statements, which made review and diffs harder than the rest of pcbqs. Reformatted with ruff (80 columns now, quotes preserved;[tool.ruff]in pyproject.toml).Duplication removed: plane-pair physics (
pdn/cavity.pyfunctions now used byRailPDN), CLI options/--describe/board loading (pcbqs/_cli.py), series-part pad selection (Series.pads,Rail.pads_of), and the window’s describe/process code (toolprocess.py). Dead code removed (unused end-state nodes, metric fallbacks,dc.supply, unused imports and arrays).Tests cover circuit physics with small netlists and now warm starts. Real-board regressions now exist for CM5’s near field and wpthb’s PDN (
tests/test_regression_boards.py, stored results); a wpthb circuit case is still missing.Template-specific logic (C7, U1) and the generic engine are mixed in
power_bridge.py.