2 * Copyright (c) 2004-2005 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.
29 #ifndef __CPU_O3_CPU_ALPHA_SIMPLE_PARAMS_HH__
30 #define __CPU_O3_CPU_ALPHA_SIMPLE_PARAMS_HH__
32 #include "cpu/o3/cpu.hh"
34 //Forward declarations
38 class FunctionalMemory;
43 * This file defines the parameters that will be used for the AlphaFullCPU.
44 * This must be defined externally so that the Impl can have a params class
45 * defined that it can pass to all of the individual stages.
48 class AlphaSimpleParams : public BaseFullCPU::Params
53 AlphaITB *itb; AlphaDTB *dtb;
55 std::vector<Process *> workload;
59 FunctionalMemory *mem;
64 MemInterface *icacheInterface;
65 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;
100 unsigned executeWidth;
101 unsigned executeIntWidth;
102 unsigned executeFloatWidth;
103 unsigned executeBranchWidth;
104 unsigned executeMemoryWidth;
109 unsigned iewToCommitDelay;
110 unsigned renameToROBDelay;
111 unsigned commitWidth;
112 unsigned squashWidth;
115 // Branch predictor (BP & BTB)
118 unsigned localPredictorSize;
119 unsigned localPredictorCtrBits;
122 unsigned local_predictor_size;
123 unsigned local_ctr_bits;
124 unsigned local_history_table_size;
125 unsigned local_history_bits;
126 unsigned global_predictor_size;
127 unsigned global_ctr_bits;
128 unsigned global_history_bits;
129 unsigned choice_predictor_size;
130 unsigned choice_ctr_bits;
152 unsigned numPhysIntRegs;
153 unsigned numPhysFloatRegs;
154 unsigned numIQEntries;
155 unsigned numROBEntries;
157 // Probably can get this from somewhere.
158 unsigned instShiftAmt;
163 #endif // __CPU_O3_CPU_ALPHA_PARAMS_HH__