Override addPrivateSplitL1Caches function in order to automatically set the tgts_per_...
[gem5.git] / src / python / m5 / objects / SimpleOzoneCPU.py
1 from m5.params import *
2 from m5 import build_env
3 from BaseCPU import BaseCPU
4
5 class SimpleOzoneCPU(BaseCPU):
6 type = 'SimpleOzoneCPU'
7
8 numThreads = Param.Unsigned("number of HW thread contexts")
9
10 if not build_env['FULL_SYSTEM']:
11 mem = Param.FunctionalMemory(NULL, "memory")
12
13 width = Param.Unsigned("Width")
14 frontEndWidth = Param.Unsigned("Front end width")
15 backEndWidth = Param.Unsigned("Back end width")
16 backEndSquashLatency = Param.Unsigned("Back end squash latency")
17 backEndLatency = Param.Unsigned("Back end latency")
18 maxInstBufferSize = Param.Unsigned("Maximum instruction buffer size")
19 decodeToFetchDelay = Param.Unsigned("Decode to fetch delay")
20 renameToFetchDelay = Param.Unsigned("Rename to fetch delay")
21 iewToFetchDelay = Param.Unsigned("Issue/Execute/Writeback to fetch "
22 "delay")
23 commitToFetchDelay = Param.Unsigned("Commit to fetch delay")
24 fetchWidth = Param.Unsigned("Fetch width")
25
26 renameToDecodeDelay = Param.Unsigned("Rename to decode delay")
27 iewToDecodeDelay = Param.Unsigned("Issue/Execute/Writeback to decode "
28 "delay")
29 commitToDecodeDelay = Param.Unsigned("Commit to decode delay")
30 fetchToDecodeDelay = Param.Unsigned("Fetch to decode delay")
31 decodeWidth = Param.Unsigned("Decode width")
32
33 iewToRenameDelay = Param.Unsigned("Issue/Execute/Writeback to rename "
34 "delay")
35 commitToRenameDelay = Param.Unsigned("Commit to rename delay")
36 decodeToRenameDelay = Param.Unsigned("Decode to rename delay")
37 renameWidth = Param.Unsigned("Rename width")
38
39 commitToIEWDelay = Param.Unsigned("Commit to "
40 "Issue/Execute/Writeback delay")
41 renameToIEWDelay = Param.Unsigned("Rename to "
42 "Issue/Execute/Writeback delay")
43 issueToExecuteDelay = Param.Unsigned("Issue to execute delay (internal "
44 "to the IEW stage)")
45 issueWidth = Param.Unsigned("Issue width")
46 executeWidth = Param.Unsigned("Execute width")
47 executeIntWidth = Param.Unsigned("Integer execute width")
48 executeFloatWidth = Param.Unsigned("Floating point execute width")
49 executeBranchWidth = Param.Unsigned("Branch execute width")
50 executeMemoryWidth = Param.Unsigned("Memory execute width")
51
52 iewToCommitDelay = Param.Unsigned("Issue/Execute/Writeback to commit "
53 "delay")
54 renameToROBDelay = Param.Unsigned("Rename to reorder buffer delay")
55 commitWidth = Param.Unsigned("Commit width")
56 squashWidth = Param.Unsigned("Squash width")
57
58 localPredictorSize = Param.Unsigned("Size of local predictor")
59 localCtrBits = Param.Unsigned("Bits per counter")
60 localHistoryTableSize = Param.Unsigned("Size of local history table")
61 localHistoryBits = Param.Unsigned("Bits for the local history")
62 globalPredictorSize = Param.Unsigned("Size of global predictor")
63 globalCtrBits = Param.Unsigned("Bits per counter")
64 globalHistoryBits = Param.Unsigned("Bits of history")
65 choicePredictorSize = Param.Unsigned("Size of choice predictor")
66 choiceCtrBits = Param.Unsigned("Bits of choice counters")
67
68 BTBEntries = Param.Unsigned("Number of BTB entries")
69 BTBTagSize = Param.Unsigned("Size of the BTB tags, in bits")
70
71 RASSize = Param.Unsigned("RAS size")
72
73 LQEntries = Param.Unsigned("Number of load queue entries")
74 SQEntries = Param.Unsigned("Number of store queue entries")
75 LFSTSize = Param.Unsigned("Last fetched store table size")
76 SSITSize = Param.Unsigned("Store set ID table size")
77
78 numPhysIntRegs = Param.Unsigned("Number of physical integer registers")
79 numPhysFloatRegs = Param.Unsigned("Number of physical floating point "
80 "registers")
81 numIQEntries = Param.Unsigned("Number of instruction queue entries")
82 numROBEntries = Param.Unsigned("Number of reorder buffer entries")
83
84 instShiftAmt = Param.Unsigned("Number of bits to shift instructions by")
85
86 function_trace = Param.Bool(False, "Enable function trace")
87 function_trace_start = Param.Tick(0, "Cycle to start function trace")