Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: ZeroInManager.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_ZEROINMANAGER_VRH | |
36 | #define INC____TMP_ZEROINMANAGER_VRH | |
37 | ||
38 | #include <vera_defines.vrh> | |
39 | #include <ListMacros.vrh> | |
40 | #include "ZeroInDefines.vri" | |
41 | #include "std_display_defines.vri" | |
42 | #include "std_display_class.vrh" | |
43 | #include "plusArgMacros.vri" | |
44 | extern class AssertionInfo { | |
45 | string _pathToAssertion; | |
46 | string _type; | |
47 | string _module; | |
48 | string _statistic; | |
49 | bit [63:0] _valueToCheck; | |
50 | task new ( | |
51 | string a_type, | |
52 | string a_path, | |
53 | string a_module, | |
54 | string a_statistic = "", | |
55 | bit [63:0] a_valueToCheck = 1 | |
56 | ); | |
57 | } | |
58 | extern class VeraListNodeAssertionInfo { | |
59 | AssertionInfo _VERA_List_Node_Data_; | |
60 | VeraListNodeAssertionInfo _VERA_List_Node_m_next_; | |
61 | VeraListNodeAssertionInfo _VERA_List_Node_m_prev_; | |
62 | function AssertionInfo data ( | |
63 | ); | |
64 | } | |
65 | extern class VeraListIterator_AssertionInfo { | |
66 | VeraListNodeAssertionInfo _VERA_List_Iterator_M_node_; | |
67 | integer _VERA_List_Id_; | |
68 | task new ( | |
69 | VeraListNodeAssertionInfo node | |
70 | ); | |
71 | task next ( | |
72 | ); | |
73 | task prev ( | |
74 | ); | |
75 | function AssertionInfo data ( | |
76 | ); | |
77 | function integer neq ( | |
78 | VeraListIterator_AssertionInfo iter | |
79 | ); | |
80 | function integer eq ( | |
81 | VeraListIterator_AssertionInfo iter | |
82 | ); | |
83 | } | |
84 | extern class VeraList_AssertionInfo extends _Synopsys_Vera_List_ { | |
85 | function VeraListIterator_AssertionInfo start ( | |
86 | ); | |
87 | function VeraListIterator_AssertionInfo finish ( | |
88 | ); | |
89 | task insert ( | |
90 | VeraListIterator_AssertionInfo _pos, | |
91 | AssertionInfo value | |
92 | ); | |
93 | function VeraListIterator_AssertionInfo erase ( | |
94 | VeraListIterator_AssertionInfo position | |
95 | ); | |
96 | function integer calculate_size ( | |
97 | ); | |
98 | function integer size ( | |
99 | ); | |
100 | function integer empty ( | |
101 | ); | |
102 | function AssertionInfo front ( | |
103 | ); | |
104 | function AssertionInfo back ( | |
105 | ); | |
106 | task swap ( | |
107 | VeraList_AssertionInfo L | |
108 | ); | |
109 | task push_front ( | |
110 | AssertionInfo value | |
111 | ); | |
112 | task push_back ( | |
113 | AssertionInfo value | |
114 | ); | |
115 | task pop_front ( | |
116 | ); | |
117 | task pop_back ( | |
118 | ); | |
119 | task clear ( | |
120 | ); | |
121 | task purge ( | |
122 | ); | |
123 | function VeraListIterator_AssertionInfo erase_range ( | |
124 | VeraListIterator_AssertionInfo _first, | |
125 | VeraListIterator_AssertionInfo _last | |
126 | ); | |
127 | task insert_range ( | |
128 | VeraListIterator_AssertionInfo _pos, | |
129 | VeraListIterator_AssertionInfo _first, | |
130 | VeraListIterator_AssertionInfo _last | |
131 | ); | |
132 | task assign ( | |
133 | VeraListIterator_AssertionInfo _first2, | |
134 | VeraListIterator_AssertionInfo _last2 | |
135 | ); | |
136 | } | |
137 | extern class ZeroInManager { | |
138 | StandardDisplay _dbg; | |
139 | bit _zeroInCheckOff; | |
140 | string _name; | |
141 | task new ( | |
142 | StandardDisplay a_dbg, | |
143 | string a_name | |
144 | ); | |
145 | task turnOffAllAssertionsInModule ( | |
146 | string a_moduleName | |
147 | ); | |
148 | virtual task addCheck ( | |
149 | string a_type, | |
150 | string a_pathToAssertion, | |
151 | string a_moduleName = "", | |
152 | string a_statistic = "", | |
153 | bit [63:0] a_valueToCheck = 0 | |
154 | ); | |
155 | virtual task disableCheck ( | |
156 | string a_type, | |
157 | string a_pathToAssertion, | |
158 | string a_moduleName = "" | |
159 | ); | |
160 | virtual task enableCheck ( | |
161 | string a_type, | |
162 | string a_pathToAssertion, | |
163 | string a_moduleName = "" | |
164 | ); | |
165 | virtual function bit checkIfCovered ( | |
166 | string a_type, | |
167 | string a_pathToAssertion, | |
168 | string a_statistic, | |
169 | bit [63:0] a_val | |
170 | ); | |
171 | function bit checkIfFired ( | |
172 | string a_type, | |
173 | string a_pathToAssertion, | |
174 | string a_check, | |
175 | string a_module | |
176 | ); | |
177 | virtual function bit coveredAllChecks ( | |
178 | ); | |
179 | } | |
180 | ||
181 | #endif |