gem5
v20.1.0.0
|
#include <flit.hh>
Public Member Functions | |
flit () | |
flit (int id, int vc, int vnet, RouteInfo route, int size, MsgPtr msg_ptr, int MsgSize, uint32_t bWidth, Tick curTime) | |
virtual | ~flit () |
int | get_outport () |
int | get_size () |
Tick | get_enqueue_time () |
Tick | get_dequeue_time () |
int | get_id () |
Tick | get_time () |
int | get_vnet () |
int | get_vc () |
RouteInfo | get_route () |
MsgPtr & | get_msg_ptr () |
flit_type | get_type () |
std::pair< flit_stage, Tick > | get_stage () |
Tick | get_src_delay () |
void | set_outport (int port) |
void | set_time (Tick time) |
void | set_vc (int vc) |
void | set_route (RouteInfo route) |
void | set_src_delay (Tick delay) |
void | set_dequeue_time (Tick time) |
void | set_enqueue_time (Tick time) |
void | increment_hops () |
virtual void | print (std::ostream &out) const |
bool | is_stage (flit_stage stage, Tick time) |
void | advance_stage (flit_stage t_stage, Tick newTime) |
bool | functionalWrite (Packet *pkt) |
virtual flit * | serialize (int ser_id, int parts, uint32_t bWidth) |
virtual flit * | deserialize (int des_id, int num_flits, uint32_t bWidth) |
Static Public Member Functions | |
static bool | greater (flit *n1, flit *n2) |
Public Attributes | |
uint32_t | m_width |
int | msgSize |
Protected Attributes | |
int | m_id |
int | m_vnet |
int | m_vc |
RouteInfo | m_route |
int | m_size |
Tick | m_enqueue_time |
Tick | m_dequeue_time |
Tick | m_time |
flit_type | m_type |
MsgPtr | m_msg_ptr |
int | m_outport |
Tick | src_delay |
std::pair< flit_stage, Tick > | m_stage |
|
inline |
Definition at line 44 of file flit.hh.
Referenced by deserialize(), and serialize().
|
inline |
Definition at line 83 of file flit.hh.
References m_stage.
Referenced by SwitchAllocator::arbitrate_outports(), CrossbarSwitch::wakeup(), and InputUnit::wakeup().
|
virtual |
Reimplemented in Credit.
Definition at line 84 of file flit.cc.
References divCeil(), flit(), m_enqueue_time, m_id, m_msg_ptr, m_route, m_time, m_vc, m_vnet, m_width, msgSize, set_enqueue_time(), set_src_delay(), and src_delay.
Referenced by NetworkBridge::flitisizeAndSend().
bool flit::functionalWrite | ( | Packet * | pkt | ) |
Definition at line 118 of file flit.cc.
References Message::functionalWrite(), and m_msg_ptr.
|
inline |
Definition at line 53 of file flit.hh.
References m_dequeue_time.
Referenced by NetworkInterface::incrementStats().
|
inline |
Definition at line 52 of file flit.hh.
References m_enqueue_time.
Referenced by NetworkInterface::incrementStats().
|
inline |
Definition at line 54 of file flit.hh.
References m_id.
Referenced by NetworkBridge::flitisizeAndSend(), and greater().
|
inline |
Definition at line 59 of file flit.hh.
References m_msg_ptr.
Referenced by NetworkInterface::checkStallQueue(), NetworkInterface::scheduleFlit(), and NetworkInterface::wakeup().
|
inline |
Definition at line 50 of file flit.hh.
References m_outport.
Referenced by CrossbarSwitch::wakeup().
|
inline |
Definition at line 58 of file flit.hh.
References m_route.
Referenced by NetworkInterface::incrementStats(), and InputUnit::wakeup().
|
inline |
Definition at line 62 of file flit.hh.
References src_delay.
Referenced by NetworkInterface::incrementStats().
|
inline |
|
inline |
Definition at line 55 of file flit.hh.
References m_time.
Referenced by greater(), and flitBuffer::isReady().
|
inline |
Definition at line 60 of file flit.hh.
References m_type.
Referenced by SwitchAllocator::arbitrate_outports(), NetworkBridge::flitisizeAndSend(), NetworkInterface::incrementStats(), NetworkInterface::scheduleOutputPort(), InputUnit::wakeup(), and NetworkInterface::wakeup().
|
inline |
Definition at line 57 of file flit.hh.
References m_vc.
Referenced by NetworkInterface::checkStallQueue(), NetworkBridge::flitisizeAndSend(), InputUnit::wakeup(), OutputUnit::wakeup(), NetworkLink::wakeup(), and NetworkInterface::wakeup().
|
inline |
Definition at line 56 of file flit.hh.
References m_vnet.
Referenced by NetworkInterface::checkStallQueue(), NetworkInterface::incrementStats(), NetworkInterface::scheduleFlit(), NetworkLink::wakeup(), and NetworkInterface::wakeup().
Definition at line 90 of file flit.hh.
References get_id(), and get_time().
Referenced by flitBuffer::getTopFlit(), and flitBuffer::insert().
|
inline |
Definition at line 72 of file flit.hh.
References RouteInfo::hops_traversed, and m_route.
Referenced by InputUnit::wakeup().
|
inline |
Definition at line 76 of file flit.hh.
References m_stage.
Referenced by VirtualChannel::need_stage(), and CrossbarSwitch::wakeup().
|
virtual |
Reimplemented in Credit.
Definition at line 100 of file flit.cc.
References RouteInfo::dest_ni, RouteInfo::dest_router, m_id, m_route, m_size, m_time, m_type, m_vc, m_vnet, m_width, RouteInfo::src_ni, and RouteInfo::src_router.
Referenced by operator<<().
|
virtual |
Reimplemented in Credit.
Definition at line 67 of file flit.cc.
References divCeil(), flit(), m_enqueue_time, m_id, m_msg_ptr, m_route, m_time, m_vc, m_vnet, m_width, msgSize, set_enqueue_time(), set_src_delay(), and src_delay.
Referenced by NetworkBridge::flitisizeAndSend().
|
inline |
Definition at line 69 of file flit.hh.
References m_dequeue_time.
Referenced by NetworkInterface::wakeup().
|
inline |
Definition at line 70 of file flit.hh.
References m_enqueue_time.
Referenced by deserialize(), and serialize().
|
inline |
Definition at line 64 of file flit.hh.
References m_outport.
Referenced by SwitchAllocator::arbitrate_outports().
|
inline |
|
inline |
Definition at line 68 of file flit.hh.
References src_delay.
Referenced by deserialize(), NetworkInterface::flitisizeMessage(), and serialize().
|
inline |
Definition at line 65 of file flit.hh.
References m_time.
Referenced by NetworkBridge::scheduleFlit(), NetworkInterface::scheduleOutputPort(), CrossbarSwitch::wakeup(), and NetworkLink::wakeup().
|
inline |
Definition at line 66 of file flit.hh.
References m_vc.
Referenced by SwitchAllocator::arbitrate_outports().
|
protected |
Definition at line 113 of file flit.hh.
Referenced by flit(), get_dequeue_time(), and set_dequeue_time().
|
protected |
Definition at line 113 of file flit.hh.
Referenced by deserialize(), flit(), get_enqueue_time(), serialize(), and set_enqueue_time().
|
protected |
Definition at line 108 of file flit.hh.
Referenced by deserialize(), flit(), get_id(), print(), and serialize().
|
protected |
Definition at line 116 of file flit.hh.
Referenced by deserialize(), flit(), functionalWrite(), get_msg_ptr(), and serialize().
|
protected |
Definition at line 117 of file flit.hh.
Referenced by get_outport(), and set_outport().
|
protected |
Definition at line 111 of file flit.hh.
Referenced by deserialize(), flit(), get_route(), increment_hops(), print(), serialize(), and set_route().
|
protected |
Definition at line 112 of file flit.hh.
Referenced by flit(), get_size(), and print().
|
protected |
Definition at line 119 of file flit.hh.
Referenced by advance_stage(), flit(), get_stage(), and is_stage().
|
protected |
Definition at line 114 of file flit.hh.
Referenced by Credit::deserialize(), deserialize(), flit(), get_time(), Credit::print(), print(), Credit::serialize(), serialize(), and set_time().
|
protected |
Definition at line 115 of file flit.hh.
Referenced by Credit::Credit(), flit(), get_type(), Credit::print(), and print().
|
protected |
Definition at line 110 of file flit.hh.
Referenced by Credit::deserialize(), deserialize(), flit(), get_vc(), Credit::print(), print(), Credit::serialize(), serialize(), and set_vc().
|
protected |
Definition at line 109 of file flit.hh.
Referenced by deserialize(), flit(), get_vnet(), print(), and serialize().
uint32_t flit::m_width |
Definition at line 105 of file flit.hh.
Referenced by deserialize(), flit(), print(), serialize(), InputUnit::wakeup(), NetworkLink::wakeup(), and NetworkInterface::wakeup().
int flit::msgSize |
Definition at line 106 of file flit.hh.
Referenced by deserialize(), flit(), NetworkBridge::flitisizeAndSend(), and serialize().
|
protected |
Definition at line 118 of file flit.hh.
Referenced by deserialize(), get_src_delay(), serialize(), and set_src_delay().