Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

Exiting simulation after some delay when errors exceed max_quit_count

$
0
0

Hi,

 

just wondering if there is a way to delay the quitting of simulation when max_quit_count number of errors occur. For e.g. :

 

   >uvm_report_server svr;

 

   >virtual function void build_phase(uvm_phase phase);
   >  super.build_phase(phase);
   >  svr = _global_reporter.get_report_server();
   >  svr.set_max_quit_count(1);
   >endfunction:build_phase

 

In this example I want to exit after first error occurs, but want to insert some additional delay before actual $finish is called. This helps in debug. But I see that die() inside uvm_report_object.svh (which gets called when max_quit_count errors occur) is a function which calls $finish immediately :

 

  >virtual function void die();
  >  // make the pre_abort callbacks
  >  uvm_root top = uvm_root::get();
  >  top.m_do_pre_abort();

  > report_summarize();
  >  $finish;
  >endfunction

So I am wondering if it is possible to insert some hash delay before quitting in any other way but still using the max_quit_count feature ?

 

-Ujjal

 


Viewing all articles
Browse latest Browse all 756

Trending Articles