gem5
|
#include <CrossbarSwitch.hh>
Public Member Functions | |
CrossbarSwitch (Router *router) | |
~CrossbarSwitch () | |
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) |
Public Member Functions inherited from Consumer | |
Consumer (ClockedObject *_em) | |
virtual | ~Consumer () |
virtual void | storeEventInfo (int info) |
bool | alreadyScheduled (Tick time) |
void | insertScheduledWakeupTime (Tick time) |
void | scheduleEventAbsolute (Tick timeAbs) |
Private Attributes | |
int | m_num_vcs |
int | m_num_inports |
double | m_crossbar_activity |
Router * | m_router |
std::vector< flitBuffer * > | m_switch_buffer |
std::vector< OutputUnit * > | m_output_unit |
Additional Inherited Members | |
Protected Member Functions inherited from Consumer | |
void | scheduleEvent (Cycles timeDelta) |
Definition at line 47 of file CrossbarSwitch.hh.
CrossbarSwitch::CrossbarSwitch | ( | Router * | router | ) |
Definition at line 43 of file CrossbarSwitch.cc.
References Router::get_num_vcs(), m_crossbar_activity, m_num_vcs, and m_router.
CrossbarSwitch::~CrossbarSwitch | ( | ) |
Definition at line 51 of file CrossbarSwitch.cc.
References m5::stl_helpers::deletePointers(), and m_switch_buffer.
uint32_t CrossbarSwitch::functionalWrite | ( | Packet * | pkt | ) |
Definition at line 103 of file CrossbarSwitch.cc.
References ArmISA::i, and m_switch_buffer.
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 57 of file CrossbarSwitch.cc.
References Router::get_num_inports(), Router::get_outputUnit_ref(), ArmISA::i, m_num_inports, m_output_unit, m_router, and m_switch_buffer.
Referenced by Router::init().
|
inlinevirtual |
Implements Consumer.
Definition at line 54 of file CrossbarSwitch.hh.
|
inline |
Definition at line 56 of file CrossbarSwitch.hh.
References m_switch_buffer.
Referenced by Router::grant_switch().
|
virtual |
Implements Consumer.
Definition at line 75 of file CrossbarSwitch.cc.
References flit::advance_stage(), Clocked::curCycle(), DPRINTF, Router::get_id(), flit::get_outport(), flit::is_stage(), LT_, m_crossbar_activity, m_num_inports, m_output_unit, m_router, m_switch_buffer, flit::set_time(), and ST_.
Referenced by Router::wakeup().
|
private |
Definition at line 66 of file CrossbarSwitch.hh.
Referenced by CrossbarSwitch(), get_crossbar_activity(), and wakeup().
|
private |
Definition at line 65 of file CrossbarSwitch.hh.
|
private |
Definition at line 64 of file CrossbarSwitch.hh.
Referenced by CrossbarSwitch().
|
private |
Definition at line 69 of file CrossbarSwitch.hh.
|
private |
Definition at line 67 of file CrossbarSwitch.hh.
Referenced by CrossbarSwitch(), init(), and wakeup().
|
private |
Definition at line 68 of file CrossbarSwitch.hh.
Referenced by functionalWrite(), init(), update_sw_winner(), wakeup(), and ~CrossbarSwitch().