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