Disable uvm_reg_field.svh warnings

Is there a way to disable the warnings from the uvm_reg_field.svh due to accessing a field not the whole register?

In reply to ahennawy:

It would help to know which warnings you are referring to. Any message with a unique ID can be disabled very easily. Other warnings might be because of how you configured the register.

In reply to dave_59:

Hi Dave,
the RAL warning was because we were calling the .write() on a uvm_reg_item which is not configured as individually accessible.
The main issue was that there were another environment using the same code and it is working without popping this warning.

I found that there is a compile directive “UVM_REG_NO_INDIVIDUAL_FIELD_ACCESS”. based on this macro the uvm_reg_field class handles the write operations.
When it is defined the accessing of the field is neglected and the uvm automatically masks and writes the whole parent register.
When it is not defined the uvm tries first to write the single field, and if it is not individually accessible it fires the warning then writes the whole register too.

I am not able to find any documentation for such UVM compile directives. so please let me know if there is one :).

please confirm my understanding. also, I want to know how a uvm warning message can be disabled as you mentioned.

Thanks in advance Dave :))

In reply to dave_59:

In reply to ahennawy:
It would help to know which warnings you are referring to. Any message with a unique ID can be disabled very easily. Other warnings might be because of how you configured the register.

Hi Dave,
could you please comment on the previous one? :D

In reply to ahennawy:

You cannot disable warnings/errors coming from a specific UVM library file. I believe you are expecting this.
But the UVM has a very powerful reproting mechanism which can be controlled. You can disable warnings/errors coming from a specific ID, ie. the first argument in the uvm_warning/error.