# Why doesnt UVM\_VERBOSITY from command line work on object extended from uvm\_report\_object

**URL:** <https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884>\
**Category:** UVM\
**Tags:** uvm\_report\_object, UVM, verbosity\
**Created:** [March 23, 2021, 6:09pm UTC](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884 "2021-03-23T18:09:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justrajdeep](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@justrajdeep](https://verificationacademy.com/forums/u/justrajdeep)\
**Post date:** [March 23, 2021, 6:09pm UTC](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/1 "2021-03-23T18:09:59Z")

</div>

I have an object env\_cfg which is extended from uvm\_report\_object.

I always get the uvm messages with UVM\_MEDIUM. The run-time options have +UVM\_VERBOSITY=UVM\_NONE.

If I extend env\_cfg from uvm\_object then i dont see this issue.

[Eda playground example](https://www.edaplayground.com/x/Ddev)

In the example above you can see that the line

> “this should not be printed”

is with

```auto
UVM_MEDIUM

```

and i have

```auto
+UVM_VERBOSITY=UVM_NONE

```

.

I expected it to be not printed, but it gets printed. Is this a bug?

---

<div class="post-metadata">

**Author:** ![rag123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@rag123](https://verificationacademy.com/forums/u/rag123)\
**Post date:** [March 24, 2021, 3:18am UTC](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/2 "2021-03-24T03:18:55Z")

</div>

_In reply to [justrajdeep](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884):_

The uvm\_report\_object uses set\_report\_macros which means we have to set the verbosity through set\_report\_verbosity\_level.

check the updated example here.

> **[EDA Playground](https://www.edaplayground.com/x/Qkj2)**
>
> Edit, save, simulate, synthesize SystemVerilog, Verilog, VHDL and other HDLs from your web browser.

---

<div class="post-metadata">

**Author:** ![justrajdeep](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@justrajdeep](https://verificationacademy.com/forums/u/justrajdeep)\
**Post date:** [March 24, 2021, 3:30am UTC](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/3 "2021-03-24T03:30:16Z")

</div>

_In reply to [rag123](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/2):_

> _In reply to [justrajdeep](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/2):_  
> The uvm\_report\_object uses set\_report\_macros which means we have to set the verbosity through set\_report\_verbosity\_level.  
> check the updated example here.  
> [UVM: The start and the end of each phase(3) - EDA Playground](https://www.edaplayground.com/x/Qkj2)

I understand that i can use the   
set\_report\_\* methods, but then i cannot change the verbosity level at runtime from command line, i will have to compile each time.

This looks like a limitation.

---

<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:** [March 24, 2021, 7:21am UTC](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/4 "2021-03-24T07:21:24Z")

</div>

_In reply to [justrajdeep](https://verificationacademy.com/forums/t/why-doesnt-uvm-verbosity-from-command-line-work-on-object-extended-from-uvm-report-object/38884/3):_

+UVM\_VERBOSITY only works on classes derived from uvm\_component. It also works on classes not derived from uvm\_report\_object because their reporting methods use the global reporting object from uvm\_test\_top. This does leave classes derived directly from uvm\_report\_object out of scope for the command line options.

Since you are using env\_cfg as the message ID, you can derive env\_cfg from uvm\_object and use

```auto
+uvm_set_verbosity=*,env_cfg,UVM_NONE,build

```
