one shot process

T

thomas

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;
 
T

Thomas Stanka

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top