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

#include <CrossbarSwitch.hh>

Inheritance diagram for CrossbarSwitch:

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 Consumer
 Consumer (ClockedObject *_em)
virtual ~Consumer ()
virtual void storeEventInfo (int info)
bool alreadyScheduled (Tick time)
void insertScheduledWakeupTime (Tick time)
ClockedObjectgetObject ()
void scheduleEventAbsolute (Tick timeAbs)
void scheduleEvent (Cycles timeDelta)

Private Attributes

int m_num_vcs
double m_crossbar_activity
std::vector< flitBufferswitchBuffers

Detailed Description

Definition at line 44 of file CrossbarSwitch.hh.

Constructor & Destructor Documentation

◆ CrossbarSwitch()

CrossbarSwitch::CrossbarSwitch ( Router router)

Definition at line 38 of file

◆ ~CrossbarSwitch()

CrossbarSwitch::~CrossbarSwitch ( )

Member Function Documentation

◆ functionalWrite()

uint32_t CrossbarSwitch::functionalWrite ( Packet pkt)

Definition at line 86 of file

References switchBuffers.

Referenced by Router::functionalWrite().

◆ get_crossbar_activity()

double CrossbarSwitch::get_crossbar_activity ( )

Definition at line 59 of file CrossbarSwitch.hh.

References m_crossbar_activity.

Referenced by Router::collateStats().

◆ init()

void CrossbarSwitch::init ( )

Definition at line 45 of file

References Router::get_num_inports(), m_router, and switchBuffers.

Referenced by Router::init().

◆ print()

void CrossbarSwitch::print ( std::ostream &  out) const

Implements Consumer.

Definition at line 51 of file CrossbarSwitch.hh.

◆ resetStats()

void CrossbarSwitch::resetStats ( )

Definition at line 98 of file

References m_crossbar_activity.

Referenced by Router::resetStats().

◆ update_sw_winner()

void CrossbarSwitch::update_sw_winner ( int  inport,
flit t_flit 

Definition at line 54 of file CrossbarSwitch.hh.

References switchBuffers.

Referenced by Router::grant_switch().

◆ wakeup()

void CrossbarSwitch::wakeup ( )

Member Data Documentation

◆ m_crossbar_activity

double CrossbarSwitch::m_crossbar_activity

Definition at line 67 of file CrossbarSwitch.hh.

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

◆ m_num_vcs

int CrossbarSwitch::m_num_vcs

Definition at line 66 of file CrossbarSwitch.hh.

◆ m_router

Router* CrossbarSwitch::m_router

Definition at line 65 of file CrossbarSwitch.hh.

Referenced by init(), and wakeup().

◆ switchBuffers

std::vector<flitBuffer> CrossbarSwitch::switchBuffers

Definition at line 68 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 Wed Sep 30 2020 14:02:23 for gem5 by doxygen 1.8.17