How to use report phase for printing perticular uvm_error

Hii,All

I want to use some perticular report method to display count for some perticular UVM_ERROR.

for example: I have 50 register and I’m doing write and read operation.
now while reading i’m also comparing my read value to write value(write value i already stored into the verialble).
so if value missmatch it’ll give some UVM_ERROR.
suppose it gives 10 UVM_ERROR for value missmatch.and other 3 UVM_ERROR for some othe runtime issues.
but i want to display that 10 UVM_ERROR sapretly as read_write fail than how can I achive that?

Thanks,

The message ID should be unique to help you filter those messages. Questa has a message viewer to help you filter those messages. You can also redirect certain messages to a file. See the method: set_report_severity_id_file

In reply to dave_59:

Hii,

I’m woking on RAL. so mirror method will give UVM_ERROR if there is a miss match between Read value and mirror value.
Now it will show UVM_ERROR AND UVM_INFO for perticular missmatch register with the tag ID of RegModel. for example if my 1 register get failed then it shows 1 UVM_ERROR and 1 UVM_INFO with id teg of [RegModel] so in report phase it will print 2 count because of two same id .but I want only UVM_ERROR count with the ID tag of [RegModel] so i can easily know how many register got failed during read_write operation. and I can’t change the ID because its printing from the MIRROR method.

Thank you
Khushmit