A 4-bit feedback-driven computing machine, from a single self-correcting adder to a stored-program automaton.
This project began from a simple question: what if the output of an arithmetic operation could be fed back into its own input? The first prototype could only add and take feedback. Five versions later, the Repeated Arithmetic Machine (RAM) is a modular 4-bit system with feedback-driven control, automatic error correction, and the ability to execute programs stored in memory. It's the hardware root the rest of this work builds on, the point where the project crossed from circuits into a programmable system.
The instruction set was not designed on paper first. It emerged from the machine's own hardware primitives, addition, subtraction, feedback correction, fault recovery, reset, and was mapped to assembly only afterward. Each instruction corresponds to a dedicated hardware operation rather than a microcoded sequence, so the software vocabulary of the machine was discovered from its hardware.
Every module was synthesized with Yosys, technology-mapped to the Sky130HD standard-cell library, and analyzed for timing and power to confirm the design is hardware-realizable rather than only functionally correct in simulation.
| Module | Cells | Area | Critical path | Power |
|---|---|---|---|---|
| Operand Storage System | 9 | 337.8 µm² | 0.64 ns | 57.3 µW |
| Arithmetic Unit | 8 | 376.6 µm² | 1.56 ns | 174 µW |
| Feedback System | 4 | 25.0 µm² | 0.10 ns | 3.24 µW |
| RAM Engine (full system) | 21 | 718.2 µm² | 1.99 ns | 186 µW |
The assembly layer built on top of this machine is its own project. See Assembler.