Mux8Way16
8對16多工器,8組資料線(一組16條),4條選擇線,16條輸出線。
CHIP Mux8Way16
{
IN a[16], b[16], c[16], d[16], e[16], f[16], g[16], h[16], sel[3];
OUT out[16];
PARTS:
Mux4Way16(a=a, b=b, c=c, d=d, sel=sel[0..1], out=outabcd);
Mux4Way16(a=e, b=f, c=g, d=h, sel=sel[0..1], out=outdefg);
Mux16(a=outabcd, b=outdefg, sel=sel[2], out=out);
}