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)
Related languages
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
// 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);
}