2 * Copyright (c) 2004-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_O3_PARAMS_HH__
32 #define __CPU_O3_PARAMS_HH__
34 #include "cpu/o3/cpu.hh"
36 //Forward declarations
40 * This file defines the parameters that will be used for the O3CPU.
41 * This must be defined externally so that the Impl can have a params class
42 * defined that it can pass to all of the individual stages.
44 class O3Params : public BaseO3CPU::Params
50 // Pointers to key objects
53 std::vector<Process *> workload;
62 // MemInterface *icacheInterface;
63 // MemInterface *dcacheInterface;
70 unsigned decodeToFetchDelay;
71 unsigned renameToFetchDelay;
72 unsigned iewToFetchDelay;
73 unsigned commitToFetchDelay;
79 unsigned renameToDecodeDelay;
80 unsigned iewToDecodeDelay;
81 unsigned commitToDecodeDelay;
82 unsigned fetchToDecodeDelay;
88 unsigned iewToRenameDelay;
89 unsigned commitToRenameDelay;
90 unsigned decodeToRenameDelay;
96 unsigned commitToIEWDelay;
97 unsigned renameToIEWDelay;
98 unsigned issueToExecuteDelay;
99 unsigned dispatchWidth;
108 unsigned iewToCommitDelay;
109 unsigned renameToROBDelay;
110 unsigned commitWidth;
111 unsigned squashWidth;
113 Tick fetchTrapLatency;
118 unsigned backComSize;
119 unsigned forwardComSize;
122 // Branch predictor (BP, BTB, RAS)
124 std::string predType;
125 unsigned localPredictorSize;
126 unsigned localCtrBits;
127 unsigned localHistoryTableSize;
128 unsigned localHistoryBits;
129 unsigned globalPredictorSize;
130 unsigned globalCtrBits;
131 unsigned globalHistoryBits;
132 unsigned choicePredictorSize;
133 unsigned choiceCtrBits;
155 unsigned numPhysIntRegs;
156 unsigned numPhysFloatRegs;
157 unsigned numIQEntries;
158 unsigned numROBEntries;
161 unsigned smtNumFetchingThreads;
163 std::string smtFetchPolicy;
165 std::string smtIQPolicy;
166 unsigned smtIQThreshold;
168 std::string smtLSQPolicy;
169 unsigned smtLSQThreshold;
171 std::string smtCommitPolicy;
173 std::string smtROBPolicy;
174 unsigned smtROBThreshold;
176 // Probably can get this from somewhere.
177 unsigned instShiftAmt;
180 #endif // __CPU_O3_ALPHA_PARAMS_HH__