gem5  v22.1.0.0
Public Member Functions | Private Attributes | List of all members
gem5::ruby::garnet::OutVcState Class Reference

#include <OutVcState.hh>

Public Member Functions

 OutVcState (int id, GarnetNetwork *network_ptr, uint32_t consumerVcs)
 
int get_credit_count ()
 
bool has_credit ()
 
void increment_credit ()
 
void decrement_credit ()
 
bool isInState (VC_state_type state, Tick request_time)
 
void setState (VC_state_type state, Tick time)
 

Private Attributes

int m_id
 
Tick m_time
 
VC_state_type m_vc_state
 
int m_credit_count
 
int m_max_credit_count
 

Detailed Description

Definition at line 46 of file OutVcState.hh.

Constructor & Destructor Documentation

◆ OutVcState()

gem5::ruby::garnet::OutVcState::OutVcState ( int  id,
GarnetNetwork network_ptr,
uint32_t  consumerVcs 
)

Member Function Documentation

◆ decrement_credit()

void gem5::ruby::garnet::OutVcState::decrement_credit ( )

Definition at line 74 of file OutVcState.cc.

References m_credit_count.

◆ get_credit_count()

int gem5::ruby::garnet::OutVcState::get_credit_count ( )
inline

Definition at line 51 of file OutVcState.hh.

References m_credit_count.

◆ has_credit()

bool gem5::ruby::garnet::OutVcState::has_credit ( )
inline

Definition at line 52 of file OutVcState.hh.

References m_credit_count.

◆ increment_credit()

void gem5::ruby::garnet::OutVcState::increment_credit ( )

Definition at line 67 of file OutVcState.cc.

References m_credit_count, and m_max_credit_count.

◆ isInState()

bool gem5::ruby::garnet::OutVcState::isInState ( VC_state_type  state,
Tick  request_time 
)
inline

Definition at line 57 of file OutVcState.hh.

References m_time, m_vc_state, and state.

◆ setState()

void gem5::ruby::garnet::OutVcState::setState ( VC_state_type  state,
Tick  time 
)
inline

Definition at line 62 of file OutVcState.hh.

References m_time, m_vc_state, and state.

Member Data Documentation

◆ m_credit_count

int gem5::ruby::garnet::OutVcState::m_credit_count
private

◆ m_id

int gem5::ruby::garnet::OutVcState::m_id
private

Definition at line 69 of file OutVcState.hh.

Referenced by OutVcState().

◆ m_max_credit_count

int gem5::ruby::garnet::OutVcState::m_max_credit_count
private

Definition at line 73 of file OutVcState.hh.

Referenced by increment_credit(), and OutVcState().

◆ m_time

Tick gem5::ruby::garnet::OutVcState::m_time
private

Definition at line 70 of file OutVcState.hh.

Referenced by isInState(), and setState().

◆ m_vc_state

VC_state_type gem5::ruby::garnet::OutVcState::m_vc_state
private

Definition at line 71 of file OutVcState.hh.

Referenced by isInState(), OutVcState(), and setState().


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

Generated on Wed Dec 21 2022 10:24:24 for gem5 by doxygen 1.9.1