On 3/4/2014 9:26 PM, KJ wrote:
> - Have you tried a for loop rather than a while loop?
Thanks for the hint.
indeed It WORKS fine with a "for loop".
Okay... I can understand their reasons... even so I would prefer to be the
the one that make infinite loops occasionally rather then be restricted
from writing code freely.
IMHO this would be a very good case for a warning and not for a show
stopper.
if one suspected that the compiler is taking too long would see the
warning and decide to abort or let it continue.
>> this one goes to happily to any size<<
impure function SinFillTab return rom_type is
variable cpt: integer:=0;
variable rom_tmp: rom_type;
begin
for cpt in 0 to QUART-1 loop
rom_tmp(cpt) := to_signed(integer(real(AMP)*sin(
real(cpt)*2.0*MATH_PI/real(FULL) ) ), 16);
end loop;
return(rom_tmp);
end SinFillTab;
---
tks to all.
Luis C.