Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 토론

testbench wait for event or some time

Altera_Forum
명예로운 기여자 II
1,740 조회수

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.
0 포인트
3 응답
Altera_Forum
명예로운 기여자 II
1,058 조회수

try:wait until rising_edge(MySignal) for 100 us;

0 포인트
Altera_Forum
명예로운 기여자 II
1,058 조회수

ahmm, thanks, this combination did not come into my mind

0 포인트
Altera_Forum
명예로운 기여자 II
1,058 조회수

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.

0 포인트
응답