Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

implementation of timeout in the testbench

Altera_Forum
Honored Contributor II
878 Views

Dear All, 

 

normally I tend to write this: 

 

variable t: time; 

 

 

t := now; 

wait until rising_edge(MemReadQxM) for 150 ns; 

xassert (now-t < 150 ns, "BUS TIMEOUT"); 

 

 

 

is there any 'nicer'/more sophisticated way how to write such assertion? can I avoid the delta t calculation? 

 

thanks 

david
0 Kudos
0 Replies
Reply