# nand2tetris/projects architecture

> Architecture diagram of the GitHub repository nand2tetris/projects, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nand2tetris/projects
- Repository: https://github.com/nand2tetris/projects

## Overview

This repository is a collection of official NAND2Tetris course project files, not a software service. The learner-facing workflow is to use the staged materials to build and explore a computer system, from logic components through the Jack operating system. The README identifies the collection but does not describe specific dependencies or execution flow, so the graph shows the documented collection relationship rather than inferred calls between stages.

Main entry points: [`projects/01`](https://github.com/nand2tetris/projects/tree/main/projects/01) (Logic Gates), [`projects/02`](https://github.com/nand2tetris/projects/tree/main/projects/02) (Arithmetic), [`projects/03`](https://github.com/nand2tetris/projects/tree/main/projects/03) (Sequential Chips), [`projects/04`](https://github.com/nand2tetris/projects/tree/main/projects/04) (Machine Platform)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hardware["Hardware Projects"]
  node_logic["Logic Gates"]
  node_arithmetic["Arithmetic"]
  node_sequential["Sequential Chips"]
  node_machine["Machine Platform"]
  node_computer["Computer"]
  node_demo["Xor Demo<br/>[Xor.hdl]"]
end

subgraph group_software["Software Projects"]
  node_assembly["Assembly Programs"]
  node_vm["VM Programs"]
  node_vm_functions["VM Functions"]
end

subgraph group_jack["Jack Projects"]
  node_jack_apps["Jack Applications"]
  node_syntax["Syntax Analysis"]
  node_compiler["Jack Compiler"]
end

subgraph group_os["Operating System"]
  node_os_api["OS Library"]
end

node_learner(("Learner"))
node_course["Course Materials"]

node_learner -->|"uses"| node_course
node_course -->|"includes"| node_logic
node_course -->|"includes"| node_arithmetic
node_course -->|"includes"| node_sequential
node_course -->|"includes"| node_machine
node_course -->|"includes"| node_computer
node_course -->|"includes"| node_assembly
node_course -->|"includes"| node_vm
node_course -->|"includes"| node_vm_functions
node_course -->|"includes"| node_jack_apps
node_course -->|"includes"| node_syntax
node_course -->|"includes"| node_compiler
node_course -->|"includes"| node_os_api
node_course -->|"includes"| node_demo

click node_logic "https://github.com/nand2tetris/projects/tree/main/projects/01"
click node_arithmetic "https://github.com/nand2tetris/projects/tree/main/projects/02"
click node_sequential "https://github.com/nand2tetris/projects/tree/main/projects/03"
click node_machine "https://github.com/nand2tetris/projects/tree/main/projects/04"
click node_computer "https://github.com/nand2tetris/projects/tree/main/projects/05"
click node_assembly "https://github.com/nand2tetris/projects/tree/main/projects/06"
click node_vm "https://github.com/nand2tetris/projects/tree/main/projects/07"
click node_vm_functions "https://github.com/nand2tetris/projects/tree/main/projects/08"
click node_jack_apps "https://github.com/nand2tetris/projects/tree/main/projects/09"
click node_syntax "https://github.com/nand2tetris/projects/tree/main/projects/10"
click node_compiler "https://github.com/nand2tetris/projects/tree/main/projects/11"
click node_os_api "https://github.com/nand2tetris/projects/tree/main/projects/12"
click node_demo "https://github.com/nand2tetris/projects/blob/main/demo/Xor.hdl"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_logic,node_arithmetic,node_sequential,node_machine,node_computer,node_demo toneBlue
class node_assembly,node_vm,node_vm_functions toneAmber
class node_jack_apps,node_syntax,node_compiler toneMint
class node_os_api toneRose
class node_learner,node_course toneIndigo
```

## Components

### Hardware Projects

- [Logic Gates](https://github.com/nand2tetris/projects/tree/main/projects/01): `projects/01`
- [Arithmetic](https://github.com/nand2tetris/projects/tree/main/projects/02): `projects/02`
- [Sequential Chips](https://github.com/nand2tetris/projects/tree/main/projects/03): `projects/03`
- [Machine Platform](https://github.com/nand2tetris/projects/tree/main/projects/04): `projects/04`
- [Computer](https://github.com/nand2tetris/projects/tree/main/projects/05): `projects/05`
- [Xor Demo](https://github.com/nand2tetris/projects/blob/main/demo/Xor.hdl): `demo/Xor.hdl`

### Software Projects

- [Assembly Programs](https://github.com/nand2tetris/projects/tree/main/projects/06): `projects/06`
- [VM Programs](https://github.com/nand2tetris/projects/tree/main/projects/07): `projects/07`
- [VM Functions](https://github.com/nand2tetris/projects/tree/main/projects/08): `projects/08`

### Jack Projects

- [Jack Applications](https://github.com/nand2tetris/projects/tree/main/projects/09): `projects/09`
- [Syntax Analysis](https://github.com/nand2tetris/projects/tree/main/projects/10): `projects/10`
- [Jack Compiler](https://github.com/nand2tetris/projects/tree/main/projects/11): `projects/11`

### Operating System

- [OS Library](https://github.com/nand2tetris/projects/tree/main/projects/12): `projects/12`

### Other components

- **Learner**
- **Course Materials**

## Connections

- Learner → Course Materials: uses (evidence: `README.md`)
- Course Materials → Logic Gates: includes (evidence: `README.md`)
- Course Materials → Arithmetic: includes (evidence: `README.md`)
- Course Materials → Sequential Chips: includes (evidence: `README.md`)
- Course Materials → Machine Platform: includes (evidence: `README.md`)
- Course Materials → Computer: includes (evidence: `README.md`)
- Course Materials → Assembly Programs: includes (evidence: `README.md`)
- Course Materials → VM Programs: includes (evidence: `README.md`)
- Course Materials → VM Functions: includes (evidence: `README.md`)
- Course Materials → Jack Applications: includes (evidence: `README.md`)
- Course Materials → Syntax Analysis: includes (evidence: `README.md`)
- Course Materials → Jack Compiler: includes (evidence: `README.md`)
- Course Materials → OS Library: includes (evidence: `README.md`)
- Course Materials → Xor Demo: includes (evidence: `README.md`)
