And16

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

And16

dmoeller
This post was updated on .
Is And16 supposed to have 1 output, or 16 outputs? if it has 16 outputs, does that mean it has 32 inputs?
Reply | Threaded
Open this post in threaded view
|

Re: And16

cadet1620
Administrator
dmoeller wrote
Is And16 supposed to have 1 output, or 16 outputs? if it has 16 outputs, does that mean it has 32 inputs?
Both inputs and the output are 16-bit buses.

From the And16.hdl file:
/**
 * 16-bit and gate.  For i=0..15 out[i] = a[i] and b[i]
 */

CHIP And16 {

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

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

Re: And16

dmoeller
If you have:
IN a[16]
IN b[16]

That's 16 bits of a and 16 bits of b. That's 32 inputs, right?
Reply | Threaded
Open this post in threaded view
|

Re: And16

dmoeller
nvmd, I think I understand it now.