Re: 4way16Mux
Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/4way16Mux-tp4025681p4025682.html
You can do this using only 3 Mux16 parts, and no other parts.
Think of the Mux16s in two layers. The a, b, c and d inputs to the Mux4Way16 connect to the first layer of two Mux16s. Those Mux16s connect to the Mux16 in the second layer. The trick is to figure out which sel bit goes to the muxes in the first layer and which sel bit goes to the second layer.
Note that you can say Mux16(a=c, ...) to connect 16-bit buses together and save some typing.
--Mark