Mux16

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

Mux16

dmoeller
Does Mux 16 have 2 sets of 16 bit inputs or just 1 set?
Reply | Threaded
Open this post in threaded view
|

Re: Mux16

cadet1620
Administrator
dmoeller wrote
Does Mux 16 have 2 sets of 16 bit inputs or just 1 set?
Both a and b inputs are 16-bit buses.

From the Mux16.hdl file:
/**
 * 16-bit multiplexor. If sel=0 then out = a else out = b.
 */

CHIP Mux16 {

    IN  a[16], b[16], sel;
    OUT out[16];

    PARTS:
--Mark
Reply | Threaded
Open this post in threaded view
|

Re: Mux16

dmoeller
This post was updated on .
how can sel be just 1 bit? if you have to choose between 16 inputs, it should be at least 8 bits. Also, why is out 16 bits wide? aren't we selecting 1 of 32 inputs?
Reply | Threaded
Open this post in threaded view
|

Re: Mux16

ybakos
The Mux16 chooses between two things: A and B.
A and B are 16 bits each.

Reply | Threaded
Open this post in threaded view
|

Re: Mux16

dmoeller
ok, so its just 16 muxes pushed into 1. now i understand why sel is still only 1 bit.