Free, open-source power-delivery-network (PDN) analysis for PCBs. FYPA reads an Altium or KiCad (beta) design directly and shows you where the board loses voltage (DC) and whether its decoupling meets its target impedance (AC). A Gerber package works too, for DC.
Disclaimer: FYPA is a design-aid tool. Treat its results as guidance and validate against measurement. See Validation for how the solver compares with closed-form answers.
DC - voltage drop
- Voltage, voltage drop, current density and power density on every copper layer, as a GPU heatmap you can pan, zoom and probe.
- Per-pin voltages checked against each load's minimum voltage, nominal and worst case, and per-via currents.
- Regulators (LDO and switching) with their input and output rails solved together, plus series parts such as fuses, ferrites and sense resistors.
- What-If scenarios: change copper weight, temperature or via plating and compare with the base design.
- A design report (HTML or PDF) with pass / fail rules, usable in CI.
AC - impedance (Altium and KiCad designs)
- A capacitor check: every decoupling capacitor's mounted loop inductance, rated Good, Marginal or Poorly connected.
- Impedance against frequency at each load, judged against a target impedance, with the worst peaks and their Q.
- Three levels: lumped, quasi-static (position-dependent), and a plane solve that treats the plane pair as a lossy cavity and finds its resonances.
- A capacitor model library, DC-bias derating, and import of vendor Touchstone and SPICE models.
- Cases to compare decoupling options side by side, and a BOM change list.
Based on padne (the FEM solver); uses altium_monkey to read Altium project files.
Windows, no Python needed. Get FYPA_v<version>.zip from the
latest release,
extract it somewhere permanent, and double-click FYPA.exe.
- On first launch Windows SmartScreen shows a blue warning: click More info, then Run anyway. The exe is unsigned; this is a one-time prompt per machine.
- Keep
FYPA.exeand the_internal\folder together. Make a desktop shortcut rather than moving the exe.
On Linux or macOS, or to work on the code, see Running from source.
- Open your design. File > Import Altium Design (
.PrjPcb), File > Import KiCad Design (beta) (.kicad_pro), or File > Import Gerber Files. - Say where power comes in and goes out. Switch to editor mode on the Board tab, click a part, and make it a source (a voltage) or a sink (a current). Nothing in your schematic changes.
- Press Solve (
F5). Read the heatmap, then the Nodes tab for each load's voltage and margin.
For AC, switch to AC + DC mode, press Run capacitor check on the Capacitors tab, then open the Impedance tab.
To try it without your own board, open
ExampleDesigns/Sandbox/Sandbox.PrjPcb from this
repository; it is already set up.
| User guide | Step-by-step walkthroughs, DC and AC |
| PDN parameter reference | Every PDN_* schematic parameter |
| Validation | FYPA against closed-form answers, and how to check it on the bench |
| How vias are modelled | Barrel resistance, plating, fill |
| How capacitor loop inductance is modelled | The three tiers |
| How PDN impedance is modelled | Lumped, quasi-static and plane solve; what is left out |
| Developer guide | Building the executable, releases, architecture |
The setup can also live in the schematic, as PDN_* parameters on the
parts that define the power topology, so it travels with the design:
J1 (input connector): U5 (3V3 load):
PDN_ROLE = SOURCE PDN_ROLE = SINK
PDN_V = 5 PDN_I = 500mA
PDN_P_NET = +5V PDN_P_NET = +3V3
PDN_N_NET = 0V PDN_N_NET = 0V
PDN_MIN_V = 3.2
Roles are SOURCE, SINK, SERIES, PATH and REGULATOR. The
parameter reference lists every parameter,
and the bundled Altium script can add them for you.
You don't have to round-trip through the Altium schematic to set up an analysis. The viewer has an editor mode for placing the PDN directly on the board:
- Click a component to attach a
SOURCEorSINKto it, or drop a free marker on any copper to load a net with no component in the way. - Set the role, voltage / current, and net(s) in the side panel - single-net
or two-net, the same choices the
PDN_*parameters give you. - A component that already carries schematic
PDN_*directives can be unlocked and overridden, for quick "what-if" values without editing Altium. - Hit Solve (top right, or
F5) to re-run the solver with your edits applied - it reuses the cached design extraction, so it's far quicker than a cold load.
Editor edits are stored in a small .fypa project file beside the board, so
they (and the linked solve) survive a save / reopen and never modify the
Altium source files. See Sources and sinks in the FYPA editor.
Once a design is solved, a What-If re-solves it with a change (copper weight, temperature, via plating or fill, the electro-thermal model) and compares the result with the base: a difference heatmap, the headline changes per rail, and a per-pin table marked better or worse. See the What-If guide.
Every command that takes a .PrjPcb also takes a KiCad .kicad_pro or
.kicad_pcb (KiCad 7 or newer), and the viewer has File > Import KiCad
Design (beta)... (Ctrl+K):
python FYPA.py gui path\to\YourBoard.kicad_pro # solve + viewer python FYPA.py solve path\to\YourBoard.kicad_pcb out.pkl
Add the PDN_* parameters as symbol fields in the KiCad schematic and run
Tools > Update PCB from Schematic (F8) so they reach the footprints; run
Edit > Fill All Zones before saving so the pours are in the file. No KiCad
installation is needed - FYPA reads the S-expression files itself. See the
KiCad chapter of the user guide for what
is read, the Y-axis difference and the beta's known limits, and
ExampleDesigns/KiCad_Sandbox/ for a minimal
example.
FYPA uses uv for dependency and Python-version management. Install uv once (Windows):
winget install astral-sh.uv # or: pip install uvFirst-time install: restart your terminal. The installer adds
uvto yourPATH, but shells that are already open don't see the change - you'll getuv : The term 'uv' is not recognized. Close and reopen the terminal. If you ran the install from the VS Code terminal, close and reopen VS Code itself (it caches the environment it was launched with; a new terminal tab isn't enough).uv --versionshould then work.
Then clone and sync:
git clone [email protected]:anarthrous-eda/FYPA.git cd FYPA uv sync
That's it. uv sync reads pyproject.toml + uv.lock, fetches Python 3.12
if it isn't already available (the version is pinned in .python-version),
creates a .venv\ inside the repo, and installs every runtime + dev
dependency - including altium_monkey, which uv pulls from PyPI at the
version pinned in pyproject.toml.
Python version: 3.12 only. Both FYPA and
altium_monkeypinrequires-python = ">=3.12,<3.13"..python-versionselects 3.12, which uv fetches automatically.
Day-to-day commands:
uv run python FYPA.py gui path\to\YourBoard.PrjPcb # run the app uv run pytest -m "not slow" # fast test suite uv run ruff check . # lint
uv run automatically syncs the venv if it's out of date, so you don't need
to activate first. If you prefer the classic flow, .venv\Scripts\activate
still works.
PyOpenGL and PyOpenGL_accelerate are required for the GPU viewer.
Solve and open the viewer in one step:
python FYPA.py gui path\to\YourBoard.PrjPcb
Or use the individual subcommands:
python FYPA.py extract YourBoard.PrjPcb # raw record summary python FYPA.py annotations YourBoard.PrjPcb # parsed PDN_* directives python FYPA.py geometry YourBoard.PrjPcb # per-layer copper summary python FYPA.py load YourBoard.PrjPcb # full pipeline, readiness report python FYPA.py solve YourBoard.PrjPcb out.pkl # solve + pickle python FYPA.py show out.pkl # open viewer on a saved pickle python FYPA.py paraview out.pkl out_dir\ # export to ParaView VTK (writes into a folder) python FYPA.py report out.pkl report.pdf # design report (.html or .pdf); --fail-on fail for CI python FYPA.py gerber-gui path\to\gerber_folder # import a board from Gerber + Excellon files
A lone Altium .PcbDoc is accepted in place of the .PrjPcb when you
don't have the project (board only: no schematic PDN_* parameters or
assembly variants - FYPA logs what is missing and names the project if it
finds one beside the board). Use the .PrjPcb whenever you have it.
On the first run it solves the
FEM and saves the result to FYPA/.cache/<project>_<hash>.pkl
along with a fingerprint of every input that affects the solve:
- The
.PrjPcbplus every.PcbDoc/.SchDocit references (parsed from theDocumentPath=lines) - The tool's own solver-affecting source files (
fypa/altium/extract.py,fypa/altium/annotations.py,fypa/altium/loader.py,fypa/gerber/extract.py,fypa/gerber/loader.py,fypa/altium_geometry.py,fypa/cli.py,fypa/lean_solution.py, and the modifiedpdnsolver/modules -problem.py,mesh.py,solver.py)
On subsequent runs the fingerprint is recomputed and compared. If nothing has changed the cached solution is reused - typical startup drops from ~10-60 s (full solve) to under a second. Editing any referenced PCB / Sch file or any of the tool's source files automatically invalidates the cache.
To force a fresh solve, pass --no-cache:
python FYPA.py gui YourBoard.PrjPcb --no-cache
To clear all cached solutions, delete the .cache/ directory inside
the tool folder - they'll regenerate on the next run.
A small DelphiScript (Run_FYPA.pas) is bundled
that fires the tool against whichever .PrjPcb is focused in Altium -
no need to copy paths to a console. One-time setup:
-
Point the script at this directory. Open
packaging/Run_FYPA.pasin a text editor and check theSCRIPT_DIRconstant near the top:SCRIPT_DIR = 'C:\path\to\FYPA';Change it to wherever you cloned the repo. The script expects to find
<SCRIPT_DIR>\.venv\Scripts\python.exeand<SCRIPT_DIR>\FYPA.py, so the venv from Running from source needs to live inside that directory. -
Optionally change the subcommand via the
SUBCOMMANDconstant. Defaults togui(solve + open viewer). Set toloadfor a solve-readiness report,annotationsto dump the parsedPDN_*directives,extractfor a raw-record summary, etc. -
Register the script in Altium. DXP > Scripting System > Script Projects, add a new script project (or open an existing one) and add
packaging/Run_FYPA.pasto it. -
Run it. With a
.PrjPcbopen and focused in the Projects panel, right-click theRunprocedure in the Script Editor and choose "Run Script". A console window opens and runs:<SCRIPT_DIR>\.venv\Scripts\python.exe FYPA.py gui <FocusedPrjPcb>The console stays open after Python exits (uses
cmd /K) so any tracebacks are readable. Close the console window when you're done.
The script will surface a clear ShowError dialog if any prerequisite
is missing - wrong path, no project open, project unsaved, or the
focused project isn't a .PrjPcb.
AGPL-3.0-or-later. See LICENSE and NOTICE for upstream attributions. The vendored padne fork's modifications are documented in pdnsolver/CHANGES.md.
