Compare
CircuitTwin vs simavr
simavr is a lean GPL-3.0 open-source 8-bit AVR simulator with avr-gdb and GTKWave VCD traces. CircuitTwin pairs Arduino Uno and Mega 2560 twins with datasheet-generated sensors, KiCad PCB import, YAML fault matrices and 32-bit MCU coverage.
How CircuitTwin runs your firmware
CircuitTwin runs your firmware on its own engine (ADR-0016), not on Renode, QEMU or another external emulator. Twins are compiled from vendor datasheets and CMSIS-SVD files alongside reference manuals, CMSIS packs and errata (Concepts).
A run that touches registers a twin does not model ends inconclusive, not passed, and its report names what the firmware relied on. Evidence labels stay provisional until an independent reference confirms them; see Runs and results.
Where each fits
Pick simavr when you want a self-contained GPL-3.0 C library for 8-bit AVR firmware and GTKWave VCD pin traces; pick CircuitTwin for declarative CI fault matrices, datasheet sensor twins or teams spanning AVR and 32-bit MCUs.
- simavr fits lightweight local AVR-only development, custom C test benches using
avr_irq, PlatformIO/Makefile AVR loops and GTKWave VCD pin inspection (simavr GitHub, simavr parts, 2026-11-20). - CircuitTwin fits Arduino Uno and Mega 2560 CI pipelines (including Marlin G-code and stepper verification), attaching datasheet-generated I2C/SPI sensors without writing C mocks, or standardizing one simulator across AVR, STM32, nRF52 and ESP32 (AVR CI guide, Arduino Uno twin).
Comparison
| Area | CircuitTwin | simavr |
|---|---|---|
| Architecture coverage | 8-bit AVR (Arduino Uno ATmega328P, Nano, Mega 2560) plus 32-bit STM32, nRF52, NXP, RP2040/RP2350 and ESP32 (35 board twins). | 8-bit AVR microcontrollers only, with core definitions generated from avr-libc headers covering ATmega and ATtiny families (simavr GitHub, simavr cores, 2026-11-20). |
| External parts & PCBs | Generates sensor and bus IC twins from vendor datasheets (ct twin generate) and imports KiCad, Altium, Eagle or ODB++ PCBs (39 component twins, Bring your board). | Board wiring and external parts (displays, buttons, sensors) are written in C using the avr_irq callback API and compiled into a custom host harness (simavr parts, 2026-11-20). |
| Debugging & traces | GDB server with reverse stepping (reverse-stepi), structured JSON verdicts and JUnit/SARIF CI reports (Debug in your IDE, Test in CI). | Built-in avr-gdb stub (-g) and native VCD waveform dumps for inspecting pins and IRQs in GTKWave (simavr GitHub, 2026-11-20). |
| Unmodelled registers & faults | Exits 4 (inconclusive) naming any unmodelled peripheral register accessed, and runs declarative YAML fault matrices (Test your firmware). | C-level programmatic injection through avr_irq hooks; no built-in declarative fault-matrix runner or automatic unmodelled-register verdict (simavr GitHub, simavr parts, 2026-11-20). |
| License & workflow | Hosted and local ct CLI (Windows, macOS, Linux), MCP server and browser workspace; Free plan open now (Pricing). | GPL-3.0-or-later open source; small C codebase running locally on Linux and macOS with zero account required (simavr GitHub, 2026-11-20). |
Where simavr is stronger
- Small, hackable GPL-3.0 C library with zero cloud dependency or account setup (simavr GitHub, 2026-11-20).
- Broad 8-bit ATmega and ATtiny coverage derived directly from
avr-libcheaders (simavr cores, 2026-11-20). - Native VCD trace generation lets engineers inspect pin transitions and internal AVR interrupts visually in GTKWave (simavr GitHub, 2026-11-20).
Where CircuitTwin is stronger
- Generates external I2C/SPI sensor and peripheral twins straight from vendor PDF datasheets instead of hand-writing C
avr_irqmocks. - Imports KiCad, Altium or Eagle boards directly and sweeps bus disconnects, NACKs or brownouts in YAML fault matrices with JUnit/SARIF output.
- Spans both 8-bit AVR (backed by AVR CPU differential checks and Mega 2560 silicon capture in Accuracy report) and 32-bit ARM Cortex-M, RISC-V and Xtensa targets in one CLI and MCP workflow.
Sources
Every source below was read on 2026-11-20.
About simavr
- buserror/simavr — Lean, Mean and Hackable AVR Simulator: Open-source GPL-3.0 8-bit AVR simulator for Linux and macOS with ELF/HEX loading, avr-gdb server and VCD trace output.
- simavr Core Definitions (avr-libc based): 8-bit ATmega and ATtiny core definitions compiled from avr-libc headers (ATmega328P, ATmega2560, ATtiny85, etc.).
- simavr Example Board Parts (C avr_irq API): Custom external peripherals (buttons, LCDs, sensors) implemented in C against simavr avr_irq hooks.
About CircuitTwin
- ADR-0016, the architecture decision record for the deterministic functional-twin core (accepted 2026-08-20, amended 2026-10-21): the custom engine is the only active execution path. It is an internal record of the CircuitTwin repository.
- Core concepts: Twins built from vendor documents; runs, verdicts and evidence labels; determinism; scenes and links.
- Bring your board: Twins generated from datasheets and companion documents; board import from KiCad, Eagle, EasyEDA, Altium, ODB++ and IPC-2581.
- Test your firmware: Test suites and test matrices, locally and on the hosted service.
- Test in CI: The GitHub Action and the GitLab CI/CD component.
- Debug in your IDE: The GDB server for STM32CubeIDE, VS Code and plain GDB (reverse-step/continue, RTOS threads, SWO/ITM and RTT).
- Pricing: The plans and their weekly allowances.
- Board dashboard: Each board and suite with its level, status and evidence file.
- Accuracy report: What the twins are checked against, the results and the known gaps, including timing and the reference emulators.
More
Other comparisons:
- CircuitTwin vs Renode: An open-source emulation framework with a large catalog of boards, compared from its public pages and on the agent benchmark.
- CircuitTwin vs QEMU: A general machine emulator, compared on a benchmark of seeded firmware bugs that ran on both.
- CircuitTwin vs Simantic: A firmware simulator with published firmware demos and tracing options, compared from its public pages.
- CircuitTwin vs Wokwi: A browser and VS Code simulator for ESP32, Arduino and RP2040, compared on PCB import, datasheet twins, fault matrices and unmodelled-register reporting.
- CircuitTwin vs LabWired: An MIT open-core YAML-configured embedded simulator compared on PCB auto-wiring, datasheet twin generation, 17-ISA coverage, 3D Proving Ground, and hosted MCP.
- CircuitTwin vs HardLabs: Design-driven PCB firmware-in-the-loop simulation compared on self-serve datasheet twins, 3D Proving Ground physics, hosted MCP, and published evidence.
- CircuitTwin vs Velxio: A free AGPLv3 browser simulator with WebAssembly ngspice compared on custom PCB import, headless CI matrices, reverse-GDB, and explicit unmodelled-register checks.
- CircuitTwin vs HIL Benches: Physical Hardware-in-the-Loop racks vs deterministic digital twins for PR-level firmware CI, fault matrices, electrical sign-off and cost.
- CircuitTwin vs Proteus VSM: Windows mixed-mode SPICE/MCU schematic simulation compared with Linux/macOS headless CI, KiCad PCB import and datasheet twin generation.
- CircuitTwin vs Arm Virtual Hardware: Official Arm Corstone/Ethos-U FVPs compared with multi-vendor MCUs, custom PCB netlists, sensor twins and bus fault injection.
- CircuitTwin vs PX4 SITL: Host POSIX Gazebo simulation compared with executing the real px4_fmu-v6c Cortex-M7 ELF on STM32H743 and SPI/I2C sensor twins.
- CircuitTwin vs Zephyr native_sim: Zephyr POSIX host builds (ASan/UBSan/Twister) compared with running the real cross-compiled MCU zephyr.elf on board twins.
- CircuitTwin vs Keil uVision Simulator: Windows legacy Cortex-M IDE simulation compared with headless Linux/macOS CI and datasheet-generated vendor peripheral twins.
The records behind CircuitTwin’s numbers:
- Accuracy report: What the twins are checked against, the results and the known gaps, with the record behind each number.
- Board dashboard: Each board and suite with its level, status and evidence file.
- Agent benchmark: Seeded firmware bugs run on a twin, Renode and QEMU, with every case and the record.
- Twin generation and checks: How a twin is generated from vendor documents and checked before you rely on it.