karandeep963 Posted August 7, 2014 Report Share Posted August 7, 2014 Hello All, Please help me : I have different tests requiring different timeouts, let say: 1. Test1 - timeout 100ns2. Test2 - timeout 100ms3. Test3 - timeout 1s In the test base I have set_timeout(1000ns, 1) , so how to override this timeout from various tests or any other way to achieve this , unfortunately unable to finad any good example to understand -Thanks Karandeep Quote Link to comment Share on other sites More sharing options...
tudor.timi Posted August 7, 2014 Report Share Posted August 7, 2014 What you could do is call set_timeout(...) again in start_of_simulation() (or end_of_elaboration(), basically any phase that isn't really used) to overwrite the value set by any base class. karandeep963 1 Quote Link to comment Share on other sites More sharing options...
karandeep963 Posted August 7, 2014 Author Report Share Posted August 7, 2014 WOW !!! Great , I wish I could think of that , Great Many Thanks Tudor. I was trying to override in the same phase .... , I must think of that Really Thankful... Quote Link to comment Share on other sites More sharing options...
Roman Posted August 11, 2014 Report Share Posted August 11, 2014 Supposed different test could have a little different command line options beside UVM_TESTNAME, then you could also control the timeout via uvm_comandline using "+UVM_TIMEOUT=<timeout>,<overridable>" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.