Hi all
I am new to vhdl and xilinx ise. I can generate the waveform for the code (no syntax error) but it produces an error whenever i try to run xpower from the project navigator.
arch xxx of xxx ... variable test; ...
for i in 0 to test-1 loop -- error generated states tat variable cannot be used for range ...
end arch;
however no error occurs if i do it the following method:
arch xxx of xx
for test in 0 to 10 loop ... for i in 0 to test loop ... end loop; end loop; end arch;
the question is if i do not use variable for the 1st mtd; hw else can i do to get rid of that error. Is there a data type which i can use to make it work? or is there something which i overlooked?
tks for any help ywz