From logic gates to your own CPU: circuit editor and simulator with tests, plus the ASH-16 CPU with assembler and debugger.

eLogica is a digital circuit editor and simulator for travelling the road from logic gates to a CPU. You draw circuits, test them with tables and reuse them as blocks. The same window holds ASH-16, a 16-bit reference CPU with its assembler and debugger. The interface is in Spanish and English.
The program is split into three parts:
The simulator is event-driven with unit delay: it only recalculates what changes, so glitches and oscillations become visible. Values have four states (0, 1, undefined and high impedance) on buses of up to 32 bits. Before simulating, the circuit is flattened to bits: splitters and tunnels are treated as joins. If a net does not settle within an event limit, it is flagged as oscillating.
A project is a single readable JSON file with all the circuits, their tests and the CPU program. Without a file, the app opens an example that goes from a half adder to a 4-bit adder with a counter, plus a program that says hello and moves a dot around the screen.
Rust in three crates: core, CPU and interface. The interface uses egui with the house theme; projects are stored as JSON with serde. It is portable: settings are kept next to the executable.
ASH-16 runs as an instruction-level model: it cannot yet be built from blocks and compared cycle by cycle with the reference. There are no guided lessons and no export to image. Editing a circuit rebuilds the simulation, so probes and flip-flop state are lost.