gem5
v20.1.0.0
|
this represents a slice of the overall LDS, intended to be associated with an individual workgroup More...
#include <lds_state.hh>
Public Member Functions | |
LdsChunk (const uint32_t x_size) | |
LdsChunk () | |
template<class T > | |
T | read (const uint32_t index) |
a read operation More... | |
template<class T > | |
void | write (const uint32_t index, const T value) |
a write operation More... | |
std::vector< uint8_t >::size_type | size () const |
get the size of this chunk More... | |
Protected Attributes | |
std::vector< uint8_t > | chunk |
this represents a slice of the overall LDS, intended to be associated with an individual workgroup
Definition at line 55 of file lds_state.hh.
|
inline |
Definition at line 58 of file lds_state.hh.
|
inline |
Definition at line 63 of file lds_state.hh.
|
inline |
a read operation
For reads that are outside the bounds of the LDS chunk allocated to this WG we return 0.
Definition at line 70 of file lds_state.hh.
References chunk, and MipsISA::index.
Referenced by Gcn3ISA::Inst_DS::initDualMemRead(), and Gcn3ISA::Inst_DS::initMemRead().
|
inline |
|
inline |
a write operation
Writes that are outside the bounds of the LDS chunk allocated to this WG are dropped.
Definition at line 89 of file lds_state.hh.
References chunk, and MipsISA::index.
Referenced by Gcn3ISA::Inst_DS::initDualMemWrite(), and Gcn3ISA::Inst_DS::initMemWrite().
|
protected |
Definition at line 114 of file lds_state.hh.