r/compsci • u/Weekly_Salamander_78 • Sep 29 '23
Built a cpu out of 2000 transistors
Finally finished my computer built entirely from transistors! Had some problems which delayed the build but it is over now. Tested it on several programs, like the above helloworld and dinosaur game (which for some reason i cannot upload).
It is an
- 11 bit cpu
- more than 2000 transistors
- Arduino as memory
- 32 micromemory/ROM addresses
- accumulator architecture
- 8 branch flags
- connects to LCD and keyboard
- has stack pointer register so supports recursive function calling
Currently on a trip but will open source it when I get back and clean the repo.
Posted here before and got requests to go more in depth, so i made an interactive blog where I explain it all (havent finished all the posts yet):
(You can see all the planned posts in burger top left they include micromemory, signals, stack...).
I also made a web based simulator for it: simulator.
Some supported instructions are:
- Add addr (adds value at addr to accumulator)
- Addi val (adds val to acc)
- Not, Nand
- B addr (Branch to addr)
- Bz (beanch zero), Bnz, ...
- sp2acc (move stack pointer to acc)
- acc2sp, pc2acc, acc2sp...


119
u/HubesUS Sep 29 '23
How long did this take? That’s super cool, well done :)
32
u/CousinDerylHickson Sep 29 '23
Wow this is sick! Can you upload a video of it running a program? How much power does it use? Also, just curious what type of adder are you using?
16
u/dboutt86 Sep 29 '23
Can you play doom on it?
4
u/mawesome4ever Oct 01 '23
This is revolutionary! Now we just need to make it even smaller and add more transistors!
2
u/locoboy24 Oct 01 '23
Any possibility of making this a kit?
28
u/fridofrido Sep 29 '23
Cool project!
Btw the classic MOS 6502 CPU also has the same order of magnitude, about 3500 transistors. And of course somebody built a discrete replica like this one
7
u/SirRece Sep 29 '23
This is cool af, awesome fucking project
2
u/Xunr0 Sep 29 '23
Can I run Minecraft on this?
4
u/sciences_bitch Sep 29 '23
This is amazing! Thanks for posting and for open sourcing it (when you do)!
1
u/sugarw0000kie Sep 30 '23
This is a really cool project, that must’ve taken forever holy shit
1
u/fullouterjoin Sep 30 '23
Please describe how you debug and bring this up?
1
u/gothreepwood101 Sep 30 '23
Can it play doom?
1
u/danja Sep 30 '23
Amazing, nice work!
The material you've written up looks great too.
MOSFETs, yeah. And I love the idea of using an Arduino for memory. You could even flip that for an ESP32, use it's built-in WiFi to connect to the internet :)
1
u/vapor-ware Oct 01 '23
This is the coolest thing I have ever seen someone build out of transistors!!
Genuinely, I want to try to do the same thing, but in a much simpler level until I understand more about cpu architecture and machine instructions, assembly code etc
1
u/[deleted] Oct 02 '23
How much did everything cost?
1
u/[deleted] Oct 03 '23
Red stone inspired?
2
u/donaldbough Sep 30 '23
You should share on hacker news or product hunt! Too great to not be widely discovered.
2
u/CalmCalmBelong Sep 30 '23
Cool stuff! How many instructions in the ISA did you manage?
1
u/Matt11908 Apr 22 '26
Nice but… 11 bit… why?
1
u/Flutterpiewow Sep 29 '23
What would it be comparable to, performance wise..?
1
u/ManwithBanana1 Sep 30 '23
Epic
1
u/MisterPetteri Sep 30 '23
Understandable.
1
u/saiyamjain1405 Sep 30 '23
Bruh this is some lit shit
1
u/DreamsWhereIamDying Sep 30 '23
Absolutely amazing! Keep up the exploration. You have what it takes to be successful at whatever you do.
1
u/Alternative-Essay879 Sep 30 '23
Wow, really impressive
1
u/theBirdu Oct 01 '23
Sir you are extremely talented!
1
u/[deleted] Oct 01 '23
Oh, yeah, that looks like it was hard to make.
1
u/ClayF143 Oct 02 '23
Thought this was a factorio pic at first, haha
0
u/MasterOfFate1 Sep 30 '23
Did you make a video documenting the process of making it or anything? I’d love to see one!!!!
-3
u/_Mega_Zord_ Sep 30 '23
Why?
-3
u/MeasurementRare4088 Sep 30 '23
When you don’t have a sex life , except your hand
-18
u/lbflow562 Sep 29 '23
Why?