[dv] Add custom test done functionality

This enables tests to implement custom test completion handling
This commit is contained in:
Greg Chadwick 2022-11-02 12:00:01 +00:00 committed by Greg Chadwick
parent 4b88ee9571
commit 042c12abd0

View file

@ -323,6 +323,9 @@ class core_ibex_base_test extends uvm_test;
`uvm_fatal(`gfn,
$sformatf("Test failed due to wall-clock timeout. [%0ds]", timeout_seconds))
end
begin
wait_for_custom_test_done();
end
join_any
test_done = 1'b1;
@ -454,4 +457,8 @@ class core_ibex_base_test extends uvm_test;
end while (signature_data != core_status);
endtask
virtual task wait_for_custom_test_done();
wait (test_done == 1'b1);
endtask
endclass