mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 05:17:12 -04:00
[dv] Add custom test done functionality
This enables tests to implement custom test completion handling
This commit is contained in:
parent
4b88ee9571
commit
042c12abd0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue