|
CHIP Mux4Way16 {
IN a[16], b[16], c[16], d[16], sel[2];
OUT out[16];
PARTS:
// Put your code here:
Mux16(a[0~15]=a[0~15],b[0~15]=c[0~15], sel = sel[0],out[0~15]=x[0~15]);
Mux16(a[0~15]=b[0~15],b[0~15]=d[0~15], sel = sel[0],out[0~15]=y[0~15]);
Mux16(a[0~15]=x[0~15],b[0~15]=y[0~15], sel = sel[1],out[0~15]=out[0~15]);
|