base: Add wrapped protobuf output streams
[gem5.git] / configs / common / O3_ARM_v7a.py
1 # Copyright (c) 2012 The Regents of The University of Michigan
2 # All rights reserved.
3 #
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.
14 #
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.
26 #
27 # Authors: Ron Dreslinski
28
29
30 from m5.objects import *
31
32 # Simple ALU Instructions have a latency of 1
33 class O3_ARM_v7a_Simple_Int(FUDesc):
34 opList = [ OpDesc(opClass='IntAlu', opLat=1) ]
35 count = 2
36
37 # Complex ALU instructions have a variable latencies
38 class O3_ARM_v7a_Complex_Int(FUDesc):
39 opList = [ OpDesc(opClass='IntMult', opLat=3, issueLat=1),
40 OpDesc(opClass='IntDiv', opLat=12, issueLat=12),
41 OpDesc(opClass='IprAccess', opLat=3, issueLat=1) ]
42 count = 1
43
44
45 # Floating point and SIMD instructions
46 class O3_ARM_v7a_FP(FUDesc):
47 opList = [ OpDesc(opClass='SimdAdd', opLat=4),
48 OpDesc(opClass='SimdAddAcc', opLat=4),
49 OpDesc(opClass='SimdAlu', opLat=4),
50 OpDesc(opClass='SimdCmp', opLat=4),
51 OpDesc(opClass='SimdCvt', opLat=3),
52 OpDesc(opClass='SimdMisc', opLat=3),
53 OpDesc(opClass='SimdMult',opLat=5),
54 OpDesc(opClass='SimdMultAcc',opLat=5),
55 OpDesc(opClass='SimdShift',opLat=3),
56 OpDesc(opClass='SimdShiftAcc', opLat=3),
57 OpDesc(opClass='SimdSqrt', opLat=9),
58 OpDesc(opClass='SimdFloatAdd',opLat=5),
59 OpDesc(opClass='SimdFloatAlu',opLat=5),
60 OpDesc(opClass='SimdFloatCmp', opLat=3),
61 OpDesc(opClass='SimdFloatCvt', opLat=3),
62 OpDesc(opClass='SimdFloatDiv', opLat=3),
63 OpDesc(opClass='SimdFloatMisc', opLat=3),
64 OpDesc(opClass='SimdFloatMult', opLat=3),
65 OpDesc(opClass='SimdFloatMultAcc',opLat=1),
66 OpDesc(opClass='SimdFloatSqrt', opLat=9),
67 OpDesc(opClass='FloatAdd', opLat=5),
68 OpDesc(opClass='FloatCmp', opLat=5),
69 OpDesc(opClass='FloatCvt', opLat=5),
70 OpDesc(opClass='FloatDiv', opLat=9, issueLat=9),
71 OpDesc(opClass='FloatSqrt', opLat=33, issueLat=33),
72 OpDesc(opClass='FloatMult', opLat=4) ]
73 count = 2
74
75
76 # Load/Store Units
77 class O3_ARM_v7a_Load(FUDesc):
78 opList = [ OpDesc(opClass='MemRead',opLat=2) ]
79 count = 1
80
81 class O3_ARM_v7a_Store(FUDesc):
82 opList = [OpDesc(opClass='MemWrite',opLat=2) ]
83 count = 1
84
85 # Functional Units for this CPU
86 class O3_ARM_v7a_FUP(FUPool):
87 FUList = [O3_ARM_v7a_Simple_Int(), O3_ARM_v7a_Complex_Int(),
88 O3_ARM_v7a_Load(), O3_ARM_v7a_Store(), O3_ARM_v7a_FP()]
89
90
91 class O3_ARM_v7a_3(DerivO3CPU):
92 predType = "tournament"
93 localCtrBits = 2
94 localHistoryTableSize = 64
95 localHistoryBits = 6
96 globalPredictorSize = 8192
97 globalCtrBits = 2
98 globalHistoryBits = 13
99 choicePredictorSize = 8192
100 choiceCtrBits = 2
101 BTBEntries = 2048
102 BTBTagSize = 18
103 RASSize = 16
104 instShiftAmt = 2
105 LQEntries = 16
106 SQEntries = 16
107 LSQDepCheckShift = 0
108 LFSTSize = 1024
109 SSITSize = 1024
110 decodeToFetchDelay = 1
111 renameToFetchDelay = 1
112 iewToFetchDelay = 1
113 commitToFetchDelay = 1
114 renameToDecodeDelay = 1
115 iewToDecodeDelay = 1
116 commitToDecodeDelay = 1
117 iewToRenameDelay = 1
118 commitToRenameDelay = 1
119 commitToIEWDelay = 1
120 fetchWidth = 3
121 fetchToDecodeDelay = 3
122 decodeWidth = 3
123 decodeToRenameDelay = 2
124 renameWidth = 3
125 renameToIEWDelay = 1
126 issueToExecuteDelay = 1
127 dispatchWidth = 6
128 issueWidth = 8
129 wbWidth = 8
130 wbDepth = 1
131 fuPool = O3_ARM_v7a_FUP()
132 iewToCommitDelay = 1
133 renameToROBDelay = 1
134 commitWidth = 8
135 squashWidth = 8
136 trapLatency = 13
137 backComSize = 5
138 forwardComSize = 5
139 numPhysIntRegs = 128
140 numPhysFloatRegs = 128
141 numIQEntries = 32
142 numROBEntries = 40
143
144 defer_registration= False
145
146 # Instruction Cache
147 class O3_ARM_v7a_ICache(BaseCache):
148 hit_latency = 1
149 response_latency = 1
150 block_size = 64
151 mshrs = 2
152 tgts_per_mshr = 8
153 size = '32kB'
154 assoc = 2
155 is_top_level = 'true'
156
157 # Data Cache
158 class O3_ARM_v7a_DCache(BaseCache):
159 hit_latency = 2
160 response_latency = 2
161 block_size = 64
162 mshrs = 6
163 tgts_per_mshr = 8
164 size = '32kB'
165 assoc = 2
166 write_buffers = 16
167 is_top_level = 'true'
168
169 # TLB Cache
170 # Use a cache as a L2 TLB
171 class O3_ARM_v7aWalkCache(BaseCache):
172 hit_latency = 4
173 response_latency = 4
174 block_size = 64
175 mshrs = 6
176 tgts_per_mshr = 8
177 size = '1kB'
178 assoc = 8
179 write_buffers = 16
180 is_top_level = 'true'
181
182
183 # L2 Cache
184 class O3_ARM_v7aL2(BaseCache):
185 hit_latency = 12
186 response_latency = 12
187 block_size = 64
188 mshrs = 16
189 tgts_per_mshr = 8
190 size = '1MB'
191 assoc = 16
192 write_buffers = 8
193 prefetch_on_access = 'true'
194 # Simple stride prefetcher
195 prefetcher = StridePrefetcher(degree=8, latency = 1)
196