Skip to content

A 4-bit CPU inspired by the book Code by Charles Petzold. Built by a 5th grader

License

Notifications You must be signed in to change notification settings

BohanXu-74/simple-4bit-cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

4-Bit-CPU

4-bit CPU Demo

Watch the Demo Video above!

This repository contains a custom-built 4-bit CPU designed to explore how processors work at the lowest level. The CPU implements a simple instruction set with registers, an ALU, a program counter, and control logic, making it possible to trace every instruction cycle-by-cycle. The focus is on clarity and learnability rather than performance, serving as a foundation for understanding and building more advanced CPU designs.

I made this CPU when I was in 5th grade so these CPUs work but barely :(

These CPUs need a lot of improvement so I made a bunch of other versions and my newest 8-bit one is in another repository.

SRC folder stuff

  • Arduino code for the ROM simulator
  • File for my CPU that i simulated on Digital by Hneemann. Special thanks for making everything possible!!
  • Pics of my CPU
  • And a little log book that I wrote

V2

  • In the folder V2 there are a ton of dig files on my V2 of my 4-bit CPUs
  • Also some of my own machine and assembly code. The assembler was written by Bolan Xu. Special thanks to him!

V3

  • In the folder V3 there are a ton of dig files on my V3 of my 4-bit CPUs
  • Also some machine code in the Digital ROM format.

About

A 4-bit CPU inspired by the book Code by Charles Petzold. Built by a 5th grader

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages