|
hi, I have a trouble when build Mux16 chip, the hdl file content as following,
CHIP Mux16 {
IN a[16], b[16], sel;
OUT out[16];
PARTS:
Not(in=sel, out=w1);
And16(a=a, b[0..15]=w1, out=w2);
And16(a=b, b[0..15]=sel, out=w3);
Or16(a=w2, b=w3, out=out);
}
it show error 'b(16) and w1(1) have different bus widths', I can't find out the syntax error,
Does anyone help review pls, thanks.
|