gem5  v22.1.0.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
gem5::prefetch::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 99 of file sbooe.hh.

Constructor & Destructor Documentation

◆ Sandbox()

gem5::prefetch::SBOOE::Sandbox::Sandbox ( unsigned int  max_entries,
int  _stride 
)
inline

Definition at line 118 of file sbooe.hh.

Member Function Documentation

◆ access()

void gem5::prefetch::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 58 of file sbooe.cc.

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

◆ score()

unsigned int gem5::prefetch::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 137 of file sbooe.hh.

References lateScore, and sandboxScore.

Referenced by gem5::prefetch::SBOOE::access(), and gem5::prefetch::SBOOE::calculatePrefetch().

Member Data Documentation

◆ entries

CircularQueue<SandboxEntry> gem5::prefetch::SBOOE::Sandbox::entries
private

FIFO queue containing the sandbox entries.

Definition at line 103 of file sbooe.hh.

Referenced by access().

◆ lateScore

unsigned int gem5::prefetch::SBOOE::Sandbox::lateScore
private

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

Definition at line 112 of file sbooe.hh.

Referenced by access(), and score().

◆ sandboxScore

unsigned int gem5::prefetch::SBOOE::Sandbox::sandboxScore
private

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

Definition at line 109 of file sbooe.hh.

Referenced by access(), and score().

◆ stride

const int gem5::prefetch::SBOOE::Sandbox::stride

Sequential stride for this prefetcher.

Definition at line 116 of file sbooe.hh.

Referenced by access(), and gem5::prefetch::SBOOE::calculatePrefetch().


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

Generated on Wed Dec 21 2022 10:24:20 for gem5 by doxygen 1.9.1