Hi! This is my first topic, but I wanted to say that I have made a 1-Bit CPU that fits onto a normal sized board! I personally don’t have enough gears to build it on my own, but I have made it online here
This took me a few hours to make, but it works, with a few small bugs (that hopefully some people could help me fix, though I don’t know if that’s possible.)
I know this isn’t the first CPU made in TT, but I’m pretty sure it’s the first one that fits on a board.
A diagram helps show what each part is:
Here’s some explanation
This shows that this is a 1-bit CPU with two bits of RAM.
The PC helper makes it so the program stops at the third instruction (non-existent), unless you use the reset instruction.
The ROM uses ramps for whatever instruction you want to run.
The RAM starts at 0 for whenever you use it
The PC just says if it’s reading the first or second instruction
The Read/Run helps with the red balls getting back over to the blue part
The instruction flip-flop sets itself to the current instruction
To make a program, you need to set up the ramps and crosses at the right place, the first bit at 1, and the second bit at 2.
The bottom instruction is INC, or increment the RAM by one, while the top instruction is RST, or reset. This is basically a jump instruction, and makes it so it will run the first instruction again.
This instruction set allows you to run 4 (3) programs.
The first two add one to the RAM forever (One resetting on the first instruction, the other resetting on the second)
The nex is a program that intercepts a red ball (This is the bug. If you reset twice, it will intercept a red ball)
The last one adds two to RAM and intercepts a blue ball (successful)
Currently the ROM is the first program, adding one to the RAM and resetting the PC helper. This leads to another bug: overflows.
Whenever the RAM overflows, it will release another red ball resetting it to 1, and not 0.
This is about it, and I hope you enjoy messing around with it! Maybe try to change the instruction set (completely possible), and be sure to possibly be seeing more of me soon