circuitRF README

The project's README from github.com/potatobeanradio/circuitRF. As one markdown file: README.md.

circuitRF

A lightweight, cross-platform EDA tool for RF design — for the RF community, by the RF community.

License: MIT .NET 10 Platforms UI: Avalonia

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 and harmonic-balance 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 / openEMS), and a built-in FEM thermal solver. Supports command line and MCP.

📖 Read the user documentation online

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; academic researchers; and capable hobbyists. It is written in C# / .NET 10, with an Avalonia 12 GUI rendered through SkiaSharp, and it was built largely AI-assisted (see AI-assisted development).

Status: 1.0.5. Please file issues.

Features

What is not in it yet:

the open green fields.


Screenshots

Schematic editor

circuitRF 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

circuitRF loadpull contours on a Smith chart

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

circuitRF 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

circuitRF 3D editor Draw and edit in 3D and send to FEM or FDTD EM solvers or the built-in FEM thermal solver


Download

circuitRF 1.0.5 is the current stable release. Beta versions are published as GitHub pre-releases, and Settings ▸ Security & Permissions ▸ Include beta releases is what puts them on your update channel. It is ticked by default — untick it to receive stable releases only.

Platform Download
Windows, Intel/AMD circuitRF-1.0.5-win-x64-user.msi
Windows, ARM circuitRF-1.0.5-win-arm64-user.msi
Windows, 32-bit circuitRF-1.0.5-win-x86-user.msi
macOS, Apple Silicon circuitRF-1.0.5-arm64.dmg
macOS, Intel circuitRF-1.0.5-x64.dmg
Linux, Intel/AMD circuitRF-1.0.5-linux-x64.tar.gz
Linux, ARM circuitRF-1.0.5-linux-arm64.tar.gz

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.

tar xzf circuitRF-1.0.5-linux-x64.tar.gz
./circuitRF-1.0.5/install.sh

Installing for everyone on the machine? The Windows .msi files without -user, and the .deb files, are on the releases page. They need administrator rights, so they cannot update themselves — they tell you when a new version is out instead.

Automatic updates can be turned off in Settings ▸ Security & Permissions. Building the installers yourself: BUILDING.md.


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 (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.


Getting started

You can help develop circuitRF using Windows, macOS, or Linux.

1. Install the tools

Tool Why Get it
.NET 10 SDK builds and runs circuitRF https://dotnet.microsoft.com/download/dotnet/10.0
Git clone the repos https://git-scm.com/downloads
Visual Studio Code edit + debug (lightweight, cross-platform) https://code.visualstudio.com/
VS Code C# Dev Kit extension C# editing/IntelliSense/debug in VS Code https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit

Verify the SDK is installed:

dotnet --version      # should print 10.x.x

2. Clone circuitRF

# cd to a working folder, then:
git clone https://github.com/potatobeanradio/circuitRF.git

3. Build and run

cd circuitRF

dotnet build      # restores packages + compiles everything
dotnet run --project src/Ui # from the circuitRF/ directory:

4. Optional — testing & building the device workers

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:

winget install zig.zig                      # Windows  (or: scoop install zig)
brew install zig                            # macOS
sudo snap install zig --classic --beta      # Linux    (or your package manager)
dotnet build

macOS also runs those Linux models in a VM circuitRF ships — one extra ~330 MB download, once:

dotnet build src/Ui -p:CrfBuildVmImage=true

Alternatives to zig (MinGW gcc, Docker/Podman) and the rest: BUILDING.md ▸ Helper programs.

Note: To package circuitRF as an app with installers

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

# from the circuitRF/ directory:
dotnet run --project src/Ui

To run circuitRF headless from the command line

Full CLI documentation: the Command Line chapter of the user docs (design notes in docs/design/cli.md). An installed circuitRF is the command line too (circuitrf <verb> …, circuitrf serve --root <dir> for MCP) — for an agent installing it unattended, see Installing for an agent.

# 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

# Speak a protocol to an external client over stdin/stdout, confined to one directory
dotnet run --project src/Cli -- serve --root ~/designs

# 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:

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

What circuitRF doesn't do yet

If you want to contribute to any of the above, please contact me.


User documentation

The user documentation — Quick Start, New User's Guide and Reference Guide — is published at https://potatobeanradio.github.io/circuitRF/. 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. One command rebuilds every page and every figure from the live application:

dotnet run --project tools/DocGen -- --out docs/user
dotnet run --project tools/DocGen -- --page docs/user/src/reference/wbond.md   # just this page, in seconds (prose edits only; no figures)

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 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.

Slide decks

The same sources also produce four landscape PDF decks into docs/slides/ (git-ignored, a build product). Both options default to everything:

dotnet run --project tools/DocGen -- --slides docs/slides                                # all 4, light + dark
dotnet run --project tools/DocGen -- --slides docs/slides --deck overview --theme dark

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:

The ground rules:

Open an issue to discuss anything substantial 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 / 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. 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. Three of them are copyleft and worth knowing about before you redistribute a build:

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

Full terms, and what each one obliges you to do if you redistribute a build, are in THIRD-PARTY-NOTICES.md.

circuitRF (potatobeanradio/circuitRF)

Searching Database…

这是什么?circuitRF 是一款用于射频与微波电路设计的轻量级跨平台 EDA 工具:带 DC/S 参数/谐波平衡仿真和负载牵引(loadpull)的原理图绘制、2D/3D 版图编辑器,以及电磁(MoM/FEM/FDTD)和热学 FEM 求解器,全部集成在一个应用里。
这是图形界面应用还是命令行工具?它主要是用 Avalonia/.NET 构建的桌面图形界面应用,但也附带 CLI 和 MCP 服务器,因此可以编写脚本或由 AI 代理直接驱动。
使用它需要 .NET SDK 吗?不需要——发行版安装包是自包含的。只有当你想从源码构建 circuitRF 或贡献代码时才需要 .NET 10 SDK。
还有哪些仿真功能没做完?没有交互式调谐或优化器,没有噪声分析(NF、相位噪声、Fmin/Γopt),也没有瞬态或包络分析——circuitRF 目前严格局限于频域。
MIT 许可证有什么需要注意的地方?circuitRF 核心采用 MIT,但发行的二进制文件捆绑了 LGPL-2.1 组件(CSparse.NET、Open CASCADE Technology)和一个 MPL-2.0 头文件;再分发构建版本时要履行它们的重新链接/声明义务。
版图编辑器能导入和导出哪些文件格式?它可以与 Gerber + Excellon、GDSII、DXF 和 .kicadpcb 板级文件互转,3D 编辑器则可以导入/导出 STEP 文件。
circuitRF 是为谁打造的?面向觉得传统 EDA 工具的成本或复杂度不值得的射频从业者——功放、低噪声放大器(LNA)和混频器设计师、射频/器件建模工程师、学术研究者以及有能力的爱好者。
这个项目是怎么开发出来的?它在很大程度上借助 AI 辅助开发(主要用 Claude Code),仓库为每个子系统保留了 CLAUDE.md 记忆文件以及 docs/skills/ 下的操作规程,让 AI 代理可以持续扩展它。
它超出了版图 2.5D 电磁仿真的范畴吗?超出了——除了针对版图基板叠层的内置 2.5D MoM 求解器,3D 编辑器还能把几何结构发送给 FEM/FDTD 求解器(Palace 或 openEMS)以及内置的 FEM 热学求解器。
Size
161.5 MB
Stars
231
Age
1mo
Commits · 90 Days