gem5 v24.0.0.0
|
#include <BankedArray.hh>
Classes | |
class | AccessRecord |
Public Member Functions | |
BankedArray (unsigned int banks, Cycles accessLatency, unsigned int startIndexBit, RubySystem *rs) | |
bool | tryAccess (int64_t idx) |
void | reserve (int64_t idx) |
Cycles | getLatency () const |
Private Member Functions | |
unsigned int | mapIndexToBank (int64_t idx) |
Private Attributes | |
unsigned int | banks |
Cycles | accessLatency |
unsigned int | bankBits |
unsigned int | startIndexBit |
RubySystem * | m_ruby_system |
std::vector< AccessRecord > | busyBanks |
Definition at line 46 of file BankedArray.hh.
gem5::ruby::BankedArray::BankedArray | ( | unsigned int | banks, |
Cycles | accessLatency, | ||
unsigned int | startIndexBit, | ||
RubySystem * | rs ) |
Definition at line 44 of file BankedArray.cc.
References accessLatency, bankBits, banks, busyBanks, gem5::floorLog2(), and startIndexBit.
|
inline |
Definition at line 80 of file BankedArray.hh.
References accessLatency.
Referenced by gem5::ruby::CacheMemory::getDataLatency(), and gem5::ruby::CacheMemory::getTagLatency().
|
private |
Definition at line 102 of file BankedArray.cc.
References banks.
Referenced by reserve(), and tryAccess().
void gem5::ruby::BankedArray::reserve | ( | int64_t | idx | ) |
Definition at line 76 of file BankedArray.cc.
References accessLatency, banks, busyBanks, gem5::Clocked::clockPeriod(), gem5::curTick(), m_ruby_system, mapIndexToBank(), and panic.
Referenced by gem5::ruby::CacheMemory::recordRequestType().
bool gem5::ruby::BankedArray::tryAccess | ( | int64_t | idx | ) |
Definition at line 60 of file BankedArray.cc.
References accessLatency, banks, busyBanks, gem5::curTick(), and mapIndexToBank().
Referenced by gem5::ruby::CacheMemory::checkResourceAvailable().
|
private |
Definition at line 50 of file BankedArray.hh.
Referenced by BankedArray(), getLatency(), reserve(), and tryAccess().
|
private |
Definition at line 51 of file BankedArray.hh.
Referenced by BankedArray().
|
private |
Definition at line 49 of file BankedArray.hh.
Referenced by BankedArray(), mapIndexToBank(), reserve(), and tryAccess().
|
private |
Definition at line 66 of file BankedArray.hh.
Referenced by BankedArray(), reserve(), and tryAccess().
|
private |
Definition at line 53 of file BankedArray.hh.
Referenced by reserve().
|
private |
Definition at line 52 of file BankedArray.hh.
Referenced by BankedArray().