**EDA tool for RF design β for the RF community, by the RF community.**
[](LICENSE)
[](https://dotnet.microsoft.com/)
[](#getting-started)
[](https://avaloniaui.net/)
circuitRF is a full-featured EDA tool for RF and microwave design β schematic capture + nonlinear analysis, layout and
EM and thermal simulation in one cross-platform application. **DC**, **S-parameter**, **harmonic-balance** and
**circuit envelope** analyses with first-class **loadpull / sourcepull**, over designs from a handful of components to
hierarchical, multi-port ones with thousands. A **layout editor** for PCB and MMIC work, with
substrate-aware microstrip components, schematicβlayout generation, **DRC** and **LVS**, and two-way
interchange with **Gerber + Excellon**, **GDSII**, **DXF** and `.kicad_pcb` boards. A **2.5D
electromagnetic solver** over the layout's own substrate stackup. **3D editor** for FEM / FDTD EM solutions (using Palace
/ EMerge / openEMS), and a built-in FEM **thermal solver**. Supports command line and MCP.
**π¬ [circuitRF overview video](https://www.youtube.com/watch?v=s6teobulr_A)**
π¬ [Simulation types](https://www.youtube.com/watch?v=Mn31hLSltSc)
π¬ [Schematic demo](https://www.youtube.com/watch?v=Nl2QQT9ML5c)
**π [Read the user documentation online](https://potatobeanradio.github.io/circuitRF/)**
circuitRF is for RF practitioners or researchers who can't justify the cost of traditional tools (or find those tools too heavy for a quick investigation): **power-amplifier, LNA, and mixer designers; RF EDA and device-modeling engineers; antenna systems designers; academic researchers; and capable hobbyists.** It was built largely **AI-assisted** (see
[AI-assisted development](#ai-assisted-development)).
## Features
- schematic + circuit simulation (DC, S-param, HB, Loadpull, Envelope, Transient)
- noise analysis (noise figure, noise circles, phase noise)
- 2D layout editor (imports and exports Gerber, GDSII, OASIS, DXF, .kicad_pcb)
- 3D geometry editor (imports / exports Step)
- hierarchy for all cell view types (including 3D)
- support for PDKs
- bondwire geometry editor and mutual inductance calculator
- Tuning and Optimization
- Monte Carlo, yield, corners, design centering and DOE
- 2.5D MoM
- 3D FEM and FDTD (using [Palace](https://github.com/awslabs/palace), [EMerge](https://github.com/FennisRobert/EMerge) and [openEMS](https://github.com/thliebig/openEMS))
- 3D FEM thermal solver
- phased array antenna design and analysis
- RF systems design and analysis (RF chain, link budget, etc.)
- filter synthesis (microstrip and lumped LC, Butterworth, Chebyshev, elliptic, etc.)
- optimal impedance matching (single, dual and tri-band LC networks - all automated)
- one integrated design flow, from system spec design to schematic, layout and EM
- command line and MCP server ([use it from an AI agent](#use-circuitrf-from-an-ai-agent))
- customizable plug-in architecture (add your own tools in Python or C#)
- [ngspice](https://ngspice.sourceforge.io/) integration (as optional transient solver)
- Documentation with examples
---
## Screenshots
### Schematic editor

*Build hierarchical RF circuits on a virtualized canvas: drag from the palette, wire, label nets, set
parameters and sweeps, and Run.*
### Data Display β loadpull contours

*Plot S-parameters, spectra, power sweeps, and loadpull contours; overlay measured Touchstone/`.spl`/
`.lpcwave` data on simulated results; plot EM results from MoM, FEM and FDTD solvers (including radiation
patterns)*
### Layout editor

*Draw and edit physical geometry on a technology-defined layer stack: microstrip components generated from
their schematic parameters, hierarchy with arrays, and export to GDSII, DXF and Gerber. MoM EM solver.*
### 3D editor

*Draw and edit in 3D and send to FEM or FDTD EM solvers or the built-in FEM thermal solver*
---
## Download
| Platform | Download |
|---|---|
| Windows, Intel/AMD | [circuitRF-1.9.9-win-x64-user.msi](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-win-x64-user.msi) |
| Windows, ARM | [circuitRF-1.9.9-win-arm64-user.msi](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-win-arm64-user.msi) |
| Windows, 32-bit | [circuitRF-1.9.9-win-x86-user.msi](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-win-x86-user.msi) |
| | |
| macOS, Apple Silicon | [circuitRF-1.9.9-arm64.dmg](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-arm64.dmg) |
| macOS, Intel | [circuitRF-1.9.9-x64.dmg](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-x64.dmg) |
| | |
| Linux, Intel/AMD | [circuitRF-1.9.9-linux-x64.tar.gz](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-linux-x64.tar.gz) |
| Linux, ARM | [circuitRF-1.9.9-linux-arm64.tar.gz](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-linux-arm64.tar.gz) |
| Linux, Intel/AMD, AppImage | [circuitRF-1.9.9-linux-x64.AppImage](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-linux-x64.AppImage) |
| Linux, ARM, AppImage | [circuitRF-1.9.9-linux-arm64.AppImage](https://github.com/potatobeanradio/circuitRF/releases/download/1.9.9/circuitRF-1.9.9-linux-arm64.AppImage) |
**Linux** β unpack and run `install.sh`. It writes only inside `~/.local`, puts `circuitrf` on your PATH
and registers the menu entry and file types; `--uninstall` removes it and leaves your work alone.
```sh
tar xzf circuitRF-1.9.9-linux-x64.tar.gz
./circuitRF-1.9.9/install.sh
```
**Linux AppImage**: download it, make it executable (`chmod +x circuitRF-1.9.9-linux-x64.AppImage`)
and run it. AppImageUpdate can update it too. Use the tarball if you want updates
installed automatically.
**Installing for everyone on the machine?** The Windows `.msi` files without `-user`, and the `.deb`
files, are on the [releases page](https://github.com/potatobeanradio/circuitRF/releases). They need
administrator rights, so they cannot update themselves β they tell you when a new version is out
instead.
Building the installers yourself: [BUILDING.md](BUILDING.md).
---
## Use circuitRF from an AI agent
circuitRF is also an **MCP server**, so an AI agent can create workspaces, write designs, check
them, run simulations and read the results back. The installed application is the server; there is
nothing else to install.
**1. Pick a root folder.** The server can read and write only inside it. Use the folder your
designs live in, such as `~/designs`, not your whole home folder.
**2. Ask circuitRF for its configuration.** It prints the JSON an MCP client needs, with the
executable's full path filled in, and the matching Claude Code command:
| Platform | Command |
|---|---|
| macOS | `/Applications/circuitRF.app/Contents/MacOS/circuitRF serve --root ~/designs --print-config` |
| Windows | `circuitRF serve --root %USERPROFILE%\designs --print-config` (the installer puts circuitRF on `PATH`; **About circuitRF** shows the folder it is in) |
| Linux | `~/.local/bin/circuitrf serve --root ~/designs --print-config` |
**3. Register it with your client.** With Claude Code, run the `claude mcp add β¦` line it printed.
Most other clients take the printed JSON in their MCP settings. Start a new session afterwards,
because most clients load servers only when a session starts.
**4. Check that it answers.** Ask the agent to call circuitRF's `reference` tool. It should list
the reference topics.
Then read **[Designing with an AI agent](https://potatobeanradio.github.io/circuitRF/reference/ai-agents.html)**, which covers what
to tell the agent, which reference topics it should read first, and the design flow that works. The
full server description, including running it from a source build, is in
[The MCP Server](https://potatobeanradio.github.io/circuitRF/reference/mcp-server.html).
---
## Contributors are welcome β *especially RF domain experts*
circuitRF is meant to be **community-driven, by and for the RF engineering community.** We value **RF
domain knowledge as much as software experience.** If you design power amplifiers, LNAs, or mixers; build
RF EDA tooling; do device modeling; or develop transistor technology (GaN-on-SiC, GaN-on-Si, LDMOS, β¦),
**you are exactly who this project needs** β and circuitRF is a great place to use AI to build the
simulation features *you* want.
You do **not** need to be a professional software developer. If you've scripted in MATLAB or Python, you
have enough to start. Pair yourself with [Claude Code](https://www.anthropic.com/claude-code) (or your
AI assistant of choice) and let it do the heavy lifting on the C#.
---
## Architecture
circuitRF is built in strictly one-directional layers, and nothing below the UI knows the UI
exists. The layers, the engines, the enforced framework firewall and the source tree are described in
**[ARCHITECTURE.md](ARCHITECTURE.md)**.
---
## Developing circuitRF - Getting started
### 1. Install the tools
| Tool | Why | Get it |
|---|---|---|
| **.NET 10 SDK** | builds and runs circuitRF | |
| **Git** | clone the repos | |
| **Visual Studio Code** | edit + debug (lightweight, cross-platform) | |
| VS Code **C# Dev Kit** extension | C# editing/IntelliSense/debug in VS Code | |
Verify the SDK is installed:
```bash
dotnet --version # should print 10.x.x
```
### 2. Clone circuitRF
```bash
# cd to a working folder, then:
git clone https://github.com/potatobeanradio/circuitRF.git
```
### 3. Build and run
```bash
cd circuitRF
dotnet build # restores packages + compiles everything
dotnet run --project src/Ui # from the circuitRF/ directory:
```
For faster simulations, run the Release build: `dotnet run --project src/Ui -c Release`.
### 4. Optional β testing & building the device workers
```bash
dotnet test # optional 10-15 min of circuitRF development tests
```
A handful of loadpull tests read lab-measured `.spl`/`.lpcwave` files that are third-party data held
under terms that do not permit redistribution, so they have never been committed here. On a fresh
clone those tests report as **Skipped**, naming the path they wanted β they never fail, and a fresh
clone is green without them. Your own measurements in either format, dropped at those paths, exercise
the same code.
To build the device workers:
Needed only for PDKs whose device models ship as **compiled libraries**. `dotnet build` builds the
workers itself *if a C compiler is on PATH* β with none, it warns and carries on, and such a kit
refuses at Run.
Install one, then rebuild:
```powershell
winget install zig.zig # Windows (or: scoop install zig)
```
```bash
brew install zig # macOS
sudo snap install zig --classic --beta # Linux (or your package manager)
```
```bash
dotnet build
```
macOS also runs those Linux models in a VM circuitRF ships β one extra ~330 MB download, once:
```bash
dotnet build src/Ui -p:CrfBuildVmImage=true
```
Alternatives to zig (MinGW `gcc`, Docker/Podman) and the rest:
[BUILDING.md βΈ Helper programs](BUILDING.md#helper-programs).
### Note: To package circuitRF as an app with installers
[**BUILDING.md**](BUILDING.md) has step-by-step instructions for producing the installers users
download: `.msi` (Windows x64/arm64/x86, per-machine and per-user), `.zip` (the Windows update
payload), `.dmg` (macOS arm64/x64), `.deb` (Linux x64/arm64) and `.tar.gz` (the Linux user-local
channel). One script per platform, run from the repository root.
---
## Running circuitRF
### To launch the GUI
```bash
# from the circuitRF/ directory:
dotnet run --project src/Ui
```
### To run circuitRF headless from the command line
Full CLI documentation: the
[Command Line chapter](https://potatobeanradio.github.io/circuitRF/reference/cli.html) of the user docs (design notes in
[`docs/design/cli.md`](docs/design/cli.md)).
An installed circuitRF is the command line too (`circuitrf β¦`, `circuitrf serve --root `
for MCP, set up as in [Use circuitRF from an AI agent](#use-circuitrf-from-an-ai-agent)) β for an
agent installing it unattended, see
[Installing for an agent](https://potatobeanradio.github.io/circuitRF/reference/mcp-server.html#install).
```bash
# S-parameters: sweep 1-3 GHz in 50 MHz steps, write a Touchstone file
dotnet run --project src/Cli -- sparam mycircuit.cnl --freq 1GHz:3GHz:50MHz -o mycircuit.s2p
# DC operating point
dotnet run --project src/Cli -- dc mycircuit.cnl
# Harmonic balance (runs the parametric sweep, if one wraps the analysis)
dotnet run --project src/Cli -- hb hero2.cnl --set Pavl_dbm=0 -o hero2.npy
# Loadpull over the directive's Gamma grid, exported as loadpull interchange
dotnet run --project src/Cli -- lp hero3.cnl --pin -20:1:15 -o hero3.spl
# Loadpull pursuit: search for the max-power and max-efficiency terminations
dotnet run --project src/Cli -- lpp hero3B.cnl --out-grid found.gam -o hero3B.npy
# Electromagnetic extraction of the layout a .cem names β no other arguments needed
dotnet run --project src/Cli -- em Amp.cem
# Author a correct initial document: a workspace, then a cell inside it
dotnet run --project src/Cli -- new workspace ~/designs/Amp --tech pcb-4layer_FR-4_62mil_1oz
dotnet run --project src/Cli -- new cell ~/designs/Amp Stage1 --views schematic,symbol
# Bring artwork or a component in: one interchange format to another, or a part as a cell
dotnet run --project src/Cli -- convert Filter.dxf -o gerbers/
dotnet run --project src/Cli -- import part parts/ --into ~/designs/Amp --cell SOT-23
# Is it well formed, does it resolve, is it sound? Runs no analysis and writes nothing
dotnet run --project src/Cli -- check ~/designs/Amp
# Does the artwork match the drawing? (LVS β read-only; -o writes a report)
dotnet run --project src/Cli -- lvs ~/designs/Amp/Stage1
# What did circuitRF DECIDE β which technology, which chain, what value?
dotnet run --project src/Cli -- explain Amp.cem
dotnet run --project src/Cli -- explain Stage1.csch --expr "Zopt*2"
# Read a result back, or a document, as one JSON document
dotnet run --project src/Cli -- read results/Amp_em.npy --only S --json
# Dump the elaborated netlist (flattened + parameters resolved) - great for debugging
dotnet run --project src/Cli -- elab mycircuit.cnl
# Print the MCP client configuration for this build (an MCP client starts the server itself;
# see "Use circuitRF from an AI agent" above, and point clients at a built dll, not at dotnet run)
dotnet run --project src/Cli -- serve --root ~/designs --print-config
# Help
dotnet run --project src/Cli
```
### Run a netlist through an engine (in code)
The whole pipeline is three calls β read β elaborate β run β which is exactly what the CLI does:
```csharp
using CircuitRF.Core.Netlist;
using CircuitRF.Core.Elaboration;
using CircuitRF.Engine;
var (lib, testbench) = CnlReader.ReadFile("mycircuit.cnl");
var netlist = new Elaborator(lib).Elaborate(testbench);
var dataset = SParameterEngine.Run(netlist, freqsHz); // β a DataSet of DataCubes
```
---
## User documentation
The user documentation β Quick Start, New User's Guide and Reference Guide β is published at
****. It lives in `docs/user/`, is what
**Help βΈ circuitRF Documentation** opens, and is served online straight from this repository,
so the web pages and the shipped pages are the same bytes. **It is generated, not hand-edited.** By
default a run rebuilds every page and leaves every figure as committed; recapturing figures from the
live application is opt-in, because it is nearly all of a full run's time:
```bash
dotnet run --project tools/DocGen -- --out docs/user # every page; figures as committed
dotnet run --project tools/DocGen -- --out docs/user --figures # ...and the figures of pages whose .md changed
dotnet run --project tools/DocGen -- --out docs/user --figure layout-editor # ...and these figures, by name
dotnet run --project tools/DocGen -- --out docs/user --all-figures # ...and every figure (minutes)
dotnet run --project tools/DocGen -- --page docs/user/src/reference/wbond.md # just this page, in seconds
```
Prose is authored as Markdown under `docs/user/src/`; the pages under `docs/user/` are the output and
any edit to one is reverted by the next run. Figures are **vector captures of the running interface**
β the generator opens circuitRF headlessly, drives real views with real content, and writes SVG β so
they cannot drift from the application. Component parameter tables come from the live registry for
the same reason. There are no screenshots in this documentation and there are not meant to be.
`tools/DocGen/check-docs-current.sh` regenerates everything, figures included, and diffs, and fails if the committed output is not
what the generator produces. Run it after a UI change that moves a figure. The design note is
[`docs/design/user-docs-factory.md`](docs/design/user-docs-factory.md).
---
## Contributing
**Contributions are welcome and encouraged.** circuitRF is community-driven, by and for the RF community,
and **RF domain knowledge counts as much as software experience.** You don't need to be a career
programmer β MATLAB/Python scripting experience plus an AI assistant is plenty.
**Good first contributions:**
- Report Issues
- Use AI Agent to report issues, resolve them and initiate pull requests (PR)
**The ground rules:**
- The [architecture](ARCHITECTURE.md) is layered and the **UI firewall is enforced** β keep Avalonia out of
`RfCore`/`Core`/`Engine`/`Design`/`Cli`/`Harmonica`/`WBond` (a CI test will catch you).
Renderers stay Skia-only.
- **Every numerical change needs a `testdata/` regression test** within the tolerance the PRD states.
- The core is **MIT** β never ingest GPL code.
- Each subsystem has a `CLAUDE.md` with its local conventions; read the relevant one before diving in.
Substantial issues or new features should be discussed before a large PR, so we can point you at the right design
note (and save you rework).
---
## AI-assisted development
circuitRF was built largely with AI assistance (primarily [Claude](https://www.anthropic.com/claude) /
[Claude Code](https://www.anthropic.com/claude-code)), and **AI-assisted contributions are first-class
here.** The codebase is structured for it: spatial `CLAUDE.md` memory files capture the invariants and
local conventions of each subsystem, `docs/design/` holds the reasoning behind each part, and
`docs/skills/` holds step-by-step procedures you can hand directly to an AI agent.
This is the deliberate bet of the project: **an RF expert with an AI assistant can build the simulation
features they need.** If that describes you, you're in the right place.
---
## License
circuitRF's own source code is released under the **[MIT License](LICENSE)**. A future commercial
superset, if any, layers on through a clean extension boundary without forking the core.
The distribution also contains third-party components under their own terms, inventoried in
**[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)**. Three of them are copyleft and worth knowing about
before you redistribute a build:
- **[CSparse.NET](https://github.com/wo80/CSparse.NET)** (sparse complex LU, used throughout the engine)
is **LGPL-2.1-only**. The packaged installers link it statically, so LGPL Β§6's relink requirement
applies β satisfied here by publishing complete source, since anyone can substitute a modified
CSparse.NET and rebuild. If you redistribute circuitRF binaries, that obligation travels with them.
- **[Open CASCADE Technology](https://github.com/Open-Cascade-SAS/OCCT)** (the geometry kernel behind
booleans, fillets and STEP, run by `tools/geometry-worker`) is **LGPL-2.1-only with the Open CASCADE
Exception**. The installers carry it unmodified as shared libraries in one replaceable folder, and
its source is available under the written offer in the notices. The repository holds none of it:
building from source fetches it with the recipe in `tools/geometry-worker/occt/`.
- **[`tools/osdi-worker/osdi.h`](tools/osdi-worker/osdi.h)** is **MPL-2.0** (Β© 2022 SemiMod GmbH, from
ngspice). MPL is copyleft at file scope: the file may live inside an MIT project, but it stays MPL
and its header notice must not be removed.
No strong-copyleft (GPL/AGPL) code is ingested, and none is planned β see `CLAUDE.md` for the standing
rule on learning from GPL simulators without copying them.
---
## Acknowledgments
- **[Avalonia](https://avaloniaui.net/)** (cross-platform UI β MIT)
- **[SkiaSharp](https://github.com/mono/SkiaSharp)** (2D rendering β MIT)
- **[CSparse.NET](https://github.com/wo80/CSparse.NET)** (sparse complex LU β **LGPL-2.1-only**)
- **[Open CASCADE Technology](https://github.com/Open-Cascade-SAS/OCCT)** (geometry kernel β **LGPL-2.1-only** with the Open CASCADE Exception 1.0); circuitRF uses facilities provided by Open CASCADE Technology
- **[NumFlat](https://github.com/sinshu/numflat)** (dense linear algebra β MIT)
- **[FftFlat](https://github.com/sinshu/FftFlat)** (FFT β MIT)
- **[Clipper2](https://github.com/AngusJohnson/Clipper2)** (integer-coordinate polygon clipping and offsetting, used by the layout editor β Boost Software License)
- **[gdstk](https://github.com/heitzmann/gdstk)** (OASIS and GDSII reading and writing for the (gdstk) import and export commands, run by `tools/gdstk-worker` β Boost Software License), with its bundled Clipper 6.4.2 (Boost Software License), **[Qhull](http://www.qhull.org)** (Qhull licence) and **[zlib](https://zlib.net)** (zlib licence), all linked statically into the one worker program
- **[CommunityToolkit.MVVM](https://github.com/CommunityToolkit/dotnet)** (MIT)
- **[Dock.Avalonia](https://github.com/wieslawsoltes/Dock)** (docking β MIT)
- **[Material.Icons.Avalonia](https://github.com/SKProCH/Material.Icons)** (icon set β MIT)
- **[PureHDF](https://github.com/Apollo3zehn/PureHDF)** (HDF5 export β MIT)
- **[Markdig](https://github.com/xoofx/markdig)** (Markdown rendering β BSD-2-Clause)
- **[Svg](https://github.com/svg-net/SVG)** (MS-PL) and **[Svg.Skia](https://github.com/wieslawsoltes/Svg.Skia)** (MIT), used by `tools/IconGen` at packaging time
- Fonts: **IBM Plex Sans** and **Inter** (SIL Open Font License 1.1), **DejaVu Sans** (Bitstream Vera Fonts License)
- **[`osdi.h`](tools/osdi-worker/osdi.h)** from the ngspice OSDI component (Β© 2022 SemiMod GmbH β MPL-2.0)
Full terms, and what each one obliges you to do if you redistribute a build, are in
**[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)**.