one shot process

T

thomas

Guest
Hi Ng
I am trying to make a process that waits for a signal, then runs a
loop, and then again waits for the start signal

is there a good way of doing this, or is it just something like this

process
variable i : natural range 0 to 7;
begin -- process
wait on start_me_up;
for i in 0 to 7 loop
-- do something here
end loop; -- i
end process;

--
thomas
 
primax@jubiipost.dk (thomas) wrote:
I am trying to make a process that waits for a signal, then runs a
loop, and then again waits for the start signal

is there a good way of doing this, or is it just something like this

process
[..]
begin -- process
wait on start_me_up;
[..]
end process;
Is fine. You could be a bit shorter with

process(start_me_up)
begin
...
end

Bye Thomas
 

Welcome to EDABoard.com

Sponsor

Back
Top