1 # Copyright (c) 2006-2007 The Regents of The University of Michigan
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met: redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer;
8 # redistributions in binary form must reproduce the above copyright
9 # notice, this list of conditions and the following disclaimer in the
10 # documentation and/or other materials provided with the distribution;
11 # neither the name of the copyright holders nor the names of its
12 # contributors may be used to endorse or promote products derived from
13 # this software without specific prior written permission.
15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 from m5
.defines
import buildEnv
30 from m5
.params
import *
31 from BaseCPU
import BaseCPU
33 class SimpleOzoneCPU(BaseCPU
):
34 type = 'SimpleOzoneCPU'
36 numThreads
= Param
.Unsigned("number of HW thread contexts")
38 if not buildEnv
['FULL_SYSTEM']:
39 mem
= Param
.FunctionalMemory(NULL
, "memory")
41 width
= Param
.Unsigned("Width")
42 frontEndWidth
= Param
.Unsigned("Front end width")
43 backEndWidth
= Param
.Unsigned("Back end width")
44 backEndSquashLatency
= Param
.Unsigned("Back end squash latency")
45 backEndLatency
= Param
.Unsigned("Back end latency")
46 maxInstBufferSize
= Param
.Unsigned("Maximum instruction buffer size")
47 decodeToFetchDelay
= Param
.Unsigned("Decode to fetch delay")
48 renameToFetchDelay
= Param
.Unsigned("Rename to fetch delay")
49 iewToFetchDelay
= Param
.Unsigned("Issue/Execute/Writeback to fetch "
51 commitToFetchDelay
= Param
.Unsigned("Commit to fetch delay")
52 fetchWidth
= Param
.Unsigned("Fetch width")
54 renameToDecodeDelay
= Param
.Unsigned("Rename to decode delay")
55 iewToDecodeDelay
= Param
.Unsigned("Issue/Execute/Writeback to decode "
57 commitToDecodeDelay
= Param
.Unsigned("Commit to decode delay")
58 fetchToDecodeDelay
= Param
.Unsigned("Fetch to decode delay")
59 decodeWidth
= Param
.Unsigned("Decode width")
61 iewToRenameDelay
= Param
.Unsigned("Issue/Execute/Writeback to rename "
63 commitToRenameDelay
= Param
.Unsigned("Commit to rename delay")
64 decodeToRenameDelay
= Param
.Unsigned("Decode to rename delay")
65 renameWidth
= Param
.Unsigned("Rename width")
67 commitToIEWDelay
= Param
.Unsigned("Commit to "
68 "Issue/Execute/Writeback delay")
69 renameToIEWDelay
= Param
.Unsigned("Rename to "
70 "Issue/Execute/Writeback delay")
71 issueToExecuteDelay
= Param
.Unsigned("Issue to execute delay (internal "
73 issueWidth
= Param
.Unsigned("Issue width")
74 executeWidth
= Param
.Unsigned("Execute width")
75 executeIntWidth
= Param
.Unsigned("Integer execute width")
76 executeFloatWidth
= Param
.Unsigned("Floating point execute width")
77 executeBranchWidth
= Param
.Unsigned("Branch execute width")
78 executeMemoryWidth
= Param
.Unsigned("Memory execute width")
80 iewToCommitDelay
= Param
.Unsigned("Issue/Execute/Writeback to commit "
82 renameToROBDelay
= Param
.Unsigned("Rename to reorder buffer delay")
83 commitWidth
= Param
.Unsigned("Commit width")
84 squashWidth
= Param
.Unsigned("Squash width")
86 localPredictorSize
= Param
.Unsigned("Size of local predictor")
87 localCtrBits
= Param
.Unsigned("Bits per counter")
88 localHistoryTableSize
= Param
.Unsigned("Size of local history table")
89 localHistoryBits
= Param
.Unsigned("Bits for the local history")
90 globalPredictorSize
= Param
.Unsigned("Size of global predictor")
91 globalCtrBits
= Param
.Unsigned("Bits per counter")
92 globalHistoryBits
= Param
.Unsigned("Bits of history")
93 choicePredictorSize
= Param
.Unsigned("Size of choice predictor")
94 choiceCtrBits
= Param
.Unsigned("Bits of choice counters")
96 BTBEntries
= Param
.Unsigned("Number of BTB entries")
97 BTBTagSize
= Param
.Unsigned("Size of the BTB tags, in bits")
99 RASSize
= Param
.Unsigned("RAS size")
101 LQEntries
= Param
.Unsigned("Number of load queue entries")
102 SQEntries
= Param
.Unsigned("Number of store queue entries")
103 LFSTSize
= Param
.Unsigned("Last fetched store table size")
104 SSITSize
= Param
.Unsigned("Store set ID table size")
106 numPhysIntRegs
= Param
.Unsigned("Number of physical integer registers")
107 numPhysFloatRegs
= Param
.Unsigned("Number of physical floating point "
109 numIQEntries
= Param
.Unsigned("Number of instruction queue entries")
110 numROBEntries
= Param
.Unsigned("Number of reorder buffer entries")
112 instShiftAmt
= Param
.Unsigned("Number of bits to shift instructions by")
114 function_trace
= Param
.Bool(False, "Enable function trace")
115 function_trace_start
= Param
.Tick(0, "Cycle to start function trace")