The Report phase is
used for reporting the pass/fail status.
How to get the Pass/Fail status without any interrupt from
our test environment?
You can implement
the below logic in your uvm environment report phase to generate the Test
status.
Below I have written a piece of code to generate the Test status and
you can refer the same.
/////////////////////////////////////////////////////////////////////////////////////////
Function void report ();
uvm_report_server svr; // Creates the handle for report server
svr = uvm_report_server::get_server();
//Gets the global
report server
// Function returns the
severity count
if(svr.get_severity_count(UVM_ERROR) + svr.
get_severity_count(UVM_FATAL) > 0) begin
$display(“Test Fail”);
// Display the count of message for the particular module.
$display(“Number of Error in the
module = %0d”,svr.get_id_count(“<UNIQUE_ID>”));
end
else begin
$display(“Test Fail”);
end
endfunction
/////////////////////////////////////////////////////////////////////////////////////////
With an above example you can have a display test case status without any signal/variable from the test environment.
With an above example you can have a display test case status without any signal/variable from the test environment.
No comments:
Post a Comment