Mux4Way16 HELP

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

Mux4Way16 HELP

stuart
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Mux4Way16 HELP

WBahn
Administrator
The way you are going about it is making if far, far more difficult than it needs to be. Your design uses 37 instances of four different parts. You can implement this design using just three instances of the same part.

As for the error, the problem is that you can't use sub buses of internal signals, only the input and output pins. It's a somewhat unrealistic limitation of the simulator.

To do what you are trying to do you would need to do something like the following:

    Mux16(a=a, b=b, sel=sel0AndNotsel1, out[0]=Muxab0, out[1]=Muxab1, out[2]=Muxab2, ...);
    Mux16(a=c, b=d, sel=sel0Andsel1, out=Muxcd);
    And(a=Muxcd0, b=sel[1], out=Muxcd0Andsel1);
    And(a=Muxcd1, b=sel[1], out=Muxcd1Andsel1);
    ...
Reply | Threaded
Open this post in threaded view
|

Re: Mux4Way16 HELP

stuart
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Mux4Way16 HELP

WBahn
Administrator
You are way overthinking this.

Look at what you are doing with your two Mux16 parts. Each has two 16-bit signals coming in and you use a signal to control which of those two signals comes out of each one.

So after the two Muxes, you have two 16-bit signals and you want one of them to become the 16 bit output of the chip. Sounds like the exact same task that the other two Mux16 parts are doing, doesn't it?
Reply | Threaded
Open this post in threaded view
|

Re: Mux4Way16 HELP

stuart
CONTENTS DELETED
The author has deleted this message.