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](https://circuittwin.ai/docs/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](https://circuittwin.ai/docs/concepts#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](https://github.com/buserror/simavr) , [simavr parts](https://github.com/buserror/simavr/tree/master/examples/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](https://circuittwin.ai/guides/avr-atmega-firmware-ci), [Arduino Uno twin](https://circuittwin.ai/boards/arduino-uno)).

## Comparison

__CircuitTwin and simavr__
| 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](https://circuittwin.ai/boards)).                                                                            | 8-bit AVR microcontrollers only, with core definitions generated from avr-libc headers covering ATmega and ATtiny families ([simavr GitHub](https://github.com/buserror/simavr) , [simavr cores](https://github.com/buserror/simavr/tree/master/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](https://circuittwin.ai/twins), [Bring your board](https://circuittwin.ai/docs/import)). | 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](https://github.com/buserror/simavr/tree/master/examples/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](https://circuittwin.ai/docs/ide), [Test in CI](https://circuittwin.ai/docs/ci)).                              | Built-in avr-gdb stub (\-g) and native VCD waveform dumps for inspecting pins and IRQs in GTKWave ([simavr GitHub](https://github.com/buserror/simavr), 2026-11-20).                                                                                                                           |
| Unmodelled registers & faults | Exits 4 (inconclusive) naming any unmodelled peripheral register accessed, and runs declarative YAML fault matrices ([Test your firmware](https://circuittwin.ai/docs/testing)).                                                         | C-level programmatic injection through avr\_irq hooks; no built-in declarative fault-matrix runner or automatic unmodelled-register verdict ([simavr GitHub](https://github.com/buserror/simavr) , [simavr parts](https://github.com/buserror/simavr/tree/master/examples/parts), 2026-11-20). |
| License & workflow            | Hosted and local ct CLI (Windows, macOS, Linux), MCP server and browser workspace; Free plan open now ([Pricing](https://circuittwin.ai/pricing)).                                                                                       | GPL-3.0-or-later open source; small C codebase running locally on Linux and macOS with zero account required ([simavr GitHub](https://github.com/buserror/simavr), 2026-11-20).                                                                                                                |

## Where simavr is stronger

- Small, hackable GPL-3.0 C library with zero cloud dependency or account setup ([simavr GitHub](https://github.com/buserror/simavr), 2026-11-20).
- Broad 8-bit ATmega and ATtiny coverage derived directly from `avr-libc` headers ([simavr cores](https://github.com/buserror/simavr/tree/master/simavr/cores), 2026-11-20).
- Native VCD trace generation lets engineers inspect pin transitions and internal AVR interrupts visually in GTKWave ([simavr GitHub](https://github.com/buserror/simavr), 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_irq` mocks.
- 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](https://circuittwin.ai/docs/accuracy)) 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](https://github.com/buserror/simavr): 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)](https://github.com/buserror/simavr/tree/master/simavr/cores): 8-bit ATmega and ATtiny core definitions compiled from avr-libc headers (ATmega328P, ATmega2560, ATtiny85, etc.).
- [simavr Example Board Parts (C avr\_irq API)](https://github.com/buserror/simavr/tree/master/examples/parts): 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](https://circuittwin.ai/docs/concepts): Twins built from vendor documents; runs, verdicts and evidence labels; determinism; scenes and links.
- [Bring your board](https://circuittwin.ai/docs/import): Twins generated from datasheets and companion documents; board import from KiCad, Eagle, EasyEDA, Altium, ODB++ and IPC-2581.
- [Test your firmware](https://circuittwin.ai/docs/testing): Test suites and test matrices, locally and on the hosted service.
- [Test in CI](https://circuittwin.ai/docs/ci): The GitHub Action and the GitLab CI/CD component.
- [Debug in your IDE](https://circuittwin.ai/docs/ide): The GDB server for STM32CubeIDE, VS Code and plain GDB (reverse-step/continue, RTOS threads, SWO/ITM and RTT).
- [Pricing](https://circuittwin.ai/pricing): The plans and their weekly allowances.
- [Board dashboard](https://circuittwin.ai/docs/board-dashboard): Each board and suite with its level, status and evidence file.
- [Accuracy report](https://circuittwin.ai/docs/accuracy): What the twins are checked against, the results and the known gaps, including timing and the reference emulators.

## More

Other comparisons:

- [CircuitTwin vs Renode](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/qemu): A general machine emulator, compared on a benchmark of seeded firmware bugs that ran on both.
- [CircuitTwin vs Simantic](https://circuittwin.ai/compare/simantic): A firmware simulator with published firmware demos and tracing options, compared from its public pages.
- [CircuitTwin vs Wokwi](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/proteus): 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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/docs/accuracy): What the twins are checked against, the results and the known gaps, with the record behind each number.
- [Board dashboard](https://circuittwin.ai/docs/board-dashboard): Each board and suite with its level, status and evidence file.
- [Agent benchmark](https://circuittwin.ai/docs/agent-benchmark): Seeded firmware bugs run on a twin, Renode and QEMU, with every case and the record.
- [Twin generation and checks](https://circuittwin.ai/docs/twin-generation): How a twin is generated from vendor documents and checked before you rely on it.
