# Set\_report\_severity\_if\_override usage

**URL:** <https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [May 5, 2021, 2:03am UTC](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047 "2021-05-05T02:03:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CRVAddict](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ed8c4c/32.png) [@CRVAddict](https://verificationacademy.com/forums/u/CRVAddict)\
**Post date:** [May 5, 2021, 2:03am UTC](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/1 "2021-05-05T02:03:03Z")

</div>

HI,

I have the following code in on of my components

```verilog
   `uvm_error(get_name(), $sformatf("channel up status"));

```

From the test I am trying to demote it

```verilog
function void end_of_elaboration_phase(uvm_phase phase);
    if($test$plusargs("DEMOTE"))
    begin
      env.m_env.m_agent_1[0].set_report_severity_id_override(UVM_ERROR,"m_receiver",UVM_WARNING);
    end

  endfunction : end_of_elaboration_phase

```

But I do not see the ERROR being demote. Am I missing anything? I have tried not give hierarchial path. I have referred to other posts on this topic as well but i am unable to fix this problem

The component is a parametrized class and it extends from another class. Parent class has the error message. Child class is the one i am demoting in the test. NOt sure if that the problem

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [May 5, 2021, 4:16pm UTC](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/2 "2021-05-05T16:16:04Z")

</div>

_In reply to [CRVAddict](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047):_

Look at the message printed by `uvm\_error. You are using get\_name() as the message ID. Make sure the ID names match.

---

<div class="post-metadata">

**Author:** ![CRVAddict](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ed8c4c/32.png) [@CRVAddict](https://verificationacademy.com/forums/u/CRVAddict)\
**Post date:** [May 5, 2021, 5:05pm UTC](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/3 "2021-05-05T17:05:32Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/2):_

```auto
# UVM_ERROR 464677.800ns: uvm_test_top.env.m_env.m_agent_1[0].m_receiver [**m_receiver**] channel up status 0

```

Yes, I use get\_name and it returns “m\_receiver” so i think ID’s match.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [May 5, 2021, 5:16pm UTC](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/4 "2021-05-05T17:16:20Z")

</div>

_In reply to [CRVAddict](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/3):_

You are setting the override in the agent, not the m\_reciever component. You want it 1 level down.

```verilog
      env.m_env.m_agent_1[0].m_reciever.set_report_severity_id_override(UVM_ERROR,"m_receiver",UVM_WARNING);

```

---

<div class="post-metadata">

**Author:** ![CRVAddict](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ed8c4c/32.png) [@CRVAddict](https://verificationacademy.com/forums/u/CRVAddict)\
**Post date:** [May 5, 2021, 5:26pm UTC](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/5 "2021-05-05T17:26:16Z")

</div>

_In reply to [CRVAddict](https://verificationacademy.com/forums/t/set-report-severity-if-override-usage/39047/4):_

Great works now!
