End of test in UVM

Hi,

How can I write a message at the end of the test (something like “simulation ended successfully”) or in the middle of the test (in case an error occurred “protocol violation, request was de-asserted before acknowledge was received”) using UVM methodology.

I will need this, when running in regression mode, in order to know if the test has passed or failed.

If I am putting this message before global_stop_request(), the timing is not correct (it displays this message at the start of simulation - time 0).
If I am putting this message after global_stop_request(), the message is not printed, because the simulator will exit.

If you have any suggestions please advice.

Thank you,
Adi

hi adi,

please have a look at the uvm-world.org forum (http://www.uvmworld.org/forums/showthread.php?74-end-of-test-methodology-in-uvm&p=133#post133) where i posted an example having the right answers for your question.

while ovm and uvm have alot in common uvm-world.org and the forum there has been opened to specifically address uvm related questions. posting there allows uvm users to follow these uvm related discussions directly.

regards
/uwe

I have tried your example and it worked.
I will use your suggestions.

Thank you.
Adi

In reply to uwes:

Hello,

The page no longer exists. Could you send me the correct link or the code ?

Thanks,
Madhu

In reply to mseyunni:

Hi Madhu,
I suggest you to read this article http://www.sunburst-design.com/papers/CummingsDVCon2011_UVM_TerminationTechniques.pdf

Albert