Re: Trouble with an error in hardware simulator
Posted by Sarfraz on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Trouble-with-an-error-in-hardware-simulator-tp66599p4029889.html
Dear Jeff,
I am facing the similar issue as you posted. Can you kindly guide me whats the problem in this piece of code:
CHIP Mux4Way16 {
IN a[16], b[16], c[16], d[16], sel[2];
OUT out[16];
PARTS:
Mux16(a[0..15]=a[0..15],b[0..15]=b[0..15], sel=sel[0],out[0..15]=out1[0..15]);
Mux16(a[0..15]=c[0..15],b[0..15]=d[0..15], sel=sel[0],out[0..15]=out2[0..15]);
Mux16(a[0..15]=out1[0..15],b[0..15]=out2[0..15], sel=sel[1],out[0..15]=out[0..15]);
}