BrandonK again, I am having another problem. I am trying to build the 4-way 16-bit mux but the hdl implementation seems to be having problems, the test script is giving me errors. I have looked at the hdl file an have found nothing wrong with it. Could someone please take a look at it and see if you can find any errors. I have also included a picture of my diagram of the implementation on paper. I am really tired, I might need some sleep.
Ok I have got it working by switching the two selectors, sel is now sel, and sel is now sel...Could someone take a look at my diagram and tell me why I need to switch them?
It just doesn't make any sense, before I switched them I went through every 1-bit possibility and it worked perfectly, now after switching them I went through all the possibilities and it no longer works, but the hardware simulator says it works, soo... Any ideas?
I just had a look and I haven't given it the time to understand it, as it is quite long.
What jumps out though is that you are doing it the really hard way.
How long will your Mux8Way16 be if you try and do it this way?
Think about it. Why are you using 1 bit Muxs inside this chip which has 16 bit inputs?
Also can I suggest that you have a look at this thread
Thanks culchie, I've switch to the 16 bit Mux and it is alot smaller, but I still don't understand why I need to switch sel and sel. Could you take a look at the diagram and see if you can figure out why I need to switch them. Thanks.