2 * Copyright (c) 2006 The Regents of The University of Michigan
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.
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.
31 #ifndef __CPU_OZONE_SIMPLE_PARAMS_HH__
32 #define __CPU_OZONE_SIMPLE_PARAMS_HH__
34 #include "cpu/ozone/cpu.hh"
36 //Forward declarations
40 class FunctionalMemory;
47 * This file defines the parameters that will be used for the OzoneCPU.
48 * This must be defined externally so that the Impl can have a params class
49 * defined that it can pass to all of the individual stages.
52 class SimpleParams : public BaseCPU::Params
57 AlphaITB *itb; AlphaDTB *dtb;
59 std::vector<Process *> workload;
65 FunctionalMemory *mem;
70 MemInterface *icacheInterface;
71 MemInterface *dcacheInterface;
75 unsigned frontEndWidth;
76 unsigned backEndWidth;
77 unsigned backEndSquashLatency;
78 unsigned backEndLatency;
79 unsigned maxInstBufferSize;
80 unsigned numPhysicalRegs;
81 unsigned maxOutstandingMemOps;
85 unsigned decodeToFetchDelay;
86 unsigned renameToFetchDelay;
87 unsigned iewToFetchDelay;
88 unsigned commitToFetchDelay;
94 unsigned renameToDecodeDelay;
95 unsigned iewToDecodeDelay;
96 unsigned commitToDecodeDelay;
97 unsigned fetchToDecodeDelay;
103 unsigned iewToRenameDelay;
104 unsigned commitToRenameDelay;
105 unsigned decodeToRenameDelay;
106 unsigned renameWidth;
111 unsigned commitToIEWDelay;
112 unsigned renameToIEWDelay;
113 unsigned issueToExecuteDelay;
115 unsigned executeWidth;
116 unsigned executeIntWidth;
117 unsigned executeFloatWidth;
118 unsigned executeBranchWidth;
119 unsigned executeMemoryWidth;
125 unsigned iewToCommitDelay;
126 unsigned renameToROBDelay;
127 unsigned commitWidth;
128 unsigned squashWidth;
131 // Branch predictor (BP & BTB)
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;
164 unsigned numPhysIntRegs;
165 unsigned numPhysFloatRegs;
166 unsigned numIQEntries;
167 unsigned numROBEntries;
169 bool decoupledFrontEnd;
174 unsigned smtNumFetchingThreads;
176 std::string smtFetchPolicy;
178 std::string smtIQPolicy;
179 unsigned smtIQThreshold;
181 std::string smtLSQPolicy;
182 unsigned smtLSQThreshold;
184 std::string smtCommitPolicy;
186 std::string smtROBPolicy;
187 unsigned smtROBThreshold;
189 // Probably can get this from somewhere.
190 unsigned instShiftAmt;
193 #endif // __CPU_OZONE_SIMPLE_PARAMS_HH__