+/TECS
git clone https://git.julia.blue/+/TECS
5e97a3a
master
1/** 2 * And gate: 3 * out = 1 if (a == 1 and b == 1) 4 * 0 otherwise 5 */ 6 7CHIP And { 8 IN a, b; 9 OUT out; 10 11 PARTS: 12 Nand(a=a,b=b,out=w1); 13 Not(in=w1,out=out); 14}
git clone https://git.julia.blue/+/TECS
5e97a3a
1/** 2 * And gate: 3 * out = 1 if (a == 1 and b == 1) 4 * 0 otherwise 5 */ 6 7CHIP And { 8 IN a, b; 9 OUT out; 10 11 PARTS: 12 Nand(a=a,b=b,out=w1); 13 Not(in=w1,out=out); 14}