goo wrote
I am implementing 8Mux16way using 4mux16way chips that are already done.
i will just give one line of code on which I am getting this error
4Mux16Way(a=a[0],b=b[0],c=c[0],d=d[0],sel=sel[0..1],out=out1);
There is no "8Mux16Way" nor "4Mux16Way" chip in the book, so we can only guess at what's happening.
The error message you are getting, "a[16] and a[1] different bus widths," says that you are trying to connect a single wire to a 16-wire bus. The "a[16]" is referring to the
a input of your 4Mux16Way chip, the "a[1]" is referring to the single wire that you have selected from the
a input to your 8Mux16Way.
You probably want to say "a=a" to connect all 16 wires together.
--Mark