Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: global.h | |
5 | * Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
6 | * 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
7 | * | |
8 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License as published by | |
12 | * the Free Software Foundation; version 2 of the License. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | * For the avoidance of doubt, and except that if any non-GPL license | |
24 | * choice is available it will apply instead, Sun elects to use only | |
25 | * the General Public License version 2 (GPLv2) at this time for any | |
26 | * software where a choice of GPL license versions is made | |
27 | * available with the language indicating that GPLv2 or any later version | |
28 | * may be used, or where a choice of which version of the GPL is applied is | |
29 | * otherwise unspecified. | |
30 | * | |
31 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
32 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
33 | * have any questions. | |
34 | * | |
35 | * | |
36 | * ========== Copyright Header End ============================================ | |
37 | */ | |
38 | `ifndef PR_ALWAYS | |
39 | `define PR_ALWAYS $dispmon | |
40 | `endif | |
41 | ||
42 | ||
43 | ||
44 | `ifdef FBD_MACRO | |
45 | `else | |
46 | `define DBG_0 21 | |
47 | `define DBG_1 22 | |
48 | `define DBG_2 23 | |
49 | `define DBG_3 24 | |
50 | `define DBG_4 25 | |
51 | ||
52 | // Stingray uses parts of fbdimm model, so FBDIMM_FAST flag cannot be verified at this point | |
53 | `ifdef STINGRAY | |
54 | `else | |
55 | ||
56 | `ifdef AXIS_FBDIMM_NO_FSR | |
57 | `define FBDIMM_FAST_IDLE 1 | |
58 | `define FBDIMM_FAST_NB 1 | |
59 | `define AXIS_FBDIMM_1AMB 1 | |
60 | `endif | |
61 | ||
62 | `define FBDIMM_FAST 1 | |
63 | `define FBDIMM_FAST_CURR 1 | |
64 | `define FBDIMM_FAST_INIT 1 | |
65 | `define FBDIMM_ENABLE_SELF_REF_FSM 1 | |
66 | `endif | |
67 | ||
68 | `define NO_CLK_INT_2X 1 | |
69 | ||
70 | `define AMB_INIT_DISABLE 4'b0000 | |
71 | `define AMB_INIT_TRAIN 4'b0001 | |
72 | `define AMB_INIT_TEST 4'b0010 | |
73 | `define AMB_INIT_POLL 4'b0011 | |
74 | `define AMB_INIT_CONFIG 4'b0100 | |
75 | `define AMB_INIT_LO 4'b0101 | |
76 | `define AMB_INIT_LOS 4'b0110 | |
77 | `define AMB_INIT_CALIB 4'b0111 | |
78 | `define AMB_INIT_RECALIB 4'b1000 | |
79 | ||
80 | `define TS0_FRAMES 50 //3180 // 265 ts0 * 12 cyc/frame | |
81 | `define tCalibrate 5760 // 480K frames = 480 * 12 cycles per frame | |
82 | `define tClkTrain 10 //504 // 42 frames = 42 * 12 cycles per frame | |
83 | `define tBitLock 1428 // 119 frames = 119 * 12 cycles per frame | |
84 | `define tFrameLock 1848 // 154 frames = 154 * 12 cycles per frame | |
85 | `define tEIPropagate 48 // 4 frames = 4 * 12 cycles per frame | |
86 | `define tDisable 10 //612 // 51 frames = 51 * 12 cycles per frame | |
87 | `define tEDisable 10 //240 // 20 frames = 20 * 12 cycles per frame | |
88 | ||
89 | `define IDLE 0 | |
90 | `define TS_TRAIN_1 1 | |
91 | `define TS_TRAIN_2 2 | |
92 | `define TS_TEST_1 3 | |
93 | `define TS_TEST_2 4 | |
94 | `define TS_TEST_3 5 | |
95 | `define TS_TEST_4 6 | |
96 | ||
97 | `define CMD_ACT 0 | |
98 | `define CMD_WR 1 | |
99 | `define CMD_RD 2 | |
100 | `define CMD_PALL 3 | |
101 | `define CMD_PSNG 4 | |
102 | `define CMD_ARF 5 | |
103 | `define CMD_EnSR 6 | |
104 | `define CMD_ExSR 7 | |
105 | `define CMD_EnPD 8 | |
106 | `define CMD_DBE 9 | |
107 | `define CMD_DRT 10 | |
108 | `define CMD_DEI 11 | |
109 | `define CMD_DPD 12 | |
110 | `define CMD_DPR 13 | |
111 | `define CMD_WCFG 14 | |
112 | `define CMD_RCFG 15 | |
113 | `define CMD_SCR 16 | |
114 | `define CMD_SYNC 17 | |
115 | `define CMD_NOP 18 | |
116 | `define CMD_UND 19 | |
117 | `define CMD_DRAM_CKE_DIMM 20 | |
118 | `define CMD_DRAM_CKE_RANK 21 | |
119 | ||
120 | `define NB_ST_1 4'h1 | |
121 | `define NB_ST_2 4'h2 | |
122 | `define NB_ST_3 4'h3 | |
123 | `define NB_ST_4 4'h4 | |
124 | `define NB_ST_5 4'h5 | |
125 | `define NB_ST_6 4'h6 | |
126 | `define NB_ST_7 4'h7 | |
127 | `define NB_ST_8 4'h8 | |
128 | `define NB_ST_9 4'h9 | |
129 | `define NB_ST_10 4'ha | |
130 | `define NB_ST_11 4'hb | |
131 | `define NB_ST_12 4'hc | |
132 | `define NB_ST_13 4'hd | |
133 | `define TRANSFER_0 5'h0 | |
134 | `define TRANSFER_1 5'h1 | |
135 | `define TRANSFER_2 5'h2 | |
136 | `define TRANSFER_3 5'h3 | |
137 | `define TRANSFER_4 5'h4 | |
138 | `define TRANSFER_5 5'h5 | |
139 | `define TRANSFER_6 5'h6 | |
140 | `define TRANSFER_7 5'h7 | |
141 | `define TRANSFER_8 5'h8 | |
142 | `define TRANSFER_9 5'h9 | |
143 | `define TRANSFER_10 5'ha | |
144 | `define TRANSFER_11 5'hb | |
145 | ||
146 | `define FBD_MACRO 1 | |
147 | `endif |