Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / common / vera / classes / std_display_class.vrh
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: std_display_class.vrh
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35#ifndef INC__TMP_STD_DISPLAY_CLASS_VRH
36#define INC__TMP_STD_DISPLAY_CLASS_VRH
37
38#include "std_display_defines.vri"
39
40extern class StandardDisplay {
41 integer maxerror;
42 integer maxwarning;
43 integer wait_cycle_to_kill;
44 integer debug;
45 integer debug_all;
46 integer info_all;
47 integer info;
48 integer start_debug;
49 integer quiet;
50 integer errors;
51 integer warnings;
52 task new (
53 integer maxErrors = 1,
54 integer errorCnt = 0,
55 integer maxWarnings = 5,
56 integer wait_cycle_to_kill = 5,
57 integer start_debug = 0
58 );
59 task dispmon (
60 string context_str,
61 integer level,
62 string message,
63 string file = null,
64 integer lineNum = 0
65 );
66 task writemon (
67 string context_str,
68 integer level,
69 string message,
70 string file = null,
71 integer lineNum = 0
72 );
73 task appendmon (
74 string context_str,
75 integer level,
76 string message
77 );
78 function integer get_errors (
79 );
80 protected task init_vlabels (
81 );
82 protected task parse_mon_arg_str (
83 string src_str
84 );
85 function integer context_exists (
86 string context_str
87 );
88 task create_context (
89 string context_str
90 );
91 task set_context_verbosity (
92 string context_str,
93 reg [49:0] value = 50'h3_ffff_c000_0001
94 );
95 function reg [49:0] get_verbosity (
96 string context_str
97 );
98 task set_level (
99 string context_str = null,
100 integer level,
101 integer value
102 );
103 task set_verbosity (
104 reg [49:0] value = 50'h3_ffff_c000_0001
105 );
106 task print_verbosity (
107 integer level,
108 string context_str = null
109 );
110 function integer context_ndx (
111 string context_str
112 );
113 function string get_context_name (
114 integer mycontext
115 );
116 task set_default_verbosity (
117 reg [49:0] value
118 );
119 function reg [49:0] get_default_verbosity (
120 );
121 task print_default_verbosity (
122 integer level = 0
123 );
124 task getCounts(var integer err, var integer warn);
125}
126
127#endif