43 #ifndef __MEM_CACHE_PREFETCH_SPATIO_TEMPORAL_MEMORY_STREAMING_HH__ 44 #define __MEM_CACHE_PREFETCH_SPATIO_TEMPORAL_MEMORY_STREAMING_HH__ 52 struct STeMSPrefetcherParams;
91 seqCounter(0), sequence(num_positions)
102 for (
auto &seq_entry : sequence) {
103 seq_entry.counter.reset();
104 seq_entry.offset = 0;
130 for (
auto &seq_entry : sequence) {
131 if (seq_entry.counter > 0) {
132 if (seq_entry.offset == offset) {
139 seq_entry.offset =
offset;
201 #endif//__MEM_CACHE_PREFETCH_SPATIO_TEMPORAL_MEMORY_STREAMING_HH__ Data type of the Region Miss Order Buffer entry.
AssociativeSet< ActiveGenerationTableEntry > patternSequenceTable
Pattern Sequence Table (PST)
const unsigned int reconstructionEntries
Number of reconstruction entries.
void checkForActiveGenerationsEnd()
Checks if the active generations have ended.
void update(ActiveGenerationTableEntry const &e)
Update the entry data with an entry from a generation that just ended.
unsigned int seqCounter
Counter to keep track of the interleaving between sequences.
void addOffset(unsigned int offset)
Add a new access to the sequence.
unsigned int delta
Intearleaving position on the global access sequence.
AssociativeSet< ActiveGenerationTableEntry > activeGenerationTable
Active Generation Table (AGT)
const size_t spatialRegionSizeBits
log_2 of the spatial region size
Class containing the information needed by the prefetch to train and generate new prefetch requests...
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
Addr paddress
Physical address of the spatial region.
Implements an n bit saturating counter and provides methods to increment, decrement, and read it.
void reconstructSequence(unsigned int rmob_idx, std::vector< AddrPriority > &addresses)
Reconstructs a sequence of accesses and generates the prefetch addresses, adding them to the addresse...
unsigned int delta
Delta within the global miss order sequence.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Associative container based on the previosuly defined Entry type Each element is indexed by a key of ...
std::vector< RegionMissOrderBufferEntry > rmob
Region Miss Order Buffer (RMOB)
Addr srAddress
Address of the spatial region.
unsigned int lastTriggerCounter
Counter to keep the count of accesses between trigger accesses.
Addr pc
PC that started this generation.
const size_t spatialRegionSize
Size of each spatial region.
void invalidate() override
Invalidates the entry.
STeMSPrefetcher(const STeMSPrefetcherParams *p)
Copyright (c) 2019 Metempsy Technology Consulting All rights reserved.
unsigned int offset
Offset, in cache lines, within the spatial region.
Sequence entry data type.
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
Entry data type for the Active Generation Table (AGT) and the Pattern Sequence Table (PST) ...
SatCounter counter
2-bit confidence counter
virtual void invalidate()
Invalidates the entry.
void addToRMOB(Addr sr_addr, Addr pst_addr, unsigned int delta)
Adds an entry to the RMOB.
unsigned int rmobHead
First free position (or older, if it is full) of the RMOB.
Addr pstAddress
Address used to index the PST table, generated using the PC and the offset within the spatial region...
ActiveGenerationTableEntry(int num_positions)
std::vector< SequenceEntry > sequence
Sequence of accesses.