gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
VirtualChannel Class Reference

#include <VirtualChannel.hh>

Public Member Functions

 VirtualChannel ()
 
 ~VirtualChannel ()=default
 
bool need_stage (flit_stage stage, Tick time)
 
void set_idle (Tick curTime)
 
void set_active (Tick curTime)
 
void set_outvc (int outvc)
 
int get_outvc ()
 
void set_outport (int outport)
 
int get_outport ()
 
Tick get_enqueue_time ()
 
void set_enqueue_time (Tick time)
 
VC_state_type get_state ()
 
bool isReady (Tick curTime)
 
void insertFlit (flit *t_flit)
 
void set_state (VC_state_type m_state, Tick curTime)
 
flitpeekTopFlit ()
 
flitgetTopFlit ()
 
uint32_t functionalWrite (Packet *pkt)
 

Private Attributes

flitBuffer inputBuffer
 
std::pair< VC_state_type, Tickm_vc_state
 
int m_output_port
 
Tick m_enqueue_time
 
int m_output_vc
 

Detailed Description

Definition at line 40 of file VirtualChannel.hh.

Constructor & Destructor Documentation

◆ VirtualChannel()

VirtualChannel::VirtualChannel ( )

Definition at line 34 of file VirtualChannel.cc.

◆ ~VirtualChannel()

VirtualChannel::~VirtualChannel ( )
default

Member Function Documentation

◆ functionalWrite()

uint32_t VirtualChannel::functionalWrite ( Packet pkt)

Definition at line 70 of file VirtualChannel.cc.

References flitBuffer::functionalWrite(), and inputBuffer.

◆ get_enqueue_time()

Tick VirtualChannel::get_enqueue_time ( )
inline

Definition at line 54 of file VirtualChannel.hh.

References m_enqueue_time.

◆ get_outport()

int VirtualChannel::get_outport ( )
inline

Definition at line 52 of file VirtualChannel.hh.

References m_output_port.

◆ get_outvc()

int VirtualChannel::get_outvc ( )
inline

Definition at line 50 of file VirtualChannel.hh.

References m_output_vc.

◆ get_state()

VC_state_type VirtualChannel::get_state ( )
inline

Definition at line 56 of file VirtualChannel.hh.

References m_vc_state.

◆ getTopFlit()

flit* VirtualChannel::getTopFlit ( )
inline

Definition at line 84 of file VirtualChannel.hh.

References flitBuffer::getTopFlit(), and inputBuffer.

◆ insertFlit()

void VirtualChannel::insertFlit ( flit t_flit)
inline

Definition at line 65 of file VirtualChannel.hh.

References inputBuffer, and flitBuffer::insert().

◆ isReady()

bool VirtualChannel::isReady ( Tick  curTime)
inline

Definition at line 59 of file VirtualChannel.hh.

References inputBuffer, and flitBuffer::isReady().

◆ need_stage()

bool VirtualChannel::need_stage ( flit_stage  stage,
Tick  time 
)

◆ peekTopFlit()

flit* VirtualChannel::peekTopFlit ( )
inline

Definition at line 78 of file VirtualChannel.hh.

References inputBuffer, and flitBuffer::peekTopFlit().

◆ set_active()

void VirtualChannel::set_active ( Tick  curTime)

Definition at line 51 of file VirtualChannel.cc.

References ACTIVE_, m_enqueue_time, and m_vc_state.

◆ set_enqueue_time()

void VirtualChannel::set_enqueue_time ( Tick  time)
inline

Definition at line 55 of file VirtualChannel.hh.

References m_enqueue_time.

◆ set_idle()

void VirtualChannel::set_idle ( Tick  curTime)

Definition at line 41 of file VirtualChannel.cc.

References IDLE_, INFINITE_, m_enqueue_time, m_output_port, m_output_vc, and m_vc_state.

◆ set_outport()

void VirtualChannel::set_outport ( int  outport)
inline

Definition at line 51 of file VirtualChannel.hh.

References m_output_port.

◆ set_outvc()

void VirtualChannel::set_outvc ( int  outvc)
inline

Definition at line 49 of file VirtualChannel.hh.

References m_output_vc.

◆ set_state()

void VirtualChannel::set_state ( VC_state_type  m_state,
Tick  curTime 
)
inline

Definition at line 71 of file VirtualChannel.hh.

References m_vc_state.

Member Data Documentation

◆ inputBuffer

flitBuffer VirtualChannel::inputBuffer
private

◆ m_enqueue_time

Tick VirtualChannel::m_enqueue_time
private

Definition at line 95 of file VirtualChannel.hh.

Referenced by get_enqueue_time(), set_active(), set_enqueue_time(), and set_idle().

◆ m_output_port

int VirtualChannel::m_output_port
private

Definition at line 94 of file VirtualChannel.hh.

Referenced by get_outport(), set_idle(), and set_outport().

◆ m_output_vc

int VirtualChannel::m_output_vc
private

Definition at line 96 of file VirtualChannel.hh.

Referenced by get_outvc(), set_idle(), and set_outvc().

◆ m_vc_state

std::pair<VC_state_type, Tick> VirtualChannel::m_vc_state
private

Definition at line 93 of file VirtualChannel.hh.

Referenced by get_state(), need_stage(), set_active(), set_idle(), and set_state().


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

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