Cache: Collect very basic stats on tag and data accesses
Adds very basic statistics on the number of tag and data accesses within the cache, which is important for power modelling. For the tags, simply count the associativity of the cache each time. For the data, this depends on whether tags and data are accessed sequentially, which is given by a new parameter. In the parallel case, all data blocks are accessed each time, but with sequential accesses, a single data block is accessed only on a hit.
This commit is contained in:
2
src/mem/cache/BaseCache.py
vendored
2
src/mem/cache/BaseCache.py
vendored
@@ -69,4 +69,6 @@ class BaseCache(MemObject):
|
||||
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")
|
||||
sequential_access = Param.Bool(False,
|
||||
"Whether to access tags and data sequentially")
|
||||
tags = Param.BaseTags(LRU(), "Tag Store for LRU caches")
|
||||
|
||||
Reference in New Issue
Block a user