Binome
Full Member level 3
- Joined
- Nov 16, 2009
- Messages
- 153
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- Lyon, France
- Activity points
- 2,412
Hi,
here's a simplified piece of my code :
Modelsim is telling "** Error: D:/*.vhd(128): (vcom-1450) Actual (indexed name) for formal "p" is not a static signal name.".
I understand the problem: indexes have to be constants but I can't find a solution to this problem.
Can someone help me?
here's a simplified piece of my code :
Code:
loop1 : for i in 0 to log2N-1 generate
variable n_b : integer := 0;
variable n_p : integer := 0;
loop2: for j in 0 to N/2-1 generate
comp: component
port map(
clk => clk,
rst => rst,
en => en,
p => sigtmp(j+n_p*2**(i+1)+n_b));
if (n_b=2**(i+1)-1) then
n_p := n_p+1;
n_b := 0;
else
n_b := n_b+1;
end if;
end generate loop1;
end generate loop2;
I understand the problem: indexes have to be constants but I can't find a solution to this problem.
Can someone help me?