+/TECS

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

P1n3appl3Remove headers5e97a3a

v1.0
178 B14 linesraw
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}