// hook (<report_info_hook>, etc.). If either hook method// returns 0 then the report is not processed further.virtualfunctionbitreport_hook(stringid,stringmessage,intverbosity,stringfilename,intline);return1;endfunction// Function- report_header//// Prints version and copyright information. This information is sent to the// command line if ~file~ is 0, or to the file descriptor ~file~ if it is not 0. // The <uvm_root::run_test> task calls this method just before it component// phasing begins.//// Use <uvm_root::report_header()>virtualfunctionvoidreport_header(UVM_FILEfile=0);
// followed by the appropriate severity-specific hook method. If either // returns 0, then the report is not processed.virtualfunctionbitrun_hooks(uvm_report_objectclient,uvm_severityseverity,stringid,stringmessage,intverbosity,stringfilename,intline);bitok;ok=client.report_hook(id,message,verbosity,filename,line);case(severity)UVM_INFO:ok&=client.report_info_hook(id,message,verbosity,filename,line);UVM_WARNING:
endfunction// @uvm-compat Added for compatibility with 1.1dvirtualfunctionbitreport_hook(stringid,stringmessage,intverbosity,stringfilename,intline);return1;endfunctionendclass`endif// UVM_REPORT_CLIENT_SVH
endfunction//@uvm-compat provided for compatibility with 1.1dvirtualfunctionbitrun_hooks(uvm_report_objectclient,uvm_severityseverity,stringid,stringmessage,intverbosity,stringfilename,intline);bitok;ok=client.report_hook(id,message,verbosity,filename,line);case(severity)UVM_INFO:ok&=client.report_info_hook(id,message,verbosity,filename,line);UVM_WARNING:
report_message.set_report_server(this);// this functionality provided for backward compatibility with 1.1dif(report_message.get_action()&UVM_CALL_HOOK)report_ok=l_report_handler.run_hooks(report_message.get_report_object(),report_message.get_severity(),report_message.get_id(),report_message.get_message(),report_message.get_verbosity(),report_message.get_filename(),report_message.get_line());if(report_ok)report_ok=uvm_report_catcher::process_all_report_catchers(report_message);if(uvm_action_type'(report_message.get_action())==UVM_NO_ACTION)report_ok=0;