Comparator reports UVM_WARNING instead of UVM_ERROR for mismatches

I’m using a comparator in my scoreboard and I noticed that everytime it sees a miscompare it reports it as UVM_WARNING and not UVM_ERROR.
My question is why is it only a warning and not an error? If I want it to report as UVM_ERROR, how should I do that?

Hi,

I think I found the solution:


my_comparator.set_report_severity_id_override(.cur_severity(UVM_WARNING),.id("Comparator Mismatch"),.new_severity(UVM_ERROR));

I havent’ tried this yet. If it works, I’ll tell you. But if you have any other solutions, you may also tell me.