Python · Command-line tool · Apache-2.0

kicad-irdrop

Solves the DC voltage drop of a KiCad power net on the real copper, with pours, tracks and every via barrel, and points to the neck or via that needs fixing.

View on GitHub

kicad-irdrop is designed to catch a rail that sags under load, which a power check that treats pours and vias as perfect conductors would pass. For this purpose, the tool rasterises every copper layer of the net on a grid. Filled pours, tracks, arcs and pads are all included. The cells are joined with the sheet conductance that is taken from the stack-up of the board, and each via is modelled as a plated barrel between the layers that it spans. With the source pad held at 0 V and the current drawn from the load pads, the network is then solved.

In the report, the worst and the median drop are given first, followed by the effective resistance. The busiest via barrels are compared with an IPC-2221 rating for a 10 C rise, and the peak current density is stated. The loss is also broken down in 1 mm bins per layer and per via. With this list, the neck in the pour that should be widened, or the place at which a via should be added, can be found.

Limits

Only DC is handled by the solver, so inductance, capacitors and transient droop are left out. Copper is taken at 20 C, solder and package resistance are ignored, and every load pad draws the same current. For these reasons, the tool is best used for comparing layouts and finding bottlenecks. A bench measurement at the decoupling capacitors of the load should follow.

Install

Since the pcbnew module of KiCad is required, the tool has to be installed and run with the Python that is shipped with KiCad 8 or newer. On macOS:

PY="/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3"
"$PY" -m pip install git+https://github.com/firedanceio/kicad-irdrop

On Linux and Windows, the python3 that comes with the KiCad install, or the one in the KiCad command prompt, should be used. Before each run, all zones should be filled and the board saved, so that the filled pours are part of the solve. For the current-density maps that --maps draws, Pillow is required as well.

Example: a 12-layer DDR4 tester

The open-source DDR4 RDIMM tester by Antmicro feeds its FPGA core rail, 1V0_SYS, through a 10 mOhm sense resistor, R204, into 25 balls of the FPGA, U15. Solved for 3 A:

python3 -m kicad_irdrop data-center-rdimm-ddr4-tester.kicad_pcb --rail 1V0_SYS:R204:3:U15::1.0 --maps maps/
1V0_SYS: 3 A from R204 to U15 | worst 17.0 mV at U15.C6, median 15.5 mV, R_eff 5.67 mOhm | budget 20.0 mV: ok

The rail is measured at 5.67 mOhm and 17 mV, and is therefore inside the default 2 % budget. According to the per-location detail, the whole rail is carried by one inner pour, In2. That pour is reached through a handful of vias beside R204, and the two busiest of them carry 0.83 A each, which is above their IPC-2221 rating. This marks a warm spot that is worth checking, and it is not a failure. Along the long L-shaped path, the rest of the drop builds up gradually, so that no single location is responsible for more than 1 %.

Current density in the 1V0_SYS pour on inner layer In2 of Antmicro's DDR4 tester, from blue for low current through green to red for high

The rail spec is NET:SOURCE:AMPS[:LOAD1+LOAD2[:SENSE[:VNOM]]]. SENSE is the feedback point of the regulator. When it is given, the report also shows the drop that is seen by the load after the regulator has corrected at that point. The exit status is 0 when every rail is within budget, 1 when one is over, and 2 on an error.

Is the answer right?

To check a result, --grid is halved and the tool is run again. On the DDR4 tester, a 0.025 mm grid gives 5.58 mOhm. This value is 1.6 % lower, which means that the answer has settled. Should the resistance move by more than about 10 %, a thin feature dominates the path, and the result from the finer grid is the one to be used.

In the repository, kicad-irdrop is also compared with padne, an independent finite-element DC solver for KiCad. The comparison uses a purpose-built 4-layer board with the same copper conductivity and via plating. Agreement is within 0.5 % when a narrow track carries the loss, and within about 2.5 % when vias and a notched pour carry it. Both solvers put the peak current density at the corner of the notch. A separate test board was needed, since padne was unable to mesh either Antmicro board. The files for repeating the comparison are kept in docs/crosscheck.

Current maps of the same inner layer of the cross-check board, solved by kicad-irdrop on top and padne below

Licence

Apache 2.0. VALIDATION.md in the repository covers the unit tests, the results on both Antmicro boards and the padne comparison.

Read the announcement: kicad-irdrop: how much voltage does a circuit board lose?.

Hear when FirePod goes on saleGet the early-bird price

FirePod isn't on sale yet. Leave your email and we'll write when it is.

FirePod isn't on sale yet. Sign up and the early-bird price comes to your inbox when it is.