T
The Weiss Family
Guest
Hi All,
I want to create an array of components that I can use an index to access.
I am aware of the "generate" statement, but I don't know if I can do what I
need.
I need to have non-array signals used in the port map.
This is probably best explained by an example:
------------------------------------------------------------------
component my_component is
port (
A : in std_logic;
B : in std_logic;
C : out std_logic);
end my_component;
--- somewhere in another entity
signal u,v,w,x,y,z : std_logic;
COMP0: my_component port map(
A=>x,
B=>y,
C=>z);
COMP1: my_component port map(
A=>u,
B=>v,
C=>w);
-------------------------------------------------------------------
The problem is that I would like some structure that I can index by 0 to
access COMP0 and by 1 to access COMP1.
For example:
my_comp(0).some_function;
my_comp(1).some_constant;
etc....
Any ideas?
Thanks
I want to create an array of components that I can use an index to access.
I am aware of the "generate" statement, but I don't know if I can do what I
need.
I need to have non-array signals used in the port map.
This is probably best explained by an example:
------------------------------------------------------------------
component my_component is
port (
A : in std_logic;
B : in std_logic;
C : out std_logic);
end my_component;
--- somewhere in another entity
signal u,v,w,x,y,z : std_logic;
COMP0: my_component port map(
A=>x,
B=>y,
C=>z);
COMP1: my_component port map(
A=>u,
B=>v,
C=>w);
-------------------------------------------------------------------
The problem is that I would like some structure that I can index by 0 to
access COMP0 and by 1 to access COMP1.
For example:
my_comp(0).some_function;
my_comp(1).some_constant;
etc....
Any ideas?
Thanks