CHIP Mux4Way16 {
IN a[16], b[16], c[16], d[16], sel[2];
OUT out[16];
PARTS:
// Put your code here:
Mux16(a=a,b=b,sel=sel[0],out=tp1);
Mux16(a=c,b=d,sel=sel[0],out=tp2);
Mux16(a=tp1,b=tp2,sel=sel[1],out=out);
}
CHIP Mux4Way16 {
IN a[16], b[16], c[16], d[16], sel[2];
OUT out[16];
PARTS:
// Put your code here:
Mux16(a=a,b=b,sel=sel[0],out=tp1);
Mux16(a=c,b=d,sel=sel[0],out=tp2);
Mux16(a=tp1,b=tp2,sel=sel[1],out=out);
}