Build Your Own Custom Chipsin C, Rust or AssemblyScript
Define your own integrated circuits with the Wokwi-compatible Custom Chips API. Write the chip in C, Rust or AssemblyScript. Eidolon compiles it to WebAssembly and runs it on the canvas like any other part, driven by Arduino, ESP32 or RP2040 firmware.
Wokwi-compatible API · Free and open source · Runs as WebAssembly
What can you build?
Custom chips fill the gaps between built-in parts. If a real IC isn't on the shelf, build a behavioural model and your firmware never knows the difference.
Sensor stand-ins
Mock a temperature, pressure or IMU sensor that responds over I²C. Useful when you don't have the part yet but want to develop the firmware.
Protocol bridges
Build a UART-to-I²C bridge, an SPI shift register, a digital-to-analog wrapper or a custom level translator.
Custom logic
Glue logic, state machines, address decoders and debouncers: anything you'd otherwise wire up with discrete gates.
Behavioural ICs
Re-create the externally visible behaviour of a real IC, such as a 7-segment driver or a stepper controller, without simulating its analog internals.
Test fixtures
Inject signals on a schedule, capture pin transitions and check firmware against the pin-level behaviour you expect.
Reusable chips
Keep a chip's definition and source files together, then share them or reuse them in another project.
What the API gives you
The Eidolon Custom Chips runtime is fully Wokwi-compatible, with extras for the SPICE and multi-board environment.
Pin I/O
Read pin state, write digital high or low, configure pull-ups and react to edges with pin-watch callbacks.
Attributes
Read user-configurable chip attributes, such as numbers and strings, from the property panel and re-read them when they change.
Timers
Schedule callbacks at microsecond resolution. The runtime fires them aligned to the simulator clock.
I²C bus
Connect to any wire on an I²C bus, respond to start and stop conditions, acknowledge addresses, and send and receive bytes.
SPI bus
Bidirectional SPI with chip-select handling. Implement a shift register, an SPI memory or a sensor with one byte-stream callback.
WASI shim
A small WASI shim lets your C or Rust chip use standard-library calls (printf, string ops, math) without a heavy runtime.
Frequently asked questions
Build your first custom chip
Download Eidolon or open the editor, then create a chip in C, Rust or AssemblyScript.