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
58 TheISA::ITB *itb; TheISA::DTB *dtb;
60 std::vector<Process *> workload;
69 // MemInterface *icacheInterface;
70 // MemInterface *dcacheInterface;
74 unsigned frontEndLatency;
75 unsigned frontEndWidth;
76 unsigned backEndLatency;
77 unsigned backEndWidth;
78 unsigned backEndSquashLatency;
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;
165 unsigned numPhysIntRegs;
166 unsigned numPhysFloatRegs;
167 unsigned numIQEntries;
168 unsigned numROBEntries;
170 bool decoupledFrontEnd;
175 unsigned smtNumFetchingThreads;
177 std::string smtFetchPolicy;
179 std::string smtIQPolicy;
180 unsigned smtIQThreshold;
182 std::string smtLSQPolicy;
183 unsigned smtLSQThreshold;
185 std::string smtCommitPolicy;
187 std::string smtROBPolicy;
188 unsigned smtROBThreshold;
190 // Probably can get this from somewhere.
191 unsigned instShiftAmt;
194 #endif // __CPU_OZONE_SIMPLE_PARAMS_HH__