John Mavrick's Garden

Search IconIcon to open search

Last updated Unknown

Computer Gates Nand2Tetris Project 1

Gate

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

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

Truth Table

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

Notes


Interactive Graph