00001 // $Id: a00265.html,v 1.1 2009/01/07 19:30:01 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 = 100, 00081 OVM_MEDIUM = 200, 00082 OVM_HIGH = 300, 00083 OVM_FULL = 400, 00084 OVM_DEBUG = 500 00085 } ovm_verbosity; 00086 00087 typedef int OVM_FILE; 00088 typedef ovm_action id_actions_array[string]; 00089 typedef OVM_FILE id_file_array[string]; 00090 00091 ovm_action s_default_action_array[string]; // default is already NO_ACTION 00092 OVM_FILE s_default_file_array[string]; // default is already 0 00093 00094 `endif // OVM_REPORT_DEFINES_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 |