I have always been dreaming of building a CPU from scratch, which means only transistors, resistors, and capacitors are allowed!!!
I have always been dreaming of building a CPU from scratch, which means only transistors, resistors, and capacitors are allowed!!!
Ik this project might look a little intimidating at first, and thus I reshipped this because I believe it deserves a better payout………
I polished the repo and demo, and hopefully people can learn more about how challenging it is to build even an adder from complete scratch using discrete transistors
Spent some time updating readme and release!!
This is really the best project i’ve ever made, even though it might look a little intimidating!!!!
*** Btw i also rendered this, and this is exactly how the final product will look like
Log in to leave a comment
When I first told my friends about this project, they laughed at me cuz they didn’t believe how building this was even possible. This is a very huge milestone as I finally understood how computers work! I learned many things including the basics like logic gates, transistors, and fan-out (this was obnoxious)
btw XOR caused TONS OF TROUBLES and almost killed my interest lol (btw there were two types and the one failed was the one driving two bases)
Routed everything and added some final touch!!
Log in to leave a comment
Tested out my XOR gate (the first version) but unfortunately it didn’t work as well as expected
Log in to leave a comment
Ok so I finalized my schematic after postponing for a month particularly cuz got a little lazy
Next up imma start routing the full-adder and order it
I also tested out all different cases to make sure I get it right the first shot
Log in to leave a comment
I spent some time on soldering the logic gates, including AND, OR, NAND, and NOR gates. However, because I forgot to cut the wires before turning them on, I accidentally burnt the OR and NOR gates……DAMN
Overall, the AND and NAND gates worked pretty well:
Log in to leave a comment
Time to test out all my logic gates!!! For the past hour I was learning how to use V-Cut for my PCBs as they’re all very small so it’s not very wise to put them all on separate boards. Merging AND and OR gates is kinda tedious tbh
Log in to leave a comment
Here’s what I did for the past one and a half hours:
Log in to leave a comment
I spent one and a half hours trying to figure out Subtractor and complete the entire ALU………BUT KICAD is acting so weird……..
4-bit adder acts perfectly but for some reason subtractor just doesn’t want to listen……..AHHHHHHHHH
Log in to leave a comment
I moved all the complex circuit into a sub sheet!!! Now it’s officially called the 4-bit adder!!!
BTW I also recorded a little video here:
https://hc-cdn.hel1.your-objectstorage.com/s/v3/226f3b5086f14841_2025-12-31_21-21-35.mkv
Log in to leave a comment
(Troubleshooting) GUYS MY 4-BIT ADDER WORKS PERFECTLY!!!!!! Especially after I added buffers to each split!!!! W buffers
Btw I was fixing my 4-bit adder for the whole time cuz apparently Kicad spice doesn’t really recognize GND, so instead you gotta use 0V instead
Log in to leave a comment
I spent two hours and a little more learning negative numbers (subtraction) and SR latch (can be easily turned into D latch)
Lemme briefly explain why they’re important
BTW the image only shows how subtractor works, but i promise i’ll be demonstrating through videos of how registers work!!!
Here’s the steps to convert a positive number to a negative number
Log in to leave a comment
Finished routing the PCB!!! OMG I really really can’t believe how compact this can be……..Cuz it’s so tiny compared to the prototype on breadboards!!!!!!
PS: This is a Full Adder btw
Log in to leave a comment
For the past one and a half hour I have been building a 4-bit adder…….but fan-out is definitely my enemy!!!!
As you can see the 5V drops to 4.53V bc of the transistors!!! I was trying to implement two inverters at the end but still didn’t help…….
Log in to leave a comment
I finally found out the issue!!!
The issue was that I forgot to add resistors to the base of each transistor. I only added resistors directly after A, B, and Cin, but the bases of transistors in each sheet don’t have their own resistors, so that’s a big issue as they will burn out.
W Resistors :)
Log in to leave a comment
Fixed and tested out all the truth tables for my schematic, and not all of them worked……
Even though it seemed like only one of them didn’t work (the one with only Cin on), but for some reason no current was passing through one of the transistors in the XOR gate!!!
SO I gotta spend some time investigate……
PS: All the images are different cases even though they look similar!
Log in to leave a comment
YOOO I DIDN’T KNOW KICAD CAN SIMULATE CIRCUITS!!!!!! BIG SUCCESS GUYS
Here’s the truth table I tested out (Input 1, Input 2, Output):
W KICAD!!! GUYS btw if you want the spice models for 2N3904:
Log in to leave a comment
Completed the FULL ADDER schematic!!!!!! Btw here’s some of the things I changed:
Completed the PCB design of XOR gate!! I tried to make it as compact as possible
GUESS WHATTT, IT’S TIME TO BUILD A FULL ADDER!!!!!!!!
Log in to leave a comment
Finally completed the schematic for an XOR gate. Despite building it on the breadboard, I still struggled with whether I should place a diode or a resistor…….But after doing some research I decided to go with a diode, and here’s the reasons:
Log in to leave a comment
Completed the PCB design for the four gates!!! Btw i also ordered the PCB this time!!!
Log in to leave a comment
Completed schematic for AND, OR, NAND, and NOR gates!!!! Can’t believe I proceeded that fast lol, but Kicad still made it way easier than prototyping on breadboard trusttt
Log in to leave a comment
For the past hour I was learning how to build an XOR gate, it’s basically made of an NAND, AND, and OR
Log in to leave a comment
OMG THIS IS SOOOOO FRUSTRATING…………but I finally completed my breadboard prototype for AND and OR gate, btw this is my first time using transistors so it took me quite a fair amount of time
Here are just some things to watch out for:
OK I finally began my journey towards building a fully functional CPU!!!!!
First up ADDER:
Log in to leave a comment