Ovm reporting

In reply to dave_59:

Hi,

What I am trying to do is this -

f= $fopen(“errorlog”, “a+”); // 2nd argument gives error as mentioned below
set_report_severity_file(OVM_ERROR, f);
set_report_severity_action(OVM_ERROR, OVM_DISPLAY + OVM_LOG + OVM_COUNT);

Error : src/compatibility/urm_message.sv(494): $fdisplay : Argument 1 is an unknown file descriptor.

I am trying to pull all the error messages in this newly opened file. (I should have been clearer earlier while posting question). Why is $fdisplay function not able to find the FD?

Code works if we do not pass any ‘mode’ argument while opening file.