# Comparator reports UVM\_WARNING instead of UVM\_ERROR for mismatches

**URL:** <https://verificationacademy.com/forums/t/comparator-reports-uvm-warning-instead-of-uvm-error-for-mismatches/29589>\
**Category:** UVM\
**Tags:** UVM, uvm\_error, uvm\_warning, comparator, scoreboard\
**Created:** [June 16, 2014, 5:54am UTC](https://verificationacademy.com/forums/t/comparator-reports-uvm-warning-instead-of-uvm-error-for-mismatches/29589 "2014-06-16T05:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reuben](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/reuben/32/1409_2.png) [@Reuben](https://verificationacademy.com/forums/u/Reuben)\
**Post date:** [June 16, 2014, 5:54am UTC](https://verificationacademy.com/forums/t/comparator-reports-uvm-warning-instead-of-uvm-error-for-mismatches/29589/1 "2014-06-16T05:54:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Reuben](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/reuben/32/1409_2.png) [@Reuben](https://verificationacademy.com/forums/u/Reuben)\
**Post date:** [June 16, 2014, 8:47am UTC](https://verificationacademy.com/forums/t/comparator-reports-uvm-warning-instead-of-uvm-error-for-mismatches/29589/2 "2014-06-16T08:47:55Z")

</div>

Hi,

I think I found the solution:

```verilog

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.
