A
ALuPin
Hi newsgroup,
I have a function which is called by
ReadFile("image.bmp")
At certain events I want to call that function in the following
manner:
signal image_cnt : integer range 0 to 127;
process(Clk)
begin
if rising_edge(Clk) then
if load_image='1' then
if image_cnt=127 then
image_cnt <= 0;
else
image_cnt <= image_cnt + 1;
end if;
if image_cnt=0 then
ReadFile("image0.bmp");
elsif image_cnt=1 then
ReadFile("image1.bmp");
...
elsif image_cnt=127 then
ReadFile("image127.bmp");
end if;
end if;
end if;
end process;
How can I include the "image_cnt" value
into the string of the image name in an elegant way ?
Thank you for your help.
Rgds
Andre
I have a function which is called by
ReadFile("image.bmp")
At certain events I want to call that function in the following
manner:
signal image_cnt : integer range 0 to 127;
process(Clk)
begin
if rising_edge(Clk) then
if load_image='1' then
if image_cnt=127 then
image_cnt <= 0;
else
image_cnt <= image_cnt + 1;
end if;
if image_cnt=0 then
ReadFile("image0.bmp");
elsif image_cnt=1 then
ReadFile("image1.bmp");
...
elsif image_cnt=127 then
ReadFile("image127.bmp");
end if;
end if;
end if;
end process;
How can I include the "image_cnt" value
into the string of the image name in an elegant way ?
Thank you for your help.
Rgds
Andre