Nand2Tetris HDL

1 program Added 2026-03-16T21:52:02Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: HDL, Nand to Tetris HDL, nand2tetris
Provenance: commit ee51d3aaea · authored 2026-03-16T22:52:33+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Jack (0.15)Chisel (0.12)nMigen (0.12)QFTASM (0.11)NSIS (0.11)

LLM-contributed programs

Full Adder

Provenance: commit ee51d3aaea · authored 2026-03-16T22:52:33+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.hdl · license: Public Domain · added: 2026-03-16T21:52:02Z
// Full Adder implementation in Nand2Tetris HDL
// Computes the sum of three bits (a + b + c)
// From: The Elements of Computing Systems (Nisan & Schocken)

CHIP FullAdder {
    IN a, b, c;  // 1-bit inputs
    OUT sum,     // Right bit of a + b + c
        carry;   // Left bit of a + b + c

    PARTS:
    HalfAdder(a=a, b=b, sum=s1, carry=c1);
    HalfAdder(a=s1, b=c, sum=sum, carry=c2);
    Or(a=c1, b=c2, out=carry);
}

Contribute — propose a file extension

Tell us where to find evidence about Nand2Tetris HDL (mapped to pl/nand2tetris_hdl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Nand2Tetris HDL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Nand1 Nandarin →