Mux4way16 problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Mux4way16 problem

Idrisadeniyi
Hi Everyone,

I have been stuck on the mux4way16 for hours and keep getting the same error.
I feel that I don't have the complete understanding of how this mutibus function.
Any further clarification will surely be appreciated.
below my hdl:

CHIP Mux4Way16 {
    IN a[16], b[16], c[16], d[16], sel[2];
    OUT out[16];
       
    PARTS:
    // Put your code here:
        Mux16 (a=a, b=b, sel=sel[0], out=x);
        Mux16 (a=c, b=d, sel=sel[1], out=y);
        Mux16 (a=x, b=y, sel=sel[0], out=out);
}
Reply | Threaded
Open this post in threaded view
|

Re: Mux4way16 problem

WBahn
Administrator
I'm not a mind reader. What error are you getting?
Reply | Threaded
Open this post in threaded view
|

Re: Mux4way16 problem

WBahn
Administrator
In reply to this post by Idrisadeniyi
Make a table of what signal x and y are and then out is for each possible combination of sel. Compare that to what it should be.
Reply | Threaded
Open this post in threaded view
|

Re: Mux4way16 problem

Idrisadeniyi
Thanks for your reply! I figured it out using the hint you gave.