changeset b3b9097f44a9 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b3b9097f44a9
description:
mem: Tidy up BaseCache parameters
This patch simply tidies up the BaseCache parameters and removes the
unused "two_queue" parameter.
diffstat:
src/mem/cache/BaseCache.py | 50 ++++++++++++++++++++++++++-------------------
1 files changed, 29 insertions(+), 21 deletions(-)
diffs (67 lines):
diff -r 169af9a2779f -r b3b9097f44a9 src/mem/cache/BaseCache.py
--- a/src/mem/cache/BaseCache.py Tue May 05 03:22:21 2015 -0400
+++ b/src/mem/cache/BaseCache.py Tue May 05 03:22:22 2015 -0400
@@ -1,4 +1,4 @@
-# Copyright (c) 2012-2013 ARM Limited
+# Copyright (c) 2012-2013, 2015 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -47,29 +47,37 @@
class BaseCache(MemObject):
type = 'BaseCache'
cxx_header = "mem/cache/base.hh"
- assoc = Param.Int("associativity")
- hit_latency = Param.Cycles("The hit latency for this cache")
- response_latency = Param.Cycles(
- "Additional cache latency for the return path to core on a miss");
+
+ size = Param.MemorySize("Capacity")
+ assoc = Param.Unsigned("Associativity")
+
+ hit_latency = Param.Cycles("Hit latency")
+ response_latency = Param.Cycles("Latency for the return path on a miss");
+
max_miss_count = Param.Counter(0,
- "number of misses to handle before calling exit")
- mshrs = Param.Int("number of MSHRs (max outstanding requests)")
- demand_mshr_reserve = Param.Int(1, "mshrs to reserve for demand access")
- size = Param.MemorySize("capacity in bytes")
+ "Number of misses to handle before calling exit")
+
+ mshrs = Param.Unsigned("Number of MSHRs (max outstanding requests)")
+ demand_mshr_reserve = Param.Unsigned(1, "MSHRs reserved for demand access")
+ tgts_per_mshr = Param.Unsigned("Max number of accesses per MSHR")
+ write_buffers = Param.Unsigned(8, "Number of write buffers")
+
forward_snoops = Param.Bool(True,
- "forward snoops from mem side to cpu side")
+ "Forward snoops from mem side to cpu side")
is_top_level = Param.Bool(False, "Is this cache at the top level (e.g.
L1)")
- tgts_per_mshr = Param.Int("max number of accesses per MSHR")
- two_queue = Param.Bool(False,
- "whether the lifo should have two queue replacement")
- write_buffers = Param.Int(8, "number of write buffers")
+
+ prefetcher = Param.BasePrefetcher(NULL,"Prefetcher attached to cache")
prefetch_on_access = Param.Bool(False,
- "notify the hardware prefetcher on every access (not just misses)")
- prefetcher = Param.BasePrefetcher(NULL,"Prefetcher attached to cache")
- cpu_side = SlavePort("Port on side closer to CPU")
- mem_side = MasterPort("Port on side closer to MEM")
- addr_ranges = VectorParam.AddrRange([AllMemory], "The address range for
the CPU-side port")
- system = Param.System(Parent.any, "System we belong to")
+ "Notify the hardware prefetcher on every access (not just misses)")
+
+ tags = Param.BaseTags(LRU(), "Tag store (replacement policy)")
sequential_access = Param.Bool(False,
"Whether to access tags and data sequentially")
- tags = Param.BaseTags(LRU(), "Tag Store for LRU caches")
+
+ cpu_side = SlavePort("Upstream port closer to the CPU and/or device")
+ mem_side = MasterPort("Downstream port closer to memory")
+
+ addr_ranges = VectorParam.AddrRange([AllMemory],
+ "Address range for the CPU-side port (to allow striping)")
+
+ system = Param.System(Parent.any, "System we belong to")
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev