Forum Discussion
Altera_Forum
Honored Contributor
17 years agotestbench wait for event or some time
Dear All,
could someone advice: I want to wait in my testbench for a signal rise time, like this: wait until rising_edge(MySignal) however the rising edge must come within certain time, e.g. up to 100us. I've testested flavors of constructs like: wait until rising_edge(MySignal) or now > 100 us; however whatever I do, it does not react on the time condition. Only on the rising edge. What do I do wrong? thanks d.3 Replies
- Altera_Forum
Honored Contributor
you can never use NOW in a wait statement because it is not a signal so it will never produce an event so it waits forever.
- Altera_Forum
Honored Contributor
ahmm, thanks, this combination did not come into my mind
- Altera_Forum
Honored Contributor
try:
wait until rising_edge(MySignal) for 100 us;