1-bit CPU with 4-bit Address

Submitted by Andrew Wasson on Sat, 05/12/2012 - 9:41pm

This is a Javascript model of the 1-bit CPU described in the article at Hack A Day. It is programmed with an example binary counting program that counts from 0 - 7 and displays the results in the opcode registers 0, 2 and 4 (highlighted in red).

The top bar represents a display showing the current address and instruction. The grid below is a realtime display of the program memory where you can see the processor writing data and jumping according to the current instruction.

       
Address Opcode Operand A Operand B
0000
0
0000
0111

0000 0 0000 0111
0001 1 0000 1101
0010 0 0010 1001
0011 1 0010 1101
0100 0 0100 1011
0101 1 0100 1101
0110 0 0000 0000
0111 0 0000 0111
1000 1 1000 0010
1001 0 0010 1001
1010 1 1010 0100
1011 0 0100 1011
1100 1 1100 1101
1101 1 1101 0000
1110 0 0000 0000
1111 0 0000 0000

More information about the 1-bit processor can be found here.

The next step is to build it with a couple of TTL chips and some RAM.

Homebuilt CPUs WebRing