+/TECS

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

P1n3appl3Remove headers5e97a3a

v1.0
214 B15 linesraw
1 /**
2 * Or gate:
3 * out = 1 if (a == 1 or b == 1)
4 *       0 otherwise
5 */
6
7CHIP Or {
8    IN a, b;
9    OUT out;
10
11    PARTS:
12    Not(in=a,out=w1);
13    Not(in=b,out=w2);
14    Nand(a=w1,b=w2,out=out);
15}