D
Dan
Guest
Hi,
I have this piece of code in my design:
function xxxxxx (...) is
[...]
for j in i to length - 1 loop
v(i) := '0';
end loop;
[...]
end xxxxxxx;
In this case 'i' is a variable, so I'm having problems syntesizing the
desing because the for..loop range is variable, not constant.
To make the context clear, the xxxxxx function converts a natural number to
a binary vector by making successive divisions. When the quotient is zero,
the for..loop fills the rest of the vector with 0's.
Any suggestion?
Thanks
I have this piece of code in my design:
function xxxxxx (...) is
[...]
for j in i to length - 1 loop
v(i) := '0';
end loop;
[...]
end xxxxxxx;
In this case 'i' is a variable, so I'm having problems syntesizing the
desing because the for..loop range is variable, not constant.
To make the context clear, the xxxxxx function converts a natural number to
a binary vector by making successive divisions. When the quotient is zero,
the for..loop fills the rest of the vector with 0's.
Any suggestion?
Thanks