gem5
v20.1.0.0
|
#include <CrossbarSwitch.hh>
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) |
ClockedObject * | getObject () |
void | scheduleEventAbsolute (Tick timeAbs) |
void | scheduleEvent (Cycles timeDelta) |
Private Attributes | |
Router * | m_router |
int | m_num_vcs |
double | m_crossbar_activity |
std::vector< flitBuffer > | switchBuffers |
Definition at line 44 of file CrossbarSwitch.hh.
CrossbarSwitch::CrossbarSwitch | ( | Router * | router | ) |
Definition at line 38 of file CrossbarSwitch.cc.
|
default |
uint32_t CrossbarSwitch::functionalWrite | ( | Packet * | pkt | ) |
Definition at line 86 of file CrossbarSwitch.cc.
References switchBuffers.
Referenced by Router::functionalWrite().
|
inline |
Definition at line 59 of file CrossbarSwitch.hh.
References m_crossbar_activity.
Referenced by Router::collateStats().
void CrossbarSwitch::init | ( | ) |
Definition at line 45 of file CrossbarSwitch.cc.
References Router::get_num_inports(), m_router, and switchBuffers.
Referenced by Router::init().
|
inlinevirtual |
Implements Consumer.
Definition at line 51 of file CrossbarSwitch.hh.
void CrossbarSwitch::resetStats | ( | ) |
Definition at line 98 of file CrossbarSwitch.cc.
References m_crossbar_activity.
Referenced by Router::resetStats().
|
inline |
Definition at line 54 of file CrossbarSwitch.hh.
References switchBuffers.
Referenced by Router::grant_switch().
|
virtual |
Implements Consumer.
Definition at line 57 of file CrossbarSwitch.cc.
References flit::advance_stage(), Clocked::clockEdge(), Clocked::curCycle(), curTick(), DPRINTF, Router::get_id(), flit::get_outport(), Router::getOutputUnit(), OutputUnit::insert_flit(), flit::is_stage(), LT_, m_crossbar_activity, m_router, flit::set_time(), ST_, and switchBuffers.
Referenced by Router::wakeup().
|
private |
Definition at line 67 of file CrossbarSwitch.hh.
Referenced by get_crossbar_activity(), resetStats(), and wakeup().
|
private |
Definition at line 66 of file CrossbarSwitch.hh.
|
private |
Definition at line 65 of file CrossbarSwitch.hh.
|
private |
Definition at line 68 of file CrossbarSwitch.hh.
Referenced by functionalWrite(), init(), update_sw_winner(), and wakeup().