gem5  v21.1.0.2
Public Member Functions | Private Attributes | List of all members
gem5::ruby::garnet::CrossbarSwitch Class Reference

#include <CrossbarSwitch.hh>

Inheritance diagram for gem5::ruby::garnet::CrossbarSwitch:
gem5::ruby::Consumer

Public Member Functions

 CrossbarSwitch (Router *router)
 
 ~CrossbarSwitch ()=default
 
void wakeup ()
 
void init ()
 
void print (std::ostream &out) const
 
void update_sw_winner (int inport, flit *t_flit)
 
double get_crossbar_activity ()
 
uint32_t functionalWrite (Packet *pkt)
 
void resetStats ()
 
- Public Member Functions inherited from gem5::ruby::Consumer
 Consumer (ClockedObject *_em)
 
virtual ~Consumer ()
 
virtual void storeEventInfo (int info)
 
bool alreadyScheduled (Tick time)
 
ClockedObjectgetObject ()
 
void scheduleEventAbsolute (Tick timeAbs)
 
void scheduleEvent (Cycles timeDelta)
 

Private Attributes

Routerm_router
 
int m_num_vcs
 
double m_crossbar_activity
 
std::vector< flitBufferswitchBuffers
 

Detailed Description

Definition at line 53 of file CrossbarSwitch.hh.

Constructor & Destructor Documentation

◆ CrossbarSwitch()

gem5::ruby::garnet::CrossbarSwitch::CrossbarSwitch ( Router router)

Definition at line 47 of file CrossbarSwitch.cc.

◆ ~CrossbarSwitch()

gem5::ruby::garnet::CrossbarSwitch::~CrossbarSwitch ( )
default

Member Function Documentation

◆ functionalWrite()

uint32_t gem5::ruby::garnet::CrossbarSwitch::functionalWrite ( Packet pkt)

Definition at line 95 of file CrossbarSwitch.cc.

References switchBuffers.

Referenced by gem5::ruby::garnet::Router::functionalWrite().

◆ get_crossbar_activity()

double gem5::ruby::garnet::CrossbarSwitch::get_crossbar_activity ( )
inline

Definition at line 68 of file CrossbarSwitch.hh.

References m_crossbar_activity.

Referenced by gem5::ruby::garnet::Router::collateStats().

◆ init()

void gem5::ruby::garnet::CrossbarSwitch::init ( )

◆ print()

void gem5::ruby::garnet::CrossbarSwitch::print ( std::ostream &  out) const
inlinevirtual

Implements gem5::ruby::Consumer.

Definition at line 60 of file CrossbarSwitch.hh.

◆ resetStats()

void gem5::ruby::garnet::CrossbarSwitch::resetStats ( )

Definition at line 107 of file CrossbarSwitch.cc.

References m_crossbar_activity.

Referenced by gem5::ruby::garnet::Router::resetStats().

◆ update_sw_winner()

void gem5::ruby::garnet::CrossbarSwitch::update_sw_winner ( int  inport,
flit t_flit 
)
inline

Definition at line 63 of file CrossbarSwitch.hh.

References switchBuffers.

Referenced by gem5::ruby::garnet::Router::grant_switch().

◆ wakeup()

void gem5::ruby::garnet::CrossbarSwitch::wakeup ( )
virtual

Member Data Documentation

◆ m_crossbar_activity

double gem5::ruby::garnet::CrossbarSwitch::m_crossbar_activity
private

Definition at line 76 of file CrossbarSwitch.hh.

Referenced by get_crossbar_activity(), resetStats(), and wakeup().

◆ m_num_vcs

int gem5::ruby::garnet::CrossbarSwitch::m_num_vcs
private

Definition at line 75 of file CrossbarSwitch.hh.

◆ m_router

Router* gem5::ruby::garnet::CrossbarSwitch::m_router
private

Definition at line 74 of file CrossbarSwitch.hh.

Referenced by init(), and wakeup().

◆ switchBuffers

std::vector<flitBuffer> gem5::ruby::garnet::CrossbarSwitch::switchBuffers
private

Definition at line 77 of file CrossbarSwitch.hh.

Referenced by functionalWrite(), init(), update_sw_winner(), and wakeup().


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

Generated on Tue Sep 21 2021 12:32:10 for gem5 by doxygen 1.8.17