1 from m5
.params
import *
2 from m5
import build_env
3 from BaseCPU
import BaseCPU
5 class DerivOzoneCPU(BaseCPU
):
8 numThreads
= Param
.Unsigned("number of HW thread contexts")
10 checker
= Param
.BaseCPU("Checker CPU")
12 icache_port
= Port("Instruction Port")
13 dcache_port
= Port("Data Port")
15 width
= Param
.Unsigned("Width")
16 frontEndWidth
= Param
.Unsigned("Front end width")
17 backEndWidth
= Param
.Unsigned("Back end width")
18 backEndSquashLatency
= Param
.Unsigned("Back end squash latency")
19 backEndLatency
= Param
.Unsigned("Back end latency")
20 maxInstBufferSize
= Param
.Unsigned("Maximum instruction buffer size")
21 maxOutstandingMemOps
= Param
.Unsigned("Maximum number of outstanding memory operations")
22 decodeToFetchDelay
= Param
.Unsigned("Decode to fetch delay")
23 renameToFetchDelay
= Param
.Unsigned("Rename to fetch delay")
24 iewToFetchDelay
= Param
.Unsigned("Issue/Execute/Writeback to fetch "
26 commitToFetchDelay
= Param
.Unsigned("Commit to fetch delay")
27 fetchWidth
= Param
.Unsigned("Fetch width")
29 renameToDecodeDelay
= Param
.Unsigned("Rename to decode delay")
30 iewToDecodeDelay
= Param
.Unsigned("Issue/Execute/Writeback to decode "
32 commitToDecodeDelay
= Param
.Unsigned("Commit to decode delay")
33 fetchToDecodeDelay
= Param
.Unsigned("Fetch to decode delay")
34 decodeWidth
= Param
.Unsigned("Decode width")
36 iewToRenameDelay
= Param
.Unsigned("Issue/Execute/Writeback to rename "
38 commitToRenameDelay
= Param
.Unsigned("Commit to rename delay")
39 decodeToRenameDelay
= Param
.Unsigned("Decode to rename delay")
40 renameWidth
= Param
.Unsigned("Rename width")
42 commitToIEWDelay
= Param
.Unsigned("Commit to "
43 "Issue/Execute/Writeback delay")
44 renameToIEWDelay
= Param
.Unsigned("Rename to "
45 "Issue/Execute/Writeback delay")
46 issueToExecuteDelay
= Param
.Unsigned("Issue to execute delay (internal "
48 issueWidth
= Param
.Unsigned("Issue width")
49 executeWidth
= Param
.Unsigned("Execute width")
50 executeIntWidth
= Param
.Unsigned("Integer execute width")
51 executeFloatWidth
= Param
.Unsigned("Floating point execute width")
52 executeBranchWidth
= Param
.Unsigned("Branch execute width")
53 executeMemoryWidth
= Param
.Unsigned("Memory execute width")
55 iewToCommitDelay
= Param
.Unsigned("Issue/Execute/Writeback to commit "
57 renameToROBDelay
= Param
.Unsigned("Rename to reorder buffer delay")
58 commitWidth
= Param
.Unsigned("Commit width")
59 squashWidth
= Param
.Unsigned("Squash width")
61 predType
= Param
.String("Type of branch predictor ('local', 'tournament')")
62 localPredictorSize
= Param
.Unsigned("Size of local predictor")
63 localCtrBits
= Param
.Unsigned("Bits per counter")
64 localHistoryTableSize
= Param
.Unsigned("Size of local history table")
65 localHistoryBits
= Param
.Unsigned("Bits for the local history")
66 globalPredictorSize
= Param
.Unsigned("Size of global predictor")
67 globalCtrBits
= Param
.Unsigned("Bits per counter")
68 globalHistoryBits
= Param
.Unsigned("Bits of history")
69 choicePredictorSize
= Param
.Unsigned("Size of choice predictor")
70 choiceCtrBits
= Param
.Unsigned("Bits of choice counters")
72 BTBEntries
= Param
.Unsigned("Number of BTB entries")
73 BTBTagSize
= Param
.Unsigned("Size of the BTB tags, in bits")
75 RASSize
= Param
.Unsigned("RAS size")
77 LQEntries
= Param
.Unsigned("Number of load queue entries")
78 SQEntries
= Param
.Unsigned("Number of store queue entries")
79 LFSTSize
= Param
.Unsigned("Last fetched store table size")
80 SSITSize
= Param
.Unsigned("Store set ID table size")
82 numPhysIntRegs
= Param
.Unsigned("Number of physical integer registers")
83 numPhysFloatRegs
= Param
.Unsigned("Number of physical floating point "
85 numIQEntries
= Param
.Unsigned("Number of instruction queue entries")
86 numROBEntries
= Param
.Unsigned("Number of reorder buffer entries")
88 instShiftAmt
= Param
.Unsigned("Number of bits to shift instructions by")
90 function_trace
= Param
.Bool(False, "Enable function trace")
91 function_trace_start
= Param
.Tick(0, "Cycle to start function trace")