R
rickman
Guest
I thought it would be a good idea to use Generics to define the ranges
on std_logic_vector and unsigned signals. However, when I try to then
create aggregates I get errors of "Choices for an array aggregate
(DownTo) must be locally static unless there is only one choice."
Carry <= (SPWTH-1 downto 1 => Pop, 0 => PassN);
I understand what this is saying, but it seems to be a major
difficulty. If I replace the generic with an attribute such as
Carry'high, I still get the error. I suppose because this is still
defined by the generic.
So is it barking up the wrong tree to use generics to define data path
widths or is there another way to then use these paths in aggregates
that I am missing?
Funny that this didn't seem to be a problem using the Lattice tools
(Synplify), but it is flagged by XST.
Rick
on std_logic_vector and unsigned signals. However, when I try to then
create aggregates I get errors of "Choices for an array aggregate
(DownTo) must be locally static unless there is only one choice."
Carry <= (SPWTH-1 downto 1 => Pop, 0 => PassN);
I understand what this is saying, but it seems to be a major
difficulty. If I replace the generic with an attribute such as
Carry'high, I still get the error. I suppose because this is still
defined by the generic.
So is it barking up the wrong tree to use generics to define data path
widths or is there another way to then use these paths in aggregates
that I am missing?
Funny that this didn't seem to be a problem using the Lattice tools
(Synplify), but it is flagged by XST.
Rick