gem5  v19.0.0.0
Public Member Functions | Private Attributes | List of all members
VecRegisterState Class Reference

#include <vector_register_state.hh>

Public Member Functions

 VecRegisterState ()
 
void init (uint32_t _size, uint32_t wf_size)
 
const std::string & name () const
 
void setParent (ComputeUnit *_computeUnit)
 
void regStats ()
 
template<typename T >
read (int regIdx, int threadId=0)
 
template<typename T >
void write (unsigned int regIdx, T value, int threadId=0)
 
int regSize ()
 

Private Attributes

ComputeUnitcomputeUnit
 
std::string _name
 
std::vector< std::vector< uint32_t > > s_reg
 
std::vector< std::vector< uint64_t > > d_reg
 

Detailed Description

Definition at line 50 of file vector_register_state.hh.

Constructor & Destructor Documentation

◆ VecRegisterState()

VecRegisterState::VecRegisterState ( )

Definition at line 42 of file vector_register_state.cc.

References d_reg, and s_reg.

Member Function Documentation

◆ init()

void VecRegisterState::init ( uint32_t  _size,
uint32_t  wf_size 
)

Definition at line 56 of file vector_register_state.cc.

References d_reg, fatal_if, ArmISA::i, and s_reg.

Referenced by VectorRegisterFile::VectorRegisterFile().

◆ name()

const std::string& VecRegisterState::name ( ) const
inline

Definition at line 56 of file vector_register_state.hh.

References _name, and setParent().

◆ read()

template<typename T >
T VecRegisterState::read ( int  regIdx,
int  threadId = 0 
)
inline

Definition at line 63 of file vector_register_state.hh.

References d_reg, and s_reg.

◆ regSize()

int VecRegisterState::regSize ( )
inline

Definition at line 90 of file vector_register_state.hh.

References s_reg.

◆ regStats()

void VecRegisterState::regStats ( )
inline

Definition at line 58 of file vector_register_state.hh.

◆ setParent()

void VecRegisterState::setParent ( ComputeUnit _computeUnit)

Definition at line 49 of file vector_register_state.cc.

References _name, computeUnit, and SimObject::name().

Referenced by name(), and VectorRegisterFile::setParent().

◆ write()

template<typename T >
void VecRegisterState::write ( unsigned int  regIdx,
value,
int  threadId = 0 
)
inline

Definition at line 77 of file vector_register_state.hh.

References d_reg, and s_reg.

Member Data Documentation

◆ _name

std::string VecRegisterState::_name
private

Definition at line 94 of file vector_register_state.hh.

Referenced by name(), and setParent().

◆ computeUnit

ComputeUnit* VecRegisterState::computeUnit
private

Definition at line 93 of file vector_register_state.hh.

Referenced by setParent().

◆ d_reg

std::vector<std::vector<uint64_t> > VecRegisterState::d_reg
private

Definition at line 98 of file vector_register_state.hh.

Referenced by init(), read(), VecRegisterState(), and write().

◆ s_reg

std::vector<std::vector<uint32_t> > VecRegisterState::s_reg
private

Definition at line 96 of file vector_register_state.hh.

Referenced by init(), read(), regSize(), VecRegisterState(), and write().


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

Generated on Fri Feb 28 2020 16:27:18 for gem5 by doxygen 1.8.13