This project documents my journey of building a 4-bit computer from scratch to truly understand how computers work at their core.
Everything is built from basic logic gates, forming registers, an ALU, control logic, and data pathsβwithout using any existing CPU or high-level abstractions.
By βcomputerβ I mean a system that can calculate, remember data, and display results.
The project combines:
- Electronics simulation (wiring, components, signals)
- Digital logic simulation (gates, registers, buses, control logic)
- Written documentation explaining design choices and results
The project is documented by days.
Each day has its own folder containing:
- A
README.mdexplaining the work of that day - Logic simulations
- Electrical schematics
- Images and screenshots
Example structure:
day-01/
βββ README.md
βββ hardware-states/
βββ simulation/
βββ schematics/
βββ resources/
I may not explain every single detail or theory exhaustively.
The focus is on core ideas and practical results.
-
Electrical Simulation (Proteus)
-
Logic Simulation (Digital Logic Simulator by Sebastian Lague)
π Special thanks to @SebLague for creating and sharing this excellent educational tool.
GitHub: https://github.com/SebLague
This project is a learning experiment, a technical diary, and a personal challenge.
If you are interested in computer architecture, digital electronics, or building computers from first principles, I hope you find this repository useful.