Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: systemTapClass.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__BASESYSTEMTAPCLASS_VRH | |
36 | #define INC__BASESYSTEMTAPCLASS_VRH | |
37 | ||
38 | extern class BaseSystemTap { | |
39 | ||
40 | protected bit [3:0] tap_state_reg; | |
41 | protected string dispmonScope; | |
42 | protected StandardDisplay dbg; | |
43 | public tap__port tap_port; | |
44 | ||
45 | task new ( | |
46 | StandardDisplay dbgIn | |
47 | ); | |
48 | function string BinToChar ( | |
49 | bit inbit | |
50 | ); | |
51 | function string cnv2str ( | |
52 | bit [127:0] data, | |
53 | integer w | |
54 | ); | |
55 | function string cnv_instr_2_text ( | |
56 | string instr | |
57 | ); | |
58 | function string state_id_2_text ( | |
59 | bit [3:0] id | |
60 | ); | |
61 | function string cnv_domain_2_string ( | |
62 | bit [2:0] domain | |
63 | ); | |
64 | function bit [3:0] advance_tap_state_reg ( | |
65 | bit tms | |
66 | ); | |
67 | function bit [15:0] ieeeTap ( | |
68 | bit [3:0] current_state | |
69 | ); | |
70 | task TapDrive_test_mode ( | |
71 | bit test_mode | |
72 | ); | |
73 | task TapDrive_trst_n ( | |
74 | bit trst_n | |
75 | ); | |
76 | task TapDrive_tms ( | |
77 | bit tms | |
78 | ); | |
79 | task TapDrive_tdi ( | |
80 | bit tdi | |
81 | ); | |
82 | task TapDriveAdvance_tms ( | |
83 | bit tms | |
84 | ); | |
85 | task TapResetType1 ( | |
86 | ); | |
87 | task TapResetType2 ( | |
88 | ); | |
89 | task check_tck_state ( | |
90 | ); | |
91 | task TapGoto ( | |
92 | bit [3:0] next_state | |
93 | ); | |
94 | function bit TapNext ( | |
95 | bit [3:0] advance, | |
96 | bit tdi | |
97 | ); | |
98 | task TapCaptureData ( | |
99 | ); | |
100 | function string TapIRLoad ( | |
101 | string instr, | |
102 | integer len = 8, | |
103 | bit check = 1 | |
104 | ); | |
105 | function bit TapShiftDR_tdi_advance ( | |
106 | bit tdi | |
107 | ); | |
108 | function string TapDRLoad ( | |
109 | string TapIn | |
110 | ); | |
111 | function string TapDRGet ( | |
112 | integer w | |
113 | ); | |
114 | function integer TapWait4DataRdy ( | |
115 | integer time_out_limit | |
116 | ); | |
117 | function integer TapWait4L2DataRdy ( | |
118 | integer time_out_limit | |
119 | ); | |
120 | function integer loadUndef ( | |
121 | string aUndef | |
122 | ); | |
123 | function integer loadBypass ( | |
124 | string aBypass | |
125 | ); | |
126 | function integer loadIdcode ( | |
127 | string aIdcode | |
128 | ); | |
129 | function integer loadExtest ( | |
130 | string aExtest | |
131 | ); | |
132 | function integer checkIdcode ( | |
133 | ); | |
134 | task Delay ( | |
135 | integer count | |
136 | ); | |
137 | task toggleDutTck ( | |
138 | ); | |
139 | task posedge2Dut ( | |
140 | ); | |
141 | task negedge2Dut ( | |
142 | ); | |
143 | task waitVeraRefTapStateRegChange ( | |
144 | ); | |
145 | function bit [3:0] getVeraRefTapStateReg ( | |
146 | ); | |
147 | task enableTlrStateGlitch( | |
148 | ); | |
149 | task disableTlrStateGlitch( | |
150 | ); | |
151 | } | |
152 | ||
153 | #endif |