N
Nicolas Matringe
Guest
Hello all
I have a process (without sensitivity list) with a wait condition on two
signals followed by a falling edge test (see following code excerpt)
What happens is that the falling edge remains true as long as the signal
doesn't change. Further investigations showed that the 'event attribute
remained true after the signal had changed, instead of being true only
for one simulation cycle.
What went wrong with ModelSim ? (or have I been misunderstanding the
'event attribute for many years ?)
code snippet :
process
begin
...
wait on sig1, sig2;
if falling_edge(sig1) then
...
end process
Function falling_edge returned "true" even after an event on sig2 but
not on sig1.
Nicolas
I have a process (without sensitivity list) with a wait condition on two
signals followed by a falling edge test (see following code excerpt)
What happens is that the falling edge remains true as long as the signal
doesn't change. Further investigations showed that the 'event attribute
remained true after the signal had changed, instead of being true only
for one simulation cycle.
What went wrong with ModelSim ? (or have I been misunderstanding the
'event attribute for many years ?)
code snippet :
process
begin
...
wait on sig1, sig2;
if falling_edge(sig1) then
...
end process
Function falling_edge returned "true" even after an event on sig2 but
not on sig1.
Nicolas