ovm_report_defines.svh

Go to the documentation of this file.
00001 // $Id: ovm__report__defines_8svh-source.html,v 1.1 2008/10/07 21:54:57 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_DEFINES_SVH
00023 `define OVM_REPORT_DEFINES_SVH
00024 
00025 // enum severity
00026 // a report is either a message, warning, error or fatal
00027 typedef bit [1:0] ovm_severity;
00028 
00029 
00030 typedef enum ovm_severity
00031 {
00032   OVM_INFO,
00033   OVM_WARNING,
00034   OVM_ERROR,
00035   OVM_FATAL
00036 } ovm_severity_type;
00037 
00038 // an action is a 4 bit integer built by bitwise or'ing of
00039 // the following actions : DISPLAY, LOG, COUNT, and EXIT
00040 // 
00041 // DISPLAY sends the report to the standard output
00042 // LOG sends the report to the file(s) for this (severity,id) pair
00043 // COUNT counts the number of reports with the COUNT attribute.
00044 // When this value reaches max_quit_count, the simulation terminates
00045 // EXIT terminates the simulation immediately.
00046 
00047 `ifndef IUS_SVPP_LIMIT
00048 typedef bit [5:0] ovm_action;
00049 
00050 typedef enum ovm_action
00051 {
00052   OVM_NO_ACTION = 6'b000000,
00053   OVM_DISPLAY   = 6'b000001,
00054   OVM_LOG       = 6'b000010,
00055   OVM_COUNT     = 6'b000100,
00056   OVM_EXIT      = 6'b001000,
00057   OVM_CALL_HOOK = 6'b010000,
00058   OVM_STOP      = 6'b100000
00059 } ovm_action_type;
00060 `else
00061 typedef int ovm_action;
00062 
00063 typedef enum
00064 {
00065   OVM_NO_ACTION = 'b000000,
00066   OVM_DISPLAY   = 'b000001,
00067   OVM_LOG       = 'b000010,
00068   OVM_COUNT     = 'b000100,
00069   OVM_EXIT      = 'b001000,
00070   OVM_CALL_HOOK = 'b010000,
00071   OVM_STOP      = 'b100000
00072 } ovm_action_type;
00073 `endif
00074 
00075 // Verbosity values are just integers. This enum provides some predefind verbosity
00076 // levels.
00077 
00078 typedef enum {
00079   OVM_NONE = 0,
00080   OVM_LOW = 10000,
00081   OVM_MEDIUM = 20000,
00082   OVM_HIGH = 30000,
00083   OVM_FULL = 40000
00084 } ovm_verbosity;
00085 
00086 typedef int OVM_FILE;
00087 `ifndef INCA
00088 typedef ovm_action id_actions_array[string];
00089 typedef OVM_FILE id_file_array[string];
00090 `endif
00091 
00092 ovm_action s_default_action_array[string]; // default is already NO_ACTION
00093 OVM_FILE s_default_file_array[string]; // default is already 0
00094 
00095 `define ovm_file "<UNKNOWN>"
00096 `define ovm_line 0
00097 
00098 `define OVM_REPORT_INFO(ID,MSG) \
00099   ovm_report_info(ID,MSG,300,`ovm_file,`ovm_line)
00100 
00101 `define OVM_REPORT_WARNING(ID,MSG) \
00102   ovm_report_warning(ID,MSG,200,`ovm_file,`ovm_line)
00103 
00104 `define OVM_REPORT_ERROR(ID,MSG) \
00105   ovm_report_error(ID,MSG,100,`ovm_file,`ovm_line)
00106 
00107 `define OVM_REPORT_FATAL(ID,MSG) \
00108   ovm_report_fatal(ID,MSG,0,`ovm_file,`ovm_line)
00109 
00110 
00111 `endif // OVM_REPORT_DEFINES_SVH

Intelligent Design Verification
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
Doxygen Version: 1.4.6
Mon Sep 29 14:20:12 2008
Find a documentation bug? Report bugs to: bugs.intelligentdv.com Project: DoxygenFilterSV