John Mavrick's Garden

Search IconIcon to open search

Last updated Unknown

Computer Gates Nand2Tetris Project 1

Or Gate

Notes

Code

1
2
3
4
5
6
7
8
9
CHIP Or {
    IN a, b;
    OUT out;

    PARTS:
    Not(in=a, out=NotA);
	Not(in=b, out=NotB);
	Nand(a=NotA, b=NotB, out=out);
}

Truth Table

a b out
0 0 0
0 1 1
1 0 1
1 1 1

Interactive Graph