gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ( )

Definition at line 42 of file vector_register_state.cc.

References d_reg, and s_reg.

Member Function Documentation

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().

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

Definition at line 56 of file vector_register_state.hh.

References _name.

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.

Referenced by VectorRegisterFile::read().

int VecRegisterState::regSize ( )
inline

Definition at line 90 of file vector_register_state.hh.

References s_reg.

void VecRegisterState::regStats ( )
inline

Definition at line 58 of file vector_register_state.hh.

void VecRegisterState::setParent ( ComputeUnit _computeUnit)

Definition at line 49 of file vector_register_state.cc.

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

Referenced by VectorRegisterFile::setParent().

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.

Referenced by VectorRegisterFile::write().

Member Data Documentation

std::string VecRegisterState::_name
private

Definition at line 94 of file vector_register_state.hh.

Referenced by name(), and setParent().

ComputeUnit* VecRegisterState::computeUnit
private

Definition at line 93 of file vector_register_state.hh.

Referenced by setParent().

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().

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 Jun 9 2017 13:04:22 for gem5 by doxygen 1.8.6