Re: HDL Syntax for multibit internal pins

Posted by linuxford on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/HDL-Syntax-for-multibit-internal-pins-tp3277572p3844159.html

Hi,
I have created the Mux16 circuit and it simulates fine. I am working on the Mux4way16 and believe that on paper I have the solution utilizing three PARTS. However, I am having trouble it seems using the internal buses. I have tried a couple of approaches:

//Approach 1
XXX(.. etc .., out[16]=out1[16]);
... etc ...
XXX(a[16]=out1[16], ... etc ...);

//Approach 2
XXX(.. etc .., out[16]=x);
... etc ...
XXX(a[16]=x, ... etc ...);

Both "seem" to not be working. Could you please direct me. Thank you.