153130e558
way ranges work, more fully support metric prefixes for all integer types, and convert memory sized parameters to the MemorySize type. python/m5/config.py: - no more _Param and _ParamProxy stuff. Use the names ParamBase and ParamFactory to hopefully make it clearer what we intend. - Get rid of RangeSize and the old Range class and more fully flesh out the Range class to deal with types of parameters and different kinds of ranges. - Call toInteger on the CheckedInt types so we can use metric prefixes in strings for all integers. - Get rid of the K, M, and G constants. Use the proper type or call one of the functions in the convert package. python/m5/convert.py: Simple way to deal with both floating point and integer strings. python/m5/objects/BaseCache.mpy: python/m5/objects/Ethernet.mpy: This is a MemorySize typed parameter --HG-- extra : convert_revision : 92b4ea662d723abdd6c0a49065b79c25400fac9b
38 lines
1.8 KiB
Text
38 lines
1.8 KiB
Text
from BaseMem import BaseMem
|
|
|
|
simobj BaseCache(BaseMem):
|
|
type = 'BaseCache'
|
|
adaptive_compression = Param.Bool(False,
|
|
"Use an adaptive compression scheme")
|
|
assoc = Param.Int("associativity")
|
|
block_size = Param.Int("block size in bytes")
|
|
compressed_bus = Param.Bool(False,
|
|
"This cache connects to a compressed memory")
|
|
compression_latency = Param.Int(0,
|
|
"Latency in cycles of compression algorithm")
|
|
do_copy = Param.Bool(False, "perform fast copies in the cache")
|
|
hash_delay = Param.Int(1, "time in cycles of hash access")
|
|
in_bus = Param.Bus(NULL, "incoming bus object")
|
|
lifo = Param.Bool(False,
|
|
"whether this NIC partition should use LIFO repl. policy")
|
|
max_miss_count = Param.Counter(0,
|
|
"number of misses to handle before calling exit")
|
|
mshrs = Param.Int("number of MSHRs (max outstanding requests)")
|
|
out_bus = Param.Bus("outgoing bus object")
|
|
prioritizeRequests = Param.Bool(False,
|
|
"always service demand misses first")
|
|
protocol = Param.CoherenceProtocol(NULL, "coherence protocol to use")
|
|
repl = Param.Repl(NULL, "replacement policy")
|
|
size = Param.MemorySize("capacity in bytes")
|
|
split = Param.Bool(False, "whether or not this cache is split")
|
|
split_size = Param.Int(0,
|
|
"How many ways of the cache belong to CPU/LRU partition")
|
|
store_compressed = Param.Bool(False,
|
|
"Store compressed data in the cache")
|
|
subblock_size = Param.Int(0,
|
|
"Size of subblock in IIC used for compression")
|
|
tgts_per_mshr = Param.Int("max number of accesses per MSHR")
|
|
trace_addr = Param.Addr(0, "address to trace")
|
|
two_queue = Param.Bool(False,
|
|
"whether the lifo should have two queue replacement")
|
|
write_buffers = Param.Int(8, "number of write buffers")
|