Josh Graham wrote:
> Hi all,
> Is there anyway to increment a for loop constant in VHDL by a value
> that is not equal to one?
Not that I'm aware of.
> I am processing a vector and in each
> iteration two consecutive elements need to be processed and loop
> constant incremented by 2.
Use a range that is half what you want and then use arithmetic to
generate the values:
for i in start to finish
loop
x(2*i) <= ...
x((2*i)+1) <= ...
end loop;
--
Tim Hubberstey, P.Eng. . . . . . Hardware/Software Consulting Engineer
Marmot Engineering . . . . . . . VHDL, ASICs, FPGAs, embedded systems
Vancouver, BC, Canada . . . . . . . . . . .
http://www.marmot-eng.com