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

A power check that treats pours and vias as perfect conductors will pass a rail that sags under load. kicad-irdrop doesn’t. It rasterises every copper layer of the net on a grid (filled pours, tracks, arcs, pads), joins the cells with the sheet conductance from the board’s own stack-up, and models each via as a plated barrel between the layers it spans. Then it holds the source pad at 0 V, draws the current from the load pads, and solves.

What comes out: the worst and median drop, the effective resistance, the busiest via barrels against an IPC-2221 rating for a 10 C rise, the peak current density, and where the loss happens, in 1 mm bins per layer and per via. That last list is the useful one. It names the neck in the pour or the via to add.

Install

It needs KiCad’s pcbnew module, so install and run it with the Python that ships 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, use the python3 from the KiCad install or the KiCad command prompt. Fill all zones and save the board before a run. The current-density maps (--maps) need Pillow.

Example: a 12-layer DDR4 tester

Antmicro’s open-source DDR4 RDIMM tester 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

So 5.67 mOhm and 17 mV, inside the default 2 % budget. The detail is more interesting than the headline. The whole rail rides one inner pour, In2, and reaches it through a handful of vias beside R204; the two busiest carry 0.83 A each, over their IPC-2221 rating. A warm spot worth a look, not a failure. The rest of the drop builds up a little at a time along the long L-shaped path, which is why no single location takes 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 regulator’s feedback point, when you have one; with it, the report also gives the drop the load sees once the regulator corrects at that point. Exit status is 0 when every rail is within budget, 1 when one is over, 2 on an error.

Is the answer right?

Halve --grid and run it again. On the DDR4 tester, a 0.025 mm grid gives 5.58 mOhm, 1.6 % lower, so the answer has settled. If yours moves by more than about 10 %, a thin feature dominates the path and the finer grid is the one to trust.

For a second opinion, the repository compares kicad-irdrop with padne, an independent finite-element DC solver for KiCad, on a purpose-built 4-layer board with the same copper conductivity and via plating. They agree within 0.5 % when a narrow track carries the loss and within about 2.5 % when vias and a notched pour do, and both put the peak current density at the notch corner. padne couldn’t mesh either Antmicro board, hence the test board. Everything needed to repeat it is in docs/crosscheck.

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

Limits

DC only. No inductance, no capacitors, no transient droop. Copper is taken at 20 C, solder and package resistance are left out, and every load pad draws the same current. Use it to compare layouts and find bottlenecks, then measure on the bench at the load’s decoupling capacitors.

Licence

Apache 2.0. The repository’s VALIDATION.md lists the unit tests, 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.