How to use ovm_info facility?

is that possible to achieve following items with 2 agents that already contains `ovm_info messages?

  1. set them with different verbosity.
  2. set one to display on the screen, another print to file.

hope that someone could hint me with keyword or some codes. thanks!

Hi,

For #1 you can do

agentA.set_report_verbosity_level(OVM_HIGH);
agentB.set_report_verbosity_level(OVM_FULL);

For #2

agentB.set_report_default_file(file.txt);

Thanks for quick response,

  1. if `ovm_info is in the montior, should agent do anything to pass the setting to monitor?

  2. if the 2 agents should be set different, does that mean I could no longer use the command line argument as below?

+OVM_VERBOSITY=OVM_LOW

  1. if this does not work, how do you suggest to debug?

Hi yhchou,

For #1 you need to do

agentA.**mon.**set_report_verbosity_level(OVM_HIGH);

For #2
Not like that but for those two agents the “+OVM_VERBOSITY=OVM_LOW” will not work.

For #3
If above things doesn’t work then you can add break points and trace the issue.

it finally work after adding this.

verif0.phy.monitor.set_report_id_action("monitor", OVM_LOG);