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
49 * This file defines the parameters that will be used for the OzoneCPU.
50 * This must be defined externally so that the Impl can have a params class
51 * defined that it can pass to all of the individual stages.
54 class SimpleParams : public BaseCPU::Params
59 TheISA::ITB *itb; TheISA::DTB *dtb;
61 std::vector<Process *> workload;
70 // MemInterface *icacheInterface;
71 // MemInterface *dcacheInterface;
75 unsigned frontEndLatency;
76 unsigned frontEndWidth;
77 unsigned backEndLatency;
78 unsigned backEndWidth;
79 unsigned backEndSquashLatency;
80 unsigned maxInstBufferSize;
81 unsigned numPhysicalRegs;
82 unsigned maxOutstandingMemOps;
86 unsigned decodeToFetchDelay;
87 unsigned renameToFetchDelay;
88 unsigned iewToFetchDelay;
89 unsigned commitToFetchDelay;
95 unsigned renameToDecodeDelay;
96 unsigned iewToDecodeDelay;
97 unsigned commitToDecodeDelay;
98 unsigned fetchToDecodeDelay;
104 unsigned iewToRenameDelay;
105 unsigned commitToRenameDelay;
106 unsigned decodeToRenameDelay;
107 unsigned renameWidth;
112 unsigned commitToIEWDelay;
113 unsigned renameToIEWDelay;
114 unsigned issueToExecuteDelay;
116 unsigned executeWidth;
117 unsigned executeIntWidth;
118 unsigned executeFloatWidth;
119 unsigned executeBranchWidth;
120 unsigned executeMemoryWidth;
126 unsigned iewToCommitDelay;
127 unsigned renameToROBDelay;
128 unsigned commitWidth;
129 unsigned squashWidth;
132 // Branch predictor (BP & BTB)
134 std::string predType;
135 unsigned localPredictorSize;
136 unsigned localCtrBits;
137 unsigned localHistoryTableSize;
138 unsigned localHistoryBits;
139 unsigned globalPredictorSize;
140 unsigned globalCtrBits;
141 unsigned globalHistoryBits;
142 unsigned choicePredictorSize;
143 unsigned choiceCtrBits;
166 unsigned numPhysIntRegs;
167 unsigned numPhysFloatRegs;
168 unsigned numIQEntries;
169 unsigned numROBEntries;
171 bool decoupledFrontEnd;
176 unsigned smtNumFetchingThreads;
178 std::string smtFetchPolicy;
180 std::string smtIQPolicy;
181 unsigned smtIQThreshold;
183 std::string smtLSQPolicy;
184 unsigned smtLSQThreshold;
186 std::string smtCommitPolicy;
188 std::string smtROBPolicy;
189 unsigned smtROBThreshold;
191 // Probably can get this from somewhere.
192 unsigned instShiftAmt;
195 #endif // __CPU_OZONE_SIMPLE_PARAMS_HH__