deniz.in

Markets

Weather

Loading weather

· via Hacker News – Front Page (hnrss.org)

FieldForge brings GPU-first EM simulation and automated meshing to KiCad

A new open-source project called FieldForge pulls net geometry from KiCad over the IPC API, auto-meshes it, and runs GPU-accelerated EM solvers to return Touchstone S-parameters for PCB signal-integrity work up to 50 GHz.

FieldForge brings GPU-first EM simulation and automated meshing to KiCad

An open-source project called FieldForge, which recently reached Hacker News's front page, wants to make electromagnetic simulation a routine part of free PCB design tooling. Hosted on GitHub under the handle 0xSufi, it connects KiCad to GPU-accelerated solvers and promises S-parameter results from a selected net without exporting Gerber files or building a mesh by hand.

From net selection to S-parameters

According to the project's GitHub page, the workflow is deliberately short: a user picks a net or differential pair in a KiCad plugin, the tool pulls exact geometry and stackup through KiCad 9's IPC API, generates an automatically meshed model for the openEMS or Palace solvers, and plots the resulting Touchstone S-parameter files back in the same panel. The stated target range is PCB signal integrity from 1 to 50 GHz.

The plugin is a PyQt6 application offering a net picker, extraction, simulation and an S-parameter view, with automatic meshing of the cutout region around the chosen net. Board extraction runs headless; per the project's README it has been exercised on an Antmicro Jetson Orin (8L) board, a HackRF One, and the Castor & Pollux and StickHub designs, spanning three generations of the .kicad_pcb format with the same extraction routine.

The solver stack

Rather than reinventing electromagnetic physics, FieldForge integrates existing open-source solvers — openEMS, Palace, Gmsh and scikit-rf — and builds the extraction, meshing and orchestration around them. The FDTD path runs on CUDA Yee kernels compiled for NVIDIA architectures sm_61 and sm_86, exposed through a public C ABI that lets modules for dispersion correction, surface-impedance boundaries and port measurements wrap the central step function. Via-transition validation on this path is reported to reach 50 GHz.

A second production route uses a shielded method-of-moments solver with dense GPU solves where hardware is available, adaptive band synthesis that samples roughly 8 to 12 points across a band, and Touchstone output. When a rational fit of the band turns out non-passive or fails to converge, the tool falls back to plain point-by-point solves and records which mode was used in its report. Differential pairs yield mixed-mode SDD and SCC files, with passivity and reciprocity checks logged alongside.

A third integration — an emitter for Palace and Gmsh built on prism extrusion, surface-impedance boundary tags and lumped ports — exists in the code, but its validation run is queued on a lab server, so it currently ships without supporting numbers.

The self-reported validation picture

Every performance figure comes from the project's own validation reports, each regenerable by a committed generator script and exercised in CI. Two results stand out:

  • With the automated graded mesh and the openEMS backend, characteristic impedance matches analytic values within -1.74% for microstrip and +1.21% for stripline, inside 2% acceptance gates and without manual mesh adjustments.
  • A head-to-head against gerber2ems, an Apache-2.0 tool from Antmicro, on identical test coupons over 0.2–6 GHz produced a 95th-percentile difference of 0.32 dB in differential forward transmission (SDD21) and 2.34 dB in differential reflection (SDD11), passing gates of 0.5 and 3 dB. The project also documents passivity limits in the reference tool above 12 GHz, which bounds where that comparison is meaningful.

The project is candid about instrument uncertainty as well: its two-probe gated transmission measurement carries documented ±25% window systematics, and a sealed-box resonator-Q method is offered as a less sensitive alternative.

Licence and credits

The C++20/CUDA core and the Python geometry layer are Apache-2.0, while the KiCad plugin is GPL-3.0-or-later. The README credits OrthoRoute (MIT) for the IPC-API board-access patterns and gerber2ems as the cross-validation baseline.

What is still on the todo list

Stated next milestones include automating convergence across a public set of mesh benchmarks, open-media MoM and SI-aware routing integrations, and correlating additional coupon measurements above 6 GHz against the solvers.

Why it matters

High-speed PCB design increasingly lives or dies on signal integrity, and rigorous simulation has largely been the province of expensive commercial suites. Capable open solvers have existed for years, but the practical pain has been everything around them: getting board geometry out of an EDA tool, usually through a Gerber export, and then constructing a valid mesh by hand. By reading geometry directly from KiCad's IPC API and automating the meshing, FieldForge attacks exactly that bottleneck inside an entirely free toolchain.

The caveats deserve equal billing: these are self-reported numbers from what appears to be a solo project, the Palace route is not yet validated, and measured correlation above 6 GHz is still outstanding. But the engineering habits are encouraging — committed validation reports, passivity and reciprocity checks on outputs, and documented fallbacks when fits fail. If the numbers survive outside scrutiny, board designers without a commercial licence budget get a credible route from layout to S-parameters.

  • #open-source
  • #kicad
  • #em-simulation
  • #signal-integrity
  • #eda

Related posts