Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / common / vera / classes / systemTapDefines.vri
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: systemTapDefines.vri
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 SYSTEMTAPDEFINES_VRI
36#define SYSTEMTAPDEFINES_VRI
37
38
39
40#define TAP_NEXT_REMAIN 0
41#define TAP_NEXT_ADVANCE 1
42
43
44//----- TAP state mappings to match N2 ----------
45#define TAP_RESET 4'hF // 15
46#define TAP_CAPTURE_IR 4'hE // 14
47#define TAP_UPDATE_IR 4'hD // 13
48#define TAP_IDLE 4'hC // 12
49#define TAP_PAUSE_IR 4'hB // 11
50#define TAP_SHIFT_IR 4'hA // 10
51#define TAP_EXIT1_IR 4'h9 // 9
52#define TAP_EXIT2_IR 4'h8 // 8
53#define TAP_SELECT_DR 4'h7 // 7
54#define TAP_CAPTURE_DR 4'h6 // 6
55#define TAP_UPDATE_DR 4'h5 // 5
56#define TAP_SELECT_IR 4'h4 // 4
57#define TAP_PAUSE_DR 4'h3 // 3
58#define TAP_SHIFT_DR 4'h2 // 2
59#define TAP_EXIT1_DR 4'h1 // 1
60#define TAP_EXIT2_DR 4'h0 // 0
61
62
63//
64//----------- JTAG Public Instructions --------------
65// (tcu_jtag_public.vr)
66// 765432109876543210
67#define TAP_BYPASS_INST "111111111111111111"
68#define TAP_EXTEST_INST "000000000000000000" // IEEE99: potential here for stuck at 0 problem
69#define TAP_IDCODE_INST "000000000000000001"
70#define TAP_SAMPLE_INST "000000000000000010"
71#define TAP_HIGHZ_INST "000000000000000011"
72#define TAP_CLAMP_INST "000000000000000100"
73
74
75////////////////////////////////////////////////////////////////////////////////////////////////
76
77
78//
79//----------- JTAG Private UCB Instructions ----------
80// (tcu_jtag_private_ucb.vr)
81// 765432109876543210
82#define TAP_IO_WRAP "000000000000000101" // N2 custom, may be deleted
83#define TAP_UNDEF_06 "000000000000000110" // UNDEF: BYPASS
84#define TAP_UNDEF_07 "000000000000000111" // UNDEF: BYPASS
85#define TAP_CREG_ADDR "000000000000001000"
86#define TAP_CREG_WDATA "000000000000001001"
87#define TAP_CREG_RDATA "000000000000001010"
88#define TAP_CREG_SCRATCH "000000000000001011"
89#define TAP_NCU_WRITE "000000000000001100"
90#define TAP_NCU_READ "000000000000001101"
91#define TAP_NCU_WADDR "000000000000001110"
92#define TAP_NCU_WDATA "000000000000001111"
93#define TAP_NCU_RADDR "000000000000010000"
94#define TAP_UNDEF_11 "000000000000010001" // UNDEF: BYPASS
95#define TAP_UNDEF_12 "000000000000010010" // UNDEF: BYPASS
96#define TAP_UNDEF_13 "000000000000010011" // UNDEF: BYPASS
97
98
99////////////////////////////////////////////////////////////////////////////////////////////////
100
101
102//
103//----------- JTAG Private MBIST Instructions -------
104// (tcu_jtag_private_mbist.vr)
105// 765432109876543210
106#define TAP_MBIST_BYPASS "000000000000010100"
107#define TAP_MBIST_MODE "000000000000010101"
108#define TAP_MBIST_START "000000000000010110"
109#define TAP_UNDEF_17 "000000000000010111" // UNDEF: BYPASS
110#define TAP_MBIST_RESULT "000000000000011000"
111#define TAP_MBIST_DIAG "000000000000011001"
112#define TAP_MBIST_GETDONE "000000000000011010"
113#define TAP_MBIST_GETFAIL "000000000000011011"
114#define TAP_MBIST_ABORT "000000000000011111"
115
116
117
118
119// 765432109876543210
120#define TAP_UNDEF_20 "000000000000100000" // UNDEF: BYPASS
121#define TAP_UNDEF_21 "000000000000100001" // UNDEF: BYPASS
122#define TAP_UNDEF_22 "000000000000100010" // UNDEF: BYPASS
123#define TAP_UNDEF_23 "000000000000100011" // UNDEF: BYPASS
124#define TAP_UNDEF_24 "000000000000100100" // UNDEF: BYPASS
125#define TAP_UNDEF_25 "000000000000100101" // UNDEF: BYPASS
126#define TAP_UNDEF_26 "000000000000100110" // UNDEF: BYPASS
127#define TAP_UNDEF_27 "000000000000100111" // UNDEF: BYPASS
128
129
130////////////////////////////////////////////////////////////////////////////////////////////////
131
132
133//----------- Efuse Instructions --------------------
134// (tcu_jtag_private_efuse.vr)
135// 765432109876543210
136#define TAP_FUSE_READ "000000000000101000"
137#define TAP_FUSE_BYPASS_DATA "000000000000101001"
138#define TAP_FUSE_BYPASS "000000000000101010"
139#define TAP_FUSE_ROW_ADDR "000000000000101011"
140#define TAP_FUSE_COL_ADDR "000000000000101100"
141#define TAP_FUSE_READ_MODE "000000000000101101"
142#define TAP_FUSE_DEST_SAMPLE "000000000000101110"
143#define TAP_UNDEF_2F "000000000000101111" // UNDEF: BYPASS
144
145
146
147
148////////////////////////////////////////////////////////////////////////////////////////////////
149
150
151//---------- JTAG Private Shadow Scan Instructions --
152// (tcu_jtag_private_shscan.vr)
153// 765432109876543210
154#define TAP_SPC_SHSCAN "000000000000110"
155#define TAP_SPCTHR0_SHSCAN "000000000000110000"
156#define TAP_SPCTHR1_SHSCAN "000000000000110001"
157#define TAP_SPCTHR2_SHSCAN "000000000000110010"
158#define TAP_SPCTHR3_SHSCAN "000000000000110011"
159#define TAP_SPCTHR4_SHSCAN "000000000000110100"
160#define TAP_SPCTHR5_SHSCAN "000000000000110101"
161#define TAP_SPCTHR6_SHSCAN "000000000000110110"
162#define TAP_SPCTHR7_SHSCAN "000000000000110111"
163#define TAP_SOC_SHSCAN "000000000000111"
164#define TAP_UNDEF_38 "000000000000111000" // UNDEF: Shadow scan reserved
165#define TAP_UNDEF_39 "000000000000111001" // UNDEF: Shadow scan reserved
166#define TAP_UNDEF_3A "000000000000111010" // UNDEF: Shadow scan reserved
167#define TAP_UNDEF_3B "000000000000111011" // UNDEF: Shadow scan reserved
168#define TAP_UNDEF_3C "000000000000111100" // UNDEF: Shadow scan reserved
169#define TAP_UNDEF_3D "000000000000111101" // UNDEF: Shadow scan reserved
170#define TAP_UNDEF_3E "000000000000111110" // UNDEF: Shadow scan reserved
171#define TAP_UNDEF_3F "000000000000111111" // UNDEF: Shadow scan reserved
172
173//---------- JTAG Clock Stop Instructions ---------
174
175#define TAP_CLOCK_SSTOP "000000000001000000" // 0x40
176#define TAP_CLOCK_HSTOP "000000000001000001" // 0x41
177#define TAP_CLOCK_START "000000000001000010" // 0x42
178#define TAP_CLOCK_DOMAIN "000000000001000011" // 0x43
179#define TAP_CLOCK_STATUS "000000000001000100" // 0x44
180#define TAP_CLKSTP_DELAY "000000000001000101" // 0x45
181#define TAP_CORE_SEL "000000000001000110" // 0x46
182#define TAP_UNDEF_47 "000000000001000111" // 0x47 undefined
183#define TAP_DE_COUNT "000000000001001000" // 0x48
184#define TAP_CYCLE_COUNT "000000000001001001" // 0x49
185#define TAP_TCU_DCR "000000000001001010" // 0x4A
186#define TAP_UNDEF_4B "000000000001001011" // 0x4B undefined
187#define TAP_CORE_RUN_STATUS "000000000001001100" // 0x4C
188
189//@@UPDATE@@ Reserved: Wait until PRM updated 40..43,48
190#define TAP_UNDEF_4D "000000000001001101"
191#define TAP_UNDEF_4E "000000000001001110"
192#define TAP_UNDEF_4F "000000000001001111"
193#define TAP_UNDEF_50 "000000000001010000"
194#define TAP_UNDEF_51 "000000000001010001"
195#define TAP_UNDEF_52 "000000000001010010"
196#define TAP_UNDEF_53 "000000000001010011"
197#define TAP_UNDEF_54 "000000000001010100"
198#define TAP_UNDEF_55 "000000000001010101"
199#define TAP_UNDEF_56 "000000000001010110"
200#define TAP_UNDEF_57 "000000000001010111"
201
202//------- JTAG TCU Serial to L2 Instructions ------
203//@@UPDATE@@ Reserved: Wait until PRM updated 58..5B
204#define TAP_L2_ADDR "000000000001011000"
205#define TAP_L2_WRDATA "000000000001011001"
206#define TAP_L2_WR "000000000001011010"
207#define TAP_L2_RD "000000000001011011"
208
209// 0x5C <----RANGE----> 0x7F
210#define TAP_UNDEF_5C "000000000001011100"
211#define TAP_UNDEF_5F "000000000001011111"
212#define TAP_LBIST_START "000000000001100000"
213#define TAP_LBIST_BYPASS "000000000001100001"
214#define TAP_LBIST_MODE "000000000001100010"
215#define TAP_LBIST_ACCESS "000000000001100011"
216#define TAP_LBIST_GETDONE "000000000001100100"
217#define TAP_LBIST_ABORT "000000000001100101"
218#define TAP_UNDEF_66 "000000000001100110"
219#define TAP_UNDEF_7F "000000000001111111"
220
221
222//---------- JTAG Private Scan Instructions ---------
223// (tcu_jtag_private_scan.vr)
224// 765432109876543210
225
226#define TAP_SERSCAN "000000000010000000" // 0x80
227#define TAP_CHAINSEL "000000000010000001" // 0x81
228#define TAP_SCAN_SERIAL "000000000010000000" // 0x80 review: not matched name in TCU MAS. Delete later.
229#define TAP_SCAN_SERIAL_SEL "000000000010000001" // 0x81 review: not matched name in TCU MAS. Delete later
230#define TAP_UNDEF_82 "000000000010000010" // 0x82 review: this is TAP_MT_ACCESS
231// 0x82 <----RANGE----> 0xFF
232#define TAP_UNDEF_FF "000000000011111110"
233
234
235//---------- Identification register ----------------
236// MSB 5432109876543210 LSB
237#define TAP_VERSION 4'b0011 // this is for TO2.1
238#define TAP_PART_NUM 16'b0010101010101010
239#define TAP_ID_NUM 11'b00000111110 // Sun MFG ID 0x03E
240
241
242#endif