r/ComputerEngineering • u/Diligent-Egg-8100 • Oct 23 '24
[Project] CPU designing.
I’m currently a sophomore in high school and I am currently infatuated with computer science. I’ve designed a few parts of a cpu before but this is my first main project. It is a 4 bit cpu at 2Khz with addition, subtraction, and AND logical computations. It has a 12 bit memory bus that has 172 bytes of storage and 32 bytes of ram. I want to make an 8 bit cpu at 4-8Khz based on the same architecture soon. I’m wondering about how stacks work in the cpu I get their for the steps of a problem but I just need more explanation, and any idea how dual core chips differ from single cores Ive been wanting to make one for a while now.also I’m looking into Photolithography and I’m wondering if anyone has any tips on how to start that process for a diy chip making process. I understand the basics but I just need some more help. I’m hoping a nice silicon chip with at the most 10000 transistors on a rather large piece. Thanks for the read and I hope to see your response.
(Edit) I know 10000 transistors is extremely difficult to reach on a homemade level, but I’m aiming for something that’s impressive enough for people to care about, as my early cpu designs have been glossed over by basically everyone I’ve shown it to. I’m also looking to talk to college professors soon for recommendations into MIT I hope so I would like to have something very noteworthy to present.
9
u/CompetitiveGarden171 Oct 23 '24
If you want to dive into the guts for understanding how parts of the CPU work together:
Computer Architecture: A Quantitative Approach by Hennessy and Patterson
Structured Computer Architecture by Andrew Tanenbaum
Computer Organization and Design by H&P
Introduction to Computing Systems: From Bits & Gates to C/C++ & Beyond, 3rd Edition by Patt and Patel
I used the top three books and I took classes with Patt (who is really responsible for the modern high performance CPU) my MSEE was in hardware compression for L1 cache design. These books will answer just about all the questions you could have for basics bits, blocks, and how the pieces fit together.
Good luck with what you're doing, hopefully these suggestions can give you some guidance.
2
u/Ndematteis Oct 24 '24
Books 1 and 3 are used at my university.
Book 1 is used in the graduate level computer architecture course, while book 3 is used for the undergrad architecture and organization course.
I would recommend starting with 3 if you are truly interested; however, if you can already design a CPU just jump straight into the Quantitative Approach I guess. Do the problems at the end of the chapter because they aren't just practice with formulas and crap, they're actually applied concepts and new lessons. You will learn more doing the problems than reading the text.
If you are interested in working in computer architecture, understand that you will probably need a PhD.
1
u/Diligent-Egg-8100 Oct 24 '24
Really a PhD? I just thought I had to get a masters but alright. But I was wondering what do you actually learn in collage classes I get it’s computer science but is it math about it or just how the gates go together? I’ll get those books soon and give them a look through as well, thank you.
1
u/Diligent-Egg-8100 Oct 25 '24
I’m looking at the books now there’s 3 options:
the RISC-V edition
the MIPS edition
the ARM edition
which one do I get? I don’t really want to buy all 3, each of the books is $100.
1
u/Ndematteis Oct 27 '24
They're all good. Just different flavors.
Do you know what you wanna work with?
Can't go wrong with RISC-V
1
3
u/Ndematteis Oct 24 '24
Check out this YouTube video, perhaps you can extend the idea to a CPU?
I would argue a functioning simulation is good enough.
How have you designed this system? HDL? Software? Sketches?
1
u/Diligent-Egg-8100 Oct 24 '24 edited Oct 24 '24
Sketches, scrap mechanic, small parts like the adder in logisim. The final product will most likely be in logisim. I have watched that video before and it was an amazing dive into computer graphics something I’m also excited to jump into. My 16 bit cpu I’m looking to have a pre established instruction set so I can make an extremely simple graphics card for a os. Like directx 1.0 but I’m dreading having to do drivers.
Edit: ive heard of something called vertilog or something any idea what it is for?
3
Oct 24 '24
I would consider computer engineering in the future. This is super impressive
1
u/Diligent-Egg-8100 Oct 24 '24
Thank you but I’ve heard the market for jobs is getting competitive, Not sure about pay though.
2
2
Oct 25 '24
CompE is quite different than Computer Science. I'll confess, I'm still in school but I haven't had much trouble with internships and stuff like that so I wouldn't worry about it if it's something you're interested in. Also, the starting salaries for graduates are among the highest out of engineering majors according google
2
u/krzyzj Oct 24 '24
Around your age and wow you’re way ahead of me. How long have you been studying cs/ce?
1
u/Diligent-Egg-8100 Oct 24 '24
Only about 8/9 month but more seriously over the past 5/6 months. How about to you? Any projects you’re working on?
1
u/krzyzj Oct 24 '24
I’m still trying to learn c++. No projects as cool as yours man. Maybe one day
2
u/Diligent-Egg-8100 Oct 24 '24
I’m not mentally strong enough to learn any programming languages yet, those things are hard. I’m more into hardware than software, it just works better in my mind. But nice stuff man I dread having to do that stuff.
55
u/hebrew12 Oct 23 '24
Don’t stop. This is impressive. When people aren’t impressed it’s because they don’t understand or their ego is in the way. You are what? 15? You are a genius. Keep going dude. Do. Not. Stop
2
u/phear_me Oct 24 '24
Keep going. This is wonderful and very impressive and the many lessons you are learning (not just engineering lessons either) will be invaluable going forward.
Work even harder. Dig even deeper into your passion. Change the world.
18
u/YT__ Oct 23 '24
Sam Zeloof is your goal - he was doing home chip manufacturing like 8 years ago while he was in high school. https://m.youtube.com/watch?v=qCSIGejNT4M
Ben Eater is still going to be a good resource for your goals. If you haven't actually made anything yet, I'd expect you to take a look here for sure and learn all you can about Ben's designs.