gem5  v20.1.0.0
Public Member Functions | Protected Attributes | List of all members
LdsChunk Class Reference

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 >
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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LdsChunk() [1/2]

LdsChunk::LdsChunk ( const uint32_t  x_size)
inline

Definition at line 58 of file lds_state.hh.

◆ LdsChunk() [2/2]

LdsChunk::LdsChunk ( )
inline

Definition at line 63 of file lds_state.hh.

Member Function Documentation

◆ read()

template<class T >
T LdsChunk::read ( const uint32_t  index)
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().

◆ size()

std::vector<uint8_t>::size_type LdsChunk::size ( ) const
inline

get the size of this chunk

Definition at line 107 of file lds_state.hh.

References chunk.

◆ write()

template<class T >
void LdsChunk::write ( const uint32_t  index,
const T  value 
)
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().

Member Data Documentation

◆ chunk

std::vector<uint8_t> LdsChunk::chunk
protected

Definition at line 114 of file lds_state.hh.

Referenced by read(), size(), and write().


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

Generated on Wed Sep 30 2020 14:02:26 for gem5 by doxygen 1.8.17