0 Members and 4 Guests are viewing this topic.
I built a 4 bit CPU in Minecraft, but I only allowed one cycle operations / instructions, that made it a lot easier. For the decoding I splitted the 12 bit instruction code into a 3 bit OP-code, a 4 bit data part and a 5 bit address part. The OP-code decoder works with an and-gate array selecting the data / address and putting it on the right bus. The special thing about the cpu is the fact that there are two address busses, one for writing and one for reading. That allows fast access of memory and one cycle operations like pushing and loading data from one place to another.
I don't think 12 bits parallel rom/ram exists irl, so you'll just have to use 8bits instead.
Most likely I'll be using 1-cycle instructions. Makes life so much easier. And I'll most likely be using 4 bit ram and 8 bit rom.
if I really want it I can even just buy 16 bit mem
I can access 256 mem locs.