Skip to content

nand2tetris project with visual logic gate simulation

Notifications You must be signed in to change notification settings

ChrisBuilds/nand2tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nand2Tetris

This repo documents my solutions to the nand2tetris course in which students build a fully working computer including the hardware and software starting from only Nand gates.

The associated website is available here: From Nand to Tetris.

The first part of the course (and this repo) ends after the assembler has been built and the computer successfully executes code written in its assembly language. That code is executed by assembling it down to binary, loading it into memory directly via the hardware emulator, and pointing the program counter at the start.

Assembler

The course leaves the implementation of the assembler up to the students. I chose to write it in Python, it can be found here

Logic Visualizations

The course includes a custom VHDL and design IDE. However, I also implemented most of the logic structures (up to the limitations of the visualization software) in Logicly, a visual logic application.

Some of the structures can be seen below.

Half Adder

half_adder

Full Adder

full_adder

16-bit Adder

ADD16

Arithmetic Logic Unit

ALU

Program Counter

program_counter

Full CPU

cpu_full

1-bit Register

1-bit_register

16-bit Register

16-bit_register

RAM64

RAM64

RAM64 Package

RAM64_package

About

nand2tetris project with visual logic gate simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published