00001 // $Id: a00266.html,v 1.1 2009/01/07 19:29:47 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 // Function: ovm_report_enabled (global) 00026 // 00027 // Returns 1 if the report will be issued given the report's declared 00028 // verbosity level and the configured verbosity level in ovm_top. The 00029 // ovm_report_object also has an ovm_report_enabled method, which checks 00030 // the report's declared verbosity level with the configured verbosity 00031 // level for that particular instance (i.e., for the component instance.) 00032 // 00033 // Static methods of an extension of ovm_report_object can not call 00034 // ovm_report_enabled() because the call will resolve to the ovm_report_object 00035 // non-static method. Static methods can not call non-static methods of the 00036 // same class. 00037 00038 function bit ovm_report_enabled (int verbosity); 00039 return (ovm_top.get_report_verbosity_level() >= verbosity); 00040 endfunction 00041 00042 00043 // Functions: ovm_report_<severity> 00044 // 00045 // Provides a set of global reporting functions, which delegate to 00046 // the ovm_top instance. These functions can be called from modules or 00047 // any class not derived from ovm_report_object. 00048 00049 function void ovm_report_info(string id, 00050 string message, 00051 int verbosity = OVM_MEDIUM, 00052 string filename = "", 00053 int line = 0); 00054 ovm_top.ovm_report_info(id, message, verbosity, filename, line); 00055 endfunction 00056 00057 function void ovm_report_warning(string id, 00058 string message, 00059 int verbosity = OVM_MEDIUM, 00060 string filename = "", 00061 int line = 0); 00062 ovm_top.ovm_report_warning(id, message, verbosity, filename, line); 00063 endfunction 00064 00065 function void ovm_report_error(string id, 00066 string message, 00067 int verbosity = OVM_LOW, 00068 string filename = "", 00069 int line = 0); 00070 ovm_top.ovm_report_error(id, message, verbosity, filename, line); 00071 endfunction 00072 00073 function void ovm_report_fatal(string id, 00074 string message, 00075 int verbosity = OVM_NONE, 00076 string filename = "", 00077 int line = 0); 00078 ovm_top.ovm_report_fatal(id, message, verbosity, filename, line); 00079 endfunction 00080 00081 00082 `endif // OVM_REPORT_GLOBAL_SVH
![]() Intelligent Design Verification Project: OVM, Revision: 2.0.1 |
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.5.5 Wed Jan 7 19:27:18 2009 |