Go to the documentation of this file.
38 #ifndef __MEM_CACHE_PREFETCH_ACCESS_MAP_PATTERN_MATCHING_HH__
39 #define __MEM_CACHE_PREFETCH_ACCESS_MAP_PATTERN_MATCHING_HH__
46 struct AccessMapPatternMatchingParams;
47 struct AMPMPrefetcherParams;
102 for (
auto &entry :
states) {
196 AMPM(
const AMPMPrefetcherParams*
p);
205 #endif//__MEM_CACHE_PREFETCH_ACCESS_MAP_PATTERN_MATCHING_HH__
const double lowCoverageThreshold
A prefetch coverage factor smaller than this is considered low.
uint64_t numTotalPrefetches
Number of prefetches issued.
uint64_t numGoodPrefetches
Number of good prefetches.
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
AMPM(const AMPMPrefetcherParams *p)
void processEpochEvent()
This event constitues the epoch of the statistics that keep track of the prefetcher accuracy,...
const Tick offChipMemoryLatency
Off chip memory latency to use for the epoch bandwidth calculation.
AccessMapState
Data type representing the state of a cacheline in the access map.
~AccessMapPatternMatching()=default
void startup() override
startup() is the final initialization call before simulation.
AccessMapEntry data type.
AccessMapPatternMatching & ampm
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
const Cycles epochCycles
Cycles in an epoch period.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
uint64_t numRawCacheMisses
Number of raw cache misses.
uint64_t Tick
Tick count type.
AccessMapPatternMatching(const AccessMapPatternMatchingParams *p)
unsigned degree
Current degree.
AccessMapEntry * getAccessMapEntry(Addr am_addr, bool is_secure)
Obtain an AccessMapEntry from the AccessMapTable, if the entry is not found a new one is initialized ...
const double highCacheHitThreshold
A cache hit ratio bigger than this is considered high.
const double lowAccuracyThreshold
A prefetch accuracy factor smaller than this is considered low.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
const double highCoverageThreshold
A prefetch coverage factor bigger than this is considered high.
uint64_t numRawCacheHits
Number of raw cache hits.
const unsigned limitStride
Limit the stride checking to -limitStride/+limitStride.
const double highAccuracyThreshold
A prefetch accuracy factor bigger than this is considered high.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
void invalidate() override
Invalidates the entry.
bool checkCandidate(std::vector< AccessMapState > const &states, Addr current, int stride) const
Given a target cacheline, this function checks if the cachelines that follow the provided stride have...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
AccessMapEntry(size_t num_entries)
AssociativeSet< AccessMapEntry > accessMapTable
Access map table.
virtual void invalidate()
Invalidates the entry.
std::vector< AccessMapState > states
vector containing the state of the cachelines in this zone
Class containing the information needed by the prefetch to train and generate new prefetch requests.
const uint64_t hotZoneSize
Amount of memory covered by a hot zone.
Bitfield< 21, 20 > stride
Cycles is a wrapper class for representing cycle counts, i.e.
void setEntryState(AccessMapEntry &entry, Addr block, enum AccessMapState state)
Updates the state of a block within an AccessMapEntry, also updates the prefetcher metrics.
EventFunctionWrapper epochEvent
unsigned usefulDegree
Current useful degree.
const unsigned startDegree
Maximum number of prefetch generated.
const double lowCacheHitThreshold
A cache hit ratio smaller than this is considered low.
const unsigned blkSize
Cacheline size used by the prefetcher using this object.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17