[dv] Quit on UVM errors by default

This commit is contained in:
Greg Chadwick 2020-04-06 17:36:34 +01:00
parent 0852120462
commit 75148da58c

View file

@ -13,6 +13,7 @@ class core_ibex_base_test extends uvm_test;
core_ibex_vseq vseq;
bit enable_irq_seq;
int unsigned timeout_in_cycles = 100000000;
int unsigned max_quit_count = 1;
// If no signature_addr handshake functionality is desired between the testbench and the generated
// code, the test will wait for the specifield number of cycles before starting stimulus
// sequences (irq and debug)
@ -76,6 +77,12 @@ class core_ibex_base_test extends uvm_test;
phase.drop_objection(this);
endtask
virtual function void end_of_elaboration_phase(uvm_phase phase);
super.end_of_elaboration_phase(phase);
void'($value$plusargs("max_quit_count=%0d", max_quit_count));
uvm_report_server::get_server().set_max_quit_count(max_quit_count);
endfunction
virtual function void report_phase(uvm_phase phase);
super.report_phase(phase);
endfunction