Re: Mux4Way16 Problem - Help

Posted by Veneficus on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux4Way16-Problem-Help-tp2869333p2877986.html

Guys, I thank you very much for your suggestions. Indeed, I have the theory in mind. But here is my problem. I have decided to use a Mux for a and b, and c and d respectively, using the second digit of the selector as the selector.

This gives the following ouput

0 0          a c
0 1          b d
1 0          b c
1 1          b d

After that, I decided to use Mux on the results, using the same selector. Mux(a, c, sel[1]). This will work for only three of them, however. It will work for the first, the third and the last pair. But instead of selecting b in the second one, d will get selected. I cannot work it out... no matter what I use. And, Or, XOR. It is the same. What am I doing wrong? What could be the third HDL line? I am not trying to get the solution for free, since I am working as hard as I can to figure it out.