Re: Mux4way16 problem
Posted by Idrisadeniyi on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux4way16-problem-tp4035690p4035717.html
Thanks for the explanation. It lets me understand it better.
However, there are still some elements of confusion. In the above example, fred[16] and sue[16] are both the input pins of the chip having 16bits or wires(if I am correct) each. And you connected both of them to the a and b pin of the Or16 gate on different wire numbers, if you will, but same width size. This is a kind of explicit connections. I thought wire numbers are all set by the script and sel is suppose to be the determinant for the out pin. If sel=00 out should ouput the a pin 16bits numbers and so on. All I have to do is connect the in pins to the part pins. I didn't know I will have to deal with individual bit and modify positions in the bus. I'm confused! do I need to know anything about how the bits in each pin changes or shift to the right or left?
In my case, this tend to be a little confusing. I am building an 8waychip which 4 of its input pins conforms with the chip I am using to build it. So, I'm unsure on how to connect the remaining 4 which are e to h. If I go with your example of a[0..7]=fred[4..11] and a[8..15=]sue[1..8] pins, I will have to modify the way I have connected e to h which goes like so :a=e, b=f, c=g, d=h. But I have no clue on how to go about this.