How to supress the OVM warning due to "deprecated"

Hi,

I am using OVM 2.0 and while running the testcase, I use to get a warning message as follows

OVM_WARNING @ 0: ovm_test_top.XYZ_TOP.BUS_IF.AHB.MASTER[0].SUB_DRIVER[0].sqr_pull_port [deprecated] ovm_seq_item_pull_port.connect_if has been deprecated

How can I suppress/avoid this warning?

You suppress any message by using

set_report_severity_id_action(OVM_WARNING,“deprecated”,OVM_NO_ACTION);

this will suppress warnings with “deprecated” as the id for the particular component reporting the error.

In reply to dave_59:

Adding set_report_severity_id_action(OVM_WARNING,“deprecated”,OVM_NO_ACTION); at the “ovm_test” doesn’t work for me.
I tried with set_report_severity_id_action_hier also, but still couldn’t suppress it.

I even tried
XYZ_TOP.BUS_IF.AHB.MASTER[0].SUB_DRIVER[0].set_report_severity_id_action_hier(OVM_WARNING,“deprecated”,OVM_NO_ACTION);

But none of the options worked for me.

Any further inputs on this issue.