Skip to content

Reinventing the wheel by building an 4-bit computer from scratch to understand CPU fundamentals.

Notifications You must be signed in to change notification settings

gorramin/4bit-computer-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘Ύ 4-Bit Computer (Reinventing the Wheel)

4-bit computer overview

I- Introduction

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.

II- Project Overview

The project combines:

  • Electronics simulation (wiring, components, signals)
  • Digital logic simulation (gates, registers, buses, control logic)
  • Written documentation explaining design choices and results

III- How This Project Is Organized

The project is documented by days.

Each day has its own folder containing:

  • A README.md explaining the work of that day
  • Logic simulations
  • Electrical schematics
  • Images and screenshots

Example structure:

day-01/
β”œβ”€β”€ README.md
β”œβ”€β”€ hardware-states/
β”œβ”€β”€ simulation/
β”œβ”€β”€ schematics/
└── resources/

⚠️ Note:
I may not explain every single detail or theory exhaustively.
The focus is on core ideas and practical results.

IV- Tools & Software Used

  • 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.

About

Reinventing the wheel by building an 4-bit computer from scratch to understand CPU fundamentals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published