38 #ifndef __MEM_CACHE_PREFETCH_BOP_HH__ 39 #define __MEM_CACHE_PREFETCH_BOP_HH__ 46 struct BOPPrefetcherParams;
const unsigned int tagMask
bool testRR(Addr) const
Test if -O is hitting in the RR table to update the offset score.
std::vector< Addr > rrLeft
std::deque< DelayQueueEntry > delayQueue
std::vector< OffsetListEntry > offsetsList
void calculatePrefetch(const PrefetchInfo &pfi, std::vector< AddrPriority > &addresses) override
void notifyFill(const PacketPtr &pkt) override
Update the RR right table after a prefetch fill.
unsigned int bestScore
Max score found so far.
bool issuePrefetchRequests
Hardware prefetcher enabled.
void delayQueueEventWrapper()
Event to handle the delay queue processing.
unsigned int hash(Addr addr, unsigned int way) const
Generate a hash for the specified address to index the RR table.
void bestOffsetLearning(Addr)
Learning phase of the BOP.
Addr tag(Addr addr) const
Generate the tag for the specified address based on the tag bits and the block size.
Class containing the information needed by the prefetch to train and generate new prefetch requests...
const bool delayQueueEnabled
Delay queue parameters.
uint64_t Tick
Tick count type.
const unsigned int scoreMax
Learning phase parameters.
const unsigned int rrEntries
Recent requests table parameteres.
void resetScores()
Reset all the scores from the offset list.
Addr bestOffset
Current best offset to issue prefetches.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const unsigned int delayQueueSize
DelayQueueEntry(Addr x, Tick t)
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
const unsigned int badScore
std::pair< int16_t, uint8_t > OffsetListEntry
Structure to save the offset and the score.
const unsigned int delayTicks
void insertIntoDelayQueue(Addr addr)
Insert the specified address into the delay queue.
Declaration of the Packet class.
std::vector< Addr > rrRight
BOPPrefetcher(const BOPPrefetcherParams *p)
Copyright (c) 2018 Metempsy Technology Consulting All rights reserved.
unsigned int round
Current round.
const unsigned int roundMax
std::vector< OffsetListEntry >::iterator offsetsListIterator
Current test offset index.
Addr phaseBestOffset
Current best offset found in the learning phase.
In a first implementation of the BO prefetcher, both banks of the RR were written simultaneously when...
EventFunctionWrapper delayQueueEvent
void insertIntoRR(Addr addr, unsigned int way)
Insert the specified address into the RR table.