1、针对component中的某个ID做override:
virtual function void connect_phase(uvm_phase phase); super.connect_phase(phase); this.env.my_agent.set_report_severity_id_override(UVM_ERROR, "TRACE", UVM_WARNING); endfunction : connect_phase
2、命令行重载:
+uvm_set_severity="uvm_test_top.env.my_agent.o_drv,TRACE,UVM_ERROR,UVM_WARNING"