# How to print from sequence item using \`uvm\_info

**URL:** <https://verificationacademy.com/forums/t/how-to-print-from-sequence-item-using-uvm-info/41860>\
**Category:** UVM\
**Tags:** UVM, \-UVM-warnings-disable\
**Created:** [June 22, 2023, 7:07am UTC](https://verificationacademy.com/forums/t/how-to-print-from-sequence-item-using-uvm-info/41860 "2023-06-22T07:07:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uvm\_novice](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/u/edb3f5/32.png) [@uvm\_novice](https://verificationacademy.com/forums/u/uvm_novice)\
**Post date:** [June 22, 2023, 7:07am UTC](https://verificationacademy.com/forums/t/how-to-print-from-sequence-item-using-uvm-info/41860/1 "2023-06-22T07:07:04Z")

</div>

How to print from sequence item using `uvm\_info. How to control the print for the below sequence item. from the command line ?

class debug extends uvm\_object;

int payload;

byte CRC;

function void calculate\_crc();  
`uvm\_info(“debug\_class”,$sformatf(“CRC=%0d”,CRC),UVM\_HIGH)  
endfunction

endclass

---

<div class="post-metadata">

**Author:** ![chrisspear](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chrisspear/32/2702_2.png) [@chrisspear](https://verificationacademy.com/forums/u/chrisspear)\
**Post date:** [June 23, 2023, 2:46pm UTC](https://verificationacademy.com/forums/t/how-to-print-from-sequence-item-using-uvm-info/41860/2 "2023-06-23T14:46:43Z")

</div>

_In reply to [uvm\_novice](https://verificationacademy.com/forums/t/how-to-print-from-sequence-item-using-uvm-info/41860):_

For starters, your sequence item should extend uvm\_sequence\_item, not uvm\_object.

There are several ways. You could set the simulation verbosity in Questa

```auto
% vsim +UVM_VERBOSITY=UVM_HIGH ...

```

Run the simulation and see what instance name is printed by your message. It depends on how you create the transaction object. For example, in my example, it is

```auto
_uvm_test_top.env.agt.sqr_@@seq.tx

```

so I used

```auto
% vsim +uvm_set_verbosity=_uvm_test_top.env.agt.sqr_,debug_class,UVM_HIGH,run ...

```

If you want to put wildcards in the instance name, you may have to use quotes and backslashes, depending on your simulator.
