gem5  v20.1.0.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
Prefetcher::SBOOE::Sandbox Class Reference

Public Member Functions

 Sandbox (unsigned int max_entries, int _stride)
 
void access (Addr line, Tick tick)
 Update score and insert the line address being accessed into the FIFO queue of the sandbox. More...
 
unsigned int score () const
 Calculate the useful score. More...
 

Public Attributes

const int stride
 Sequential stride for this prefetcher. More...
 

Private Attributes

CircularQueue< SandboxEntryentries
 FIFO queue containing the sandbox entries. More...
 
unsigned int sandboxScore
 Accesses during the eval period that were present in the sandbox. More...
 
unsigned int lateScore
 Hits in the sandbox that wouldn't have been filled on time. More...
 

Detailed Description

Definition at line 93 of file sbooe.hh.

Constructor & Destructor Documentation

◆ Sandbox()

Prefetcher::SBOOE::Sandbox::Sandbox ( unsigned int  max_entries,
int  _stride 
)
inline

Definition at line 112 of file sbooe.hh.

Member Function Documentation

◆ access()

void Prefetcher::SBOOE::Sandbox::access ( Addr  line,
Tick  tick 
)

Update score and insert the line address being accessed into the FIFO queue of the sandbox.

Parameters
lineLine address being accessed
tickTick in which the access is expected to be filled

Definition at line 53 of file sbooe.cc.

References addr, curTick(), entries, Prefetcher::SBOOE::SandboxEntry::expectedArrivalTick, lateScore, Prefetcher::SBOOE::SandboxEntry::line, sandboxScore, stride, Clocked::tick, and Prefetcher::SBOOE::SandboxEntry::valid.

◆ score()

unsigned int Prefetcher::SBOOE::Sandbox::score ( ) const
inline

Calculate the useful score.

Returns
Useful score of the sandbox. Sandbox score adjusted by by the late score

Definition at line 131 of file sbooe.hh.

References lateScore, and sandboxScore.

Referenced by Prefetcher::SBOOE::access(), and Prefetcher::SBOOE::calculatePrefetch().

Member Data Documentation

◆ entries

CircularQueue<SandboxEntry> Prefetcher::SBOOE::Sandbox::entries
private

FIFO queue containing the sandbox entries.

Definition at line 97 of file sbooe.hh.

Referenced by access().

◆ lateScore

unsigned int Prefetcher::SBOOE::Sandbox::lateScore
private

Hits in the sandbox that wouldn't have been filled on time.

Definition at line 106 of file sbooe.hh.

Referenced by access(), and score().

◆ sandboxScore

unsigned int Prefetcher::SBOOE::Sandbox::sandboxScore
private

Accesses during the eval period that were present in the sandbox.

Definition at line 103 of file sbooe.hh.

Referenced by access(), and score().

◆ stride

const int Prefetcher::SBOOE::Sandbox::stride

Sequential stride for this prefetcher.

Definition at line 110 of file sbooe.hh.

Referenced by access(), and Prefetcher::SBOOE::calculatePrefetch().


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:03:07 for gem5 by doxygen 1.8.17