A processor needs more than an ALU that can add: it needs to deliver the right operands, preserve intermediate results and return from a function to the right instruction. Pavel’s ECM-16/TTL project on Hackaday.io makes that coordination the central challenge of a 16-bit computer intended for 74HC logic chips. Its June 3, 2026 demonstration uses recursive Fibonacci in a software emulator to exercise those connections before the full machine reaches hardware.
Created on August 16, 2018, this is a long-running design rather than a newly launched computer. Pavel reports having built a 16-bit datapath containing the main ALU, eight-register file and a rudimentary controller. That is a restricted processing unit, not the complete proposed system; the current route forward runs through software emulation, a full Verilog implementation on FPGA, and eventually a fuller discrete-logic build.
Recursion gives the stack something to do
The Fibonacci demonstration is deliberately inefficient. For an input greater than one, the function calls itself twice and adds the returned values. Both base cases return one, and the example starts with an input of five.
Efficiency isn't the point. Nested calls require the machine to keep track of where execution should return and which values still matter. Pavel maps local variables to CPU registers, passes function parameters through the stack, and uses stack-pointer-relative data loads and stores. The listing uses program-counter-relative jumps.
There was no compiler or assembler available for this demonstration, so Pavel translated the program into assembly and machine words manually. That makes a short program particularly useful: it puts several architectural mechanisms to work without requiring a large software toolchain first.
There is no printed answer, either. At the time of the log, the emulator had no conventional I/O, only a rudimentary DMA facility for writing directly into memory. Instead, its visible registers and memory provide a way to inspect the result. The demonstration is therefore a test of instruction execution and calling behavior, not an end-to-end application running on the finished computer.
The emulator models the connections, not just the arithmetic
In the May 31 emulation log, Pavel explains why a new model was needed. The existing design in the Digital simulator had become difficult to revise and had timing bugs that he couldn't resolve. A smaller software model offered a quicker way to test instruction sequences and changes to micro-operation scheduling.
The resulting C program grew beyond a collection of register variables. Its ALU is described functionally, but the model accounts for the buses and selectors connecting the functional blocks, along with the sequencing of data propagation. An ncurses interface exposes register values, selected bus values, controller state, the microinstruction control pattern and the emulator’s entire 1 kB memory.
That visibility matters because a correct arithmetic result can still land in the wrong place—or arrive at the wrong moment. Pavel says most refinements to the project have concerned data movement rather than the ALU’s repertoire. Drawing out those paths also revealed opportunities to merge controller states, though fewer states came at the cost of more complicated transition logic.
As of May 31, the emulator implemented most instructions, including ALU operations, memory accesses in all addressing modes, moves and jumps, including subroutine calls. Address arithmetic, interrupt-related instructions and some miscellaneous operations remained to be added.
Hardware constraints still shape the software model
The architecture is load/store: arithmetic operates on registers, with separate instructions moving values to and from memory. Its 16-bit datapath sits alongside a 24-bit address path. In the March 7 planning log, Pavel favors that address width over 32 bits partly to keep the address adder and eventual wiring manageable. The emulator’s small memory is a test environment, not the architecture’s proposed capacity.
Some component work has already crossed into FPGA testing. Pavel reports testing a four-bit funnel-shifter model in March, followed by a 16-bit Verilog version in April. The larger shifter can use a temporary register alongside its source operand to extract a contiguous 16-bit field or perform extended rotations. That is a tested component, not evidence that the whole CPU has been implemented on FPGA.
Adding that temporary register also reaches beyond the ALU. In the May 26 interrupt-design update, Pavel proposes saving it along with the status register and return address when entering an interrupt, then restoring them together with a new interrupt-return instruction. A register introduced to improve shifts becomes state that the control system must preserve.
That is the useful lesson running through ECM-16/TTL: adding an operation is only part of designing a processor. The next revealing test is whether an interrupt can pause a program, preserve all the state its instructions depend on, and resume it unchanged. The emulator makes those details inspectable before they become a much harder wiring problem.
Source: ECM-16/TTL homebrew computer