Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

istantiating an array port referring to individual (or group) of element

1 view
Skip to first unread message

Andy Luotto

unread,
Oct 22, 2009, 9:47:06 AM10/22/09
to
hi there
hi ahave a module like
module the_module(input a[2:0], output z)

and i would like to assign individual signal to input (which is
allowed by vhdl). i tried both

wire x,y,z;
the_module i_module (.a[2](x), .a[1](y),.a[0](z));

but i get a syntax error

obviosly this

the_module i_module (.a({x,y,z} );

should work but i have a script which buoild a top level which i would
not modify

thanks

pallav

unread,
Oct 22, 2009, 12:04:11 PM10/22/09
to

You can say:

wire [2:0] in = {x, y, z};
the_module foo(.a(in));

You probably will have to modify the script to generate this.

0 new messages