I
Ilkka Pajari
Guest
Hello.
I'm quite noobie with VHDL and I'm trying to make a delay procedure.
Could someone tell me what's the most reasonable way to make at least
~13 clock cycles delay inside procedure. Maybe I'm thinking too much
about C, because none of my tries haven't been succeeded yet. Here is
one what I have tried so far:
(Procedure is inside clocked process)
procedure delay_s is begin
while (counter < 12) loop
..
..
counter <= counter + 1;
end loop;
counter <= '0';
end procedure delay_s;
What's wrong with procedure above, because loop is infinite?
- Ilkka Pajari
I'm quite noobie with VHDL and I'm trying to make a delay procedure.
Could someone tell me what's the most reasonable way to make at least
~13 clock cycles delay inside procedure. Maybe I'm thinking too much
about C, because none of my tries haven't been succeeded yet. Here is
one what I have tried so far:
(Procedure is inside clocked process)
procedure delay_s is begin
while (counter < 12) loop
..
..
counter <= counter + 1;
end loop;
counter <= '0';
end procedure delay_s;
What's wrong with procedure above, because loop is infinite?
- Ilkka Pajari