Houyx15 wrote
Hey,I just find another problem.
What is wrong with this?
Can you help me?
CHIP Mux4Way16 {
IN a[16], b[16], c[16], d[16], sel[2];
OUT out[16];
PARTS:
// Put your code here:
Mux16(a[16]=a[16] ...
}
"x[16]=y[16]" means "connect bit 16 of bus
x to bit 16 of bus
y."
There are two problems with this:
o All the other bits are unconnected,
o These are 16-bit buses; they only have bits 0 through 15.
To connect all the bits of bus
x to bus
y, all you need is "x=y".
Read Appendix A.5.3 for more information on buses.
--Mark