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__
49 struct AccessMapPatternMatchingParams;
50 struct AMPMPrefetcherParams;
106 for (
auto &entry :
states) {
200 AMPM(
const AMPMPrefetcherParams &
p);
210 #endif//__MEM_CACHE_PREFETCH_ACCESS_MAP_PATTERN_MATCHING_HH__
const double lowAccuracyThreshold
A prefetch accuracy factor smaller than this is considered low.
AccessMapPatternMatching & ampm
const uint64_t hotZoneSize
Amount of memory covered by a hot zone.
AccessMapEntry data type.
AssociativeSet< AccessMapEntry > accessMapTable
Access map table.
const double lowCoverageThreshold
A prefetch coverage factor smaller than this is considered low.
void processEpochEvent()
This event constitues the epoch of the statistics that keep track of the prefetcher accuracy,...
const Cycles epochCycles
Cycles in an epoch period.
void calculatePrefetch(const Base::PrefetchInfo &pfi, std::vector< Queued::AddrPriority > &addresses)
const unsigned blkSize
Cacheline size used by the prefetcher using this object.
void invalidate() override
Invalidate the block.
const unsigned startDegree
Maximum number of prefetch generated.
AccessMapPatternMatching(const AccessMapPatternMatchingParams &p)
const unsigned limitStride
Limit the stride checking to -limitStride/+limitStride.
Cycles is a wrapper class for representing cycle counts, i.e.
std::vector< AccessMapState > states
vector containing the state of the cachelines in this zone
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 ...
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...
A tagged entry is an entry containing a tag.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
unsigned degree
Current degree.
uint64_t Tick
Tick count type.
AccessMapState
Data type representing the state of a cacheline in the access map.
const double highCacheHitThreshold
A cache hit ratio bigger than this is considered high.
unsigned usefulDegree
Current useful degree.
uint64_t numRawCacheHits
Number of raw cache hits.
virtual void invalidate()
Invalidate the block.
uint64_t numGoodPrefetches
Number of good prefetches.
uint64_t numRawCacheMisses
Number of raw cache misses.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
AccessMapEntry(size_t num_entries)
uint64_t numTotalPrefetches
Number of prefetches issued.
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
AMPM(const AMPMPrefetcherParams &p)
void setEntryState(AccessMapEntry &entry, Addr block, enum AccessMapState state)
Updates the state of a block within an AccessMapEntry, also updates the prefetcher metrics.
const double lowCacheHitThreshold
A cache hit ratio smaller than this is considered low.
const Tick offChipMemoryLatency
Off chip memory latency to use for the epoch bandwidth calculation.
const double highAccuracyThreshold
A prefetch accuracy factor bigger than this is considered high.
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
EventFunctionWrapper epochEvent
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Bitfield< 21, 20 > stride
~AccessMapPatternMatching()=default
Class containing the information needed by the prefetch to train and generate new prefetch requests.
void startup() override
startup() is the final initialization call before simulation.
const double highCoverageThreshold
A prefetch coverage factor bigger than this is considered high.
Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17