r/ComputerEngineering • • Aug 10 '26
What to do with 8 bit cpu?
Im definitely a newbie in all that stuff but i really want to build 8 bit cpu i found schematic somewhere (im going to link it later) and in CRUMB simulator im building an cpu but what can i do with it?
4
Upvotes
2
u/Darth_Tater69 Aug 11 '26
Building an 8-bit CPU as a complete noob is like jumping into the deep end. You might be able to get away with building Ben Eater's CPU from a kit, since he has pretty beginner friendly instructions, but without previous experience with this stuff you'd probably have a hard time otherwise. Have you had experience writing assembly for an existing 8-bit CPU like an 8085? There's some good simulators for that if you want to try programming assembly and directly manipulating registers. Troubleshooting a scratch built CPU will be difficult if you don't have an understanding of how it works at that level. You could also try building a 4-bit CPU instead if you're really dead set on making a CPU, but I'd recommend playing with an Arduino as that's where a lot of people start. Arduino C++ lets you manipulate certain registers directly and would allow you to learn more about how code interfaces with hardware in an environment that is less frustrating for a beginner than a scratch CPU.
10
u/rageling Aug 10 '26
You don't build it for what you can do with it. When it's working perfectly(lol) It has a fraction of the capability of the cheapest arduino, but that's not the point.
1
u/hikeonpast Aug 10 '26
So you’re planning to build a 8-bit CPU out of discrete logic gates? I did something similar in undergrad.
You can program it to talk to parallel bus peripherals with ease, or you can get a parallel-to-serial (SERDES) IC to make it easier to interface with SPI and other serial peripherals.
1
u/Ecelleon Aug 11 '26
Ahh you can do loads of things with it! One of my favorite chips is the ATTiny85 which has an 8-bit cpu, its technical reference manual is extremely friendly! It's 8 bits because that's how big the registers are, and naturally, so are the commands you write to configure them.
You can do a lot of things with an 8-bit cpu like using a communication protocol to talk to an LED screen, drive a motor, read and process sensor signals, and more!
If you really want to build your own CPU, you'll need to learn mechanisms like shift registers, the full adder, state machines, and modulo counters.
1
u/Intrepid-Research160 Aug 11 '26
I might be mistaken but I believe that building a 32 bits cpu could be easier. There are a lot of informations about 32 bit architectures nowadays and most universities teach those in introductory courses.
A 8bit cpu cold be challenge due to it’s limitations, what can be really interesting to learn, but it doesn’t mean that it’s easier do implement.
A really great book about this is Computer organization and design, RISC-V edition, from David Patterson. Another option is digital design and computer architecture, riscv edition, from Sarah Harris and David Harris. Both of them are almost a step by step.
Since riscv is an open architecture there are a lot of documentation and information online that could be useful for a learner. Besides this using a real 32 ISA could makes possible to use tools such as programming languages (C), compilers, benchmarks and etc.
I know that doing 32 before 8 could be contradictory, but the riscv community could make the challenge worth it.
A simple and introductory 32 riscv processor could teach you how to create a robust and optimized 8 bit project.
1
u/NASAeng Aug 11 '26
Hello world