+/TECS

git clone https://git.julia.blue/+/TECS

P1n3appl3Fix typos345fdac

v1.0
222 B15 linesraw
1/**
2 * Exclusive-or gate:
3 * out = not (a == b)
4 */
5
6CHIP Xor {
7    IN a, b;
8    OUT out;
9
10    PARTS:
11    Nand(a=a,b=b,out=w1);
12    Nand(a=a,b=w1,out=w2);
13	Nand(a=w1,b=b,out=w3);
14	Nand(a=w2,b=w3,out=out);
15}