00001 // $Id: ovm__report__global_8svh-source.html,v 1.1 2008/10/07 21:54:17 alex.marin Exp $ 00002 //---------------------------------------------------------------------- 00003 // Copyright 2007-2008 Mentor Graphics Corporation 00004 // Copyright 2007-2008 Cadence Design Systems, Inc. 00005 // All Rights Reserved Worldwide 00006 // 00007 // Licensed under the Apache License, Version 2.0 (the 00008 // "License"); you may not use this file except in 00009 // compliance with the License. You may obtain a copy of 00010 // the License at 00011 // 00012 // http://www.apache.org/licenses/LICENSE-2.0 00013 // 00014 // Unless required by applicable law or agreed to in 00015 // writing, software distributed under the License is 00016 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 00017 // CONDITIONS OF ANY KIND, either express or implied. See 00018 // the License for the specific language governing 00019 // permissions and limitations under the License. 00020 //---------------------------------------------------------------------- 00021 00022 `ifndef OVM_REPORT_GLOBAL_SVH 00023 `define OVM_REPORT_GLOBAL_SVH 00024 00025 // Provides a global reporter and a set of global reporting 00026 // functions. These can be use in modules or in any class 00027 // not derived from ovm_report_client. 00028 00029 ovm_reporter _global_reporter = ovm_initialize_global_reporter(); 00030 function ovm_reporter ovm_initialize_global_reporter(); 00031 if(_global_reporter == null) _global_reporter = new; 00032 return _global_reporter; 00033 endfunction 00034 00035 00036 function void ovm_report_info(string id, 00037 string message, 00038 int verbosity = OVM_MEDIUM, 00039 string filename = "", 00040 int line = 0); 00041 void'(ovm_initialize_global_reporter()); 00042 _global_reporter.ovm_report_info(id, message, verbosity, filename, line); 00043 endfunction 00044 00045 function void ovm_report_warning(string id, 00046 string message, 00047 int verbosity = OVM_MEDIUM, 00048 string filename = "", 00049 int line = 0); 00050 void'(ovm_initialize_global_reporter()); 00051 _global_reporter.ovm_report_warning(id, message, verbosity, filename, line); 00052 endfunction 00053 00054 function void ovm_report_error(string id, 00055 string message, 00056 int verbosity = OVM_LOW, 00057 string filename = "", 00058 int line = 0); 00059 void'(ovm_initialize_global_reporter()); 00060 _global_reporter.ovm_report_error(id, message, verbosity, filename, line); 00061 endfunction 00062 00063 function void ovm_report_fatal(string id, 00064 string message, 00065 int verbosity = OVM_NONE, 00066 string filename = "", 00067 int line = 0); 00068 void'(ovm_initialize_global_reporter()); 00069 _global_reporter.ovm_report_fatal(id, message, verbosity, filename, line); 00070 endfunction 00071 00072 function int ovm_get_max_verbosity(); 00073 return _global_reporter.m_rh.m_max_verbosity_level; 00074 endfunction 00075 00076 `endif // OVM_REPORT_GLOBAL_SVH
![]() Intelligent Design Verification Project: OVM, Revision: 1.1.0 |
Copyright (c) 2008 Intelligent Design Verification. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included here: http://www.intelligentdv.com/licenses/fdl.txt |
![]() Doxygen Version: 1.4.6 Mon Sep 29 14:23:30 2008 |