Hi,
I am trying to disable UVM_WARNING coming from the imported package.
So far, I added below set_report_severity_id_action_hier in start_of_simulation_phase of uvm_test.
But UVM_WARNING is not being disabled. I guess it’s because the package is not within the hierarchy of uvm_test.
function void base_test::start_of_simulation_phase(uvm_phase phase);
super.start_of_simulation_phase(phase);
set_report_severity_id_action_hier(UVM_WARNING, "HELLO_WORLD", UVM_NO_ACTION);
endfunction: start_of_simulation_phase
How should I disable all UVM_WARNING messages of ID “HELLO_WORLD” regardless of hierarchy?
EDIT:
The imported package can be simplified as below.
The package is developed from other team and cannot be changed on my end.
package my_package;
class my_class;
// ...
function void my_function();
`uvm_warning("HELLO_WORLD", "...")
endfunction
endclass
const my_class u_my_class = my_class::get();
endpackage
Best regards,
Jung Ik Moon