Merge zizzer.eecs.umich.edu:/bk/newmem
[gem5.git] / src / cpu / ozone / simple_params.hh
1 /*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Kevin Lim
29 */
30
31 #ifndef __CPU_OZONE_SIMPLE_PARAMS_HH__
32 #define __CPU_OZONE_SIMPLE_PARAMS_HH__
33
34 #include "cpu/ozone/cpu.hh"
35
36 //Forward declarations
37 class AlphaDTB;
38 class AlphaITB;
39 class FUPool;
40 class MemObject;
41 class PageTable;
42 class Process;
43 class System;
44
45 /**
46 * This file defines the parameters that will be used for the OzoneCPU.
47 * This must be defined externally so that the Impl can have a params class
48 * defined that it can pass to all of the individual stages.
49 */
50
51 class SimpleParams : public BaseCPU::Params
52 {
53 public:
54
55 #if FULL_SYSTEM
56 AlphaITB *itb; AlphaDTB *dtb;
57 #else
58 std::vector<Process *> workload;
59 #endif // FULL_SYSTEM
60
61 //Page Table
62 PageTable *pTable;
63
64 MemObject *mem;
65
66 //
67 // Caches
68 //
69 // MemInterface *icacheInterface;
70 // MemInterface *dcacheInterface;
71
72 unsigned cachePorts;
73 unsigned width;
74 unsigned frontEndLatency;
75 unsigned frontEndWidth;
76 unsigned backEndLatency;
77 unsigned backEndWidth;
78 unsigned backEndSquashLatency;
79 unsigned maxInstBufferSize;
80 unsigned numPhysicalRegs;
81 unsigned maxOutstandingMemOps;
82 //
83 // Fetch
84 //
85 unsigned decodeToFetchDelay;
86 unsigned renameToFetchDelay;
87 unsigned iewToFetchDelay;
88 unsigned commitToFetchDelay;
89 unsigned fetchWidth;
90
91 //
92 // Decode
93 //
94 unsigned renameToDecodeDelay;
95 unsigned iewToDecodeDelay;
96 unsigned commitToDecodeDelay;
97 unsigned fetchToDecodeDelay;
98 unsigned decodeWidth;
99
100 //
101 // Rename
102 //
103 unsigned iewToRenameDelay;
104 unsigned commitToRenameDelay;
105 unsigned decodeToRenameDelay;
106 unsigned renameWidth;
107
108 //
109 // IEW
110 //
111 unsigned commitToIEWDelay;
112 unsigned renameToIEWDelay;
113 unsigned issueToExecuteDelay;
114 unsigned issueWidth;
115 unsigned executeWidth;
116 unsigned executeIntWidth;
117 unsigned executeFloatWidth;
118 unsigned executeBranchWidth;
119 unsigned executeMemoryWidth;
120 FUPool *fuPool;
121
122 //
123 // Commit
124 //
125 unsigned iewToCommitDelay;
126 unsigned renameToROBDelay;
127 unsigned commitWidth;
128 unsigned squashWidth;
129
130 //
131 // Branch predictor (BP & BTB)
132 //
133 std::string predType;
134 unsigned localPredictorSize;
135 unsigned localCtrBits;
136 unsigned localHistoryTableSize;
137 unsigned localHistoryBits;
138 unsigned globalPredictorSize;
139 unsigned globalCtrBits;
140 unsigned globalHistoryBits;
141 unsigned choicePredictorSize;
142 unsigned choiceCtrBits;
143
144 unsigned BTBEntries;
145 unsigned BTBTagSize;
146
147 unsigned RASSize;
148
149 //
150 // Load store queue
151 //
152 unsigned LQEntries;
153 unsigned SQEntries;
154 bool lsqLimits;
155
156 //
157 // Memory dependence
158 //
159 unsigned SSITSize;
160 unsigned LFSTSize;
161
162 //
163 // Miscellaneous
164 //
165 unsigned numPhysIntRegs;
166 unsigned numPhysFloatRegs;
167 unsigned numIQEntries;
168 unsigned numROBEntries;
169
170 bool decoupledFrontEnd;
171 int dispatchWidth;
172 int wbWidth;
173
174 //SMT Parameters
175 unsigned smtNumFetchingThreads;
176
177 std::string smtFetchPolicy;
178
179 std::string smtIQPolicy;
180 unsigned smtIQThreshold;
181
182 std::string smtLSQPolicy;
183 unsigned smtLSQThreshold;
184
185 std::string smtCommitPolicy;
186
187 std::string smtROBPolicy;
188 unsigned smtROBThreshold;
189
190 // Probably can get this from somewhere.
191 unsigned instShiftAmt;
192 };
193
194 #endif // __CPU_OZONE_SIMPLE_PARAMS_HH__