Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

testbench 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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.