leonyang Posted September 27, 2011 Report Share Posted September 27, 2011 In my previous testbench built by the OVM, I added a time bomb to the whole environment, the bomb explosion indicates that the simulation runs too long and there must be something wrong. In this case, the the simulation will be terminated immediately by calling the ovm_test_done.force_stop() task. I know the ovm_test_done has been replaced by the uvm_objection, however, I don't find any method privided by the uvm_objection API which can implement the similar function of the force_stop(). So is there any way recommended by the UVM to terminated the simulation immediately and smoothly? Thx Quote Link to comment Share on other sites More sharing options...
uwes Posted September 27, 2011 Report Share Posted September 27, 2011 hi, why not simply call uvm_report_fatal("SOMETHINGISWRONG","....."); you may also have a look at the uvm_heartbeat facility. this is connected to an objection and expects a raise|drop within a window. if no raise|drops occur in a window the heartbeat stops the run with a HBFAIL fatal msg. /uwe Quote Link to comment Share on other sites More sharing options...
leonyang Posted September 27, 2011 Author Report Share Posted September 27, 2011 Hi uwe, Thx for your response. You give me a good idea. I must splits hairs . 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.