Multi-pin dummy variables

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

Multi-pin dummy variables

Thorvald
Ok I'm stuck with the Mux8Way16 but with the implementation.
So far I've just used dummy pins of 1 bit, as in section A.5.2. However, for doing the
Mux8Way16 I need multi-bit dummy pins, like:

Mux4Way16(a=a[0..15], b=b[0..15], c=c[0..15], d=d[0..15], sel=sel[0..1], out=x[0..15]);

However, the compiler complains about my dummy variable x.

Reply | Threaded
Open this post in threaded view
|

Re: Multi-pin dummy variables

ybakos
If you want a 16-bit pin, there's no need to use the subscripting [...] syntax. eg:

Mux4Way16(a=a, b=b, c=c, d=d, sel=sel, out=x);

Reply | Threaded
Open this post in threaded view
|

Re: Multi-pin dummy variables

Thorvald
Thank you. It still confuses me the syntax.