Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / fc / vera / include / globals.vri
CommitLineData
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 ============================================
35typedef class StandardDisplay;
36typedef class MemArray;
37typedef class Params;
38typedef class BaseUtils;
39typedef class Utils;
40typedef class BasePkt;
41typedef class PcxPkt;
42typedef class CpxPkt;
43typedef class CcxDevBaseBFM;
44// typedef class CcxDevMemBFM;
45typedef class CcxDevSpcBFM;
46typedef class AsmEventsToVera;
47typedef class AsmToVeraIntf;
48typedef class AsmEvent;
49typedef class SparcBenchUtils;
50typedef 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
87EXTERN StandardDisplay gDbg;
88EXTERN MemArray gMem;
89EXTERN Params gParam;
90EXTERN CcxDevBaseBFM gCcxDevice[17]; // base CcxDevice
91// EXTERN CcxDevMemBFM gCcxDevMem[17]; // 9 mem, not using first 8
92EXTERN CcxDevSpcBFM gCcxDevSpc[8]; // 8 cpu
93EXTERN Utils gUtil;
94EXTERN TAG_MEM dtag[8]; // L1 D$ tags
95EXTERN TAG_MEM itag[8]; // L1 I$ tags
96
97// asm $events
98EXTERN AsmEventsToVera gAsmEventsToVera;
99
100// virtual ports
101EXTERN ccxPort gPcxPort[17];
102EXTERN ccxPort gCpxPort[17];
103EXTERN ldStSync_port gLdStSyncPort[17]; // not using first 8
104
105// probes
106EXTERN probesPort gProbesPort;
107
108// other globals
109EXTERN integer gSeed;
110EXTERN integer gSeedFileHndl;
111EXTERN integer gClkPeriod;
112EXTERN integer gL2bfms;
113EXTERN 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