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