if condition in process without sensitivity list

A

ALuPin

Hi,

I have the following process without sensitivity list:

p_trigger: process
begin
for i in 0 to 10 loop

wait until ls_trigger='1';

if ls_falling_edge_enable='1' then
wait until ls_trigger='0';
end if;

end loop;
wait;
end process p_trigger;

Will the if branch be entered if "ls_falling_edge_enable" becomes
'1' ?
Thank you for your opinion.

Rgds
Andre
 
K

KJ

Hi,

I have the following process without sensitivity list:

p_trigger: process
begin
for i in 0 to 10 loop

wait until ls_trigger='1';

if ls_falling_edge_enable='1' then
wait until ls_trigger='0';
end if;

end loop;
wait;
end process p_trigger;

Will the if branch be entered if "ls_falling_edge_enable" becomes
'1' ?
Thank you for your opinion.

Only if 'ls_falling_edge_enable' happens to be '1' at the time when
ls_trigger *changes* to a '1'. If it is not then the if condition is false
the loop goes back around and waits until ls_trigger changes to a '1' again.

KJ
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top