Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: globals.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 | typedef class StandardDisplay; | |
36 | typedef class MemArray; | |
37 | typedef class Params; | |
38 | typedef class BaseUtils; | |
39 | typedef class Utils; | |
40 | typedef class BasePkt; | |
41 | typedef class PcxPkt; | |
42 | typedef class CpxPkt; | |
43 | typedef class CcxDevBaseBFM; | |
44 | // typedef class CcxDevMemBFM; | |
45 | typedef class CcxDevSpcBFM; | |
46 | typedef class AsmEventsToVera; | |
47 | typedef class AsmToVeraIntf; | |
48 | typedef class AsmEvent; | |
49 | typedef class SparcBenchUtils; | |
50 | typedef class TAG_MEM; | |
51 | ||
52 | ||
53 | #ifndef INC__TMP_FCGLOBALS_VRI | |
54 | #define INC__TMP_FCGLOBALS_VRI | |
55 | ||
56 | ||
57 | // this ifdef PROG_FILE does not work with NTB because | |
58 | // PROG_FILE is always defined in NTB. In NTB, everybody sees everything. | |
59 | // NTB does not need externs since it sees *all* files at once so | |
60 | // for NTB, this file is mostly a nop. Needed for Vera compiles though. | |
61 | #ifdef PROG_FILE | |
62 | #define EXTERN | |
63 | #else | |
64 | #define EXTERN extern | |
65 | #endif | |
66 | ||
67 | // everyone gets interfaces with #include "globals.vri" in their .vr files. | |
68 | #ifndef PROG_FILE | |
69 | // interfaces & binds | |
70 | #include <fc_top.if.vrh> | |
71 | #include <ccxDevices.if.vrh> | |
72 | #include <ccxDevices.binds.vrh> | |
73 | ||
74 | // #include "ilu_peu.if.vri" | |
75 | // #include "ilu_peu.bind.vri" | |
76 | ||
77 | #include <errorCountTasks.if.vrh> | |
78 | #include <sparcBenchUtils_if.vrh> | |
79 | // bench defines too | |
80 | #include <defines.vri> | |
81 | #endif | |
82 | ||
83 | // #ifndef NTB | |
84 | // #ifndef PROG_FILE | |
85 | ||
86 | // global instantiated classes | |
87 | EXTERN StandardDisplay gDbg; | |
88 | EXTERN MemArray gMem; | |
89 | EXTERN Params gParam; | |
90 | EXTERN CcxDevBaseBFM gCcxDevice[17]; // base CcxDevice | |
91 | // EXTERN CcxDevMemBFM gCcxDevMem[17]; // 9 mem, not using first 8 | |
92 | EXTERN CcxDevSpcBFM gCcxDevSpc[8]; // 8 cpu | |
93 | EXTERN Utils gUtil; | |
94 | EXTERN TAG_MEM dtag[8]; // L1 D$ tags | |
95 | EXTERN TAG_MEM itag[8]; // L1 I$ tags | |
96 | ||
97 | // asm $events | |
98 | EXTERN AsmEventsToVera gAsmEventsToVera; | |
99 | ||
100 | // virtual ports | |
101 | EXTERN ccxPort gPcxPort[17]; | |
102 | EXTERN ccxPort gCpxPort[17]; | |
103 | EXTERN ldStSync_port gLdStSyncPort[17]; // not using first 8 | |
104 | ||
105 | // probes | |
106 | EXTERN probesPort gProbesPort; | |
107 | ||
108 | // other globals | |
109 | EXTERN integer gSeed; | |
110 | EXTERN integer gSeedFileHndl; | |
111 | EXTERN integer gClkPeriod; | |
112 | EXTERN integer gL2bfms; | |
113 | EXTERN reg [63:0] gOutOfBoot; | |
114 | ||
115 | // lists | |
116 | #ifndef PROG_FILE | |
117 | #include <vera_defines.vrh> | |
118 | #include <ListMacros.vrh> | |
119 | #endif | |
120 | ||
121 | ||
122 | // eof | |
123 | #endif | |
124 |