gem5
v20.1.0.0
|
#include <InputUnit.hh>
Public Member Functions | |
InputUnit (int id, PortDirection direction, Router *router) | |
~InputUnit ()=default | |
void | wakeup () |
void | print (std::ostream &out) const |
PortDirection | get_direction () |
void | set_vc_idle (int vc, Tick curTime) |
void | set_vc_active (int vc, Tick curTime) |
void | grant_outport (int vc, int outport) |
void | grant_outvc (int vc, int outvc) |
int | get_outport (int invc) |
int | get_outvc (int invc) |
Tick | get_enqueue_time (int invc) |
void | increment_credit (int in_vc, bool free_signal, Tick curTime) |
flit * | peekTopFlit (int vc) |
flit * | getTopFlit (int vc) |
bool | need_stage (int vc, flit_stage stage, Tick time) |
bool | isReady (int invc, Tick curTime) |
flitBuffer * | getCreditQueue () |
void | set_in_link (NetworkLink *link) |
int | get_inlink_id () |
void | set_credit_link (CreditLink *credit_link) |
double | get_buf_read_activity (unsigned int vnet) const |
double | get_buf_write_activity (unsigned int vnet) const |
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_id |
PortDirection | m_direction |
int | m_vc_per_vnet |
NetworkLink * | m_in_link |
CreditLink * | m_credit_link |
flitBuffer | creditQueue |
std::vector< VirtualChannel > | virtualChannels |
std::vector< double > | m_num_buffer_writes |
std::vector< double > | m_num_buffer_reads |
Definition at line 46 of file InputUnit.hh.
InputUnit::InputUnit | ( | int | id, |
PortDirection | direction, | ||
Router * | router | ||
) |
Definition at line 40 of file InputUnit.cc.
References Router::get_num_vcs(), ArmISA::i, m_num_buffer_reads, m_num_buffer_writes, m_router, m_vc_per_vnet, and virtualChannels.
|
default |
uint32_t InputUnit::functionalWrite | ( | Packet * | pkt | ) |
Definition at line 149 of file InputUnit.cc.
References virtualChannels.
|
inline |
Definition at line 141 of file InputUnit.hh.
References m_num_buffer_reads.
|
inline |
Definition at line 143 of file InputUnit.hh.
References m_num_buffer_writes.
|
inline |
Definition at line 55 of file InputUnit.hh.
References m_direction.
|
inline |
Definition at line 94 of file InputUnit.hh.
References virtualChannels.
Referenced by SwitchAllocator::send_allowed().
|
inline |
Definition at line 133 of file InputUnit.hh.
References NetworkLink::get_id(), and m_in_link.
|
inline |
Definition at line 82 of file InputUnit.hh.
References virtualChannels.
Referenced by SwitchAllocator::arbitrate_inports().
|
inline |
Definition at line 88 of file InputUnit.hh.
References virtualChannels.
|
inline |
Definition at line 125 of file InputUnit.hh.
References creditQueue.
Referenced by Router::addInPort().
|
inline |
Definition at line 108 of file InputUnit.hh.
References virtualChannels.
|
inline |
|
inline |
Definition at line 76 of file InputUnit.hh.
References virtualChannels.
Referenced by SwitchAllocator::vc_allocate().
void InputUnit::increment_credit | ( | int | in_vc, |
bool | free_signal, | ||
Tick | curTime | ||
) |
Definition at line 138 of file InputUnit.cc.
References Clocked::clockEdge(), creditQueue, DPRINTF, Router::get_id(), flitBuffer::insert(), m_credit_link, m_router, SimObject::name(), and Consumer::scheduleEventAbsolute().
|
inline |
Definition at line 120 of file InputUnit.hh.
References virtualChannels.
|
inline |
Definition at line 114 of file InputUnit.hh.
References virtualChannels.
Referenced by SwitchAllocator::check_for_wakeup().
|
inline |
Definition at line 102 of file InputUnit.hh.
References virtualChannels.
|
inlinevirtual |
Implements Consumer.
Definition at line 53 of file InputUnit.hh.
void InputUnit::resetStats | ( | ) |
Definition at line 160 of file InputUnit.cc.
References ArmISA::j, m_num_buffer_reads, and m_num_buffer_writes.
|
inline |
Definition at line 136 of file InputUnit.hh.
References m_credit_link.
Referenced by Router::addInPort().
|
inline |
Definition at line 128 of file InputUnit.hh.
References m_in_link.
Referenced by Router::addInPort().
|
inline |
|
inline |
Definition at line 58 of file InputUnit.hh.
References virtualChannels.
|
virtual |
Implements Consumer.
Definition at line 70 of file InputUnit.cc.
References ACTIVE_, flit::advance_stage(), Clocked::clockEdge(), NetworkLink::consumeLink(), curTick(), DPRINTF, Router::get_id(), Router::get_pipe_stages(), flit::get_route(), flit::get_type(), flit::get_vc(), Router::getBitWidth(), grant_outport(), HEAD_, HEAD_TAIL_, IDLE_, flit::increment_hops(), NetworkLink::isReady(), m_direction, m_id, m_in_link, m_num_buffer_reads, m_num_buffer_writes, m_router, m_vc_per_vnet, flit::m_width, SimObject::name(), Router::route_compute(), SA_, Router::schedule_wakeup(), set_vc_active(), and virtualChannels.
|
private |
Definition at line 156 of file InputUnit.hh.
Referenced by getCreditQueue(), and increment_credit().
|
private |
Definition at line 155 of file InputUnit.hh.
Referenced by increment_credit(), and set_credit_link().
|
private |
Definition at line 152 of file InputUnit.hh.
Referenced by get_direction(), and wakeup().
|
private |
Definition at line 151 of file InputUnit.hh.
Referenced by wakeup().
|
private |
Definition at line 154 of file InputUnit.hh.
Referenced by get_inlink_id(), set_in_link(), and wakeup().
|
private |
Definition at line 163 of file InputUnit.hh.
Referenced by get_buf_read_activity(), InputUnit(), resetStats(), and wakeup().
|
private |
Definition at line 162 of file InputUnit.hh.
Referenced by get_buf_write_activity(), InputUnit(), resetStats(), and wakeup().
|
private |
Definition at line 150 of file InputUnit.hh.
Referenced by increment_credit(), InputUnit(), and wakeup().
|
private |
Definition at line 153 of file InputUnit.hh.
Referenced by InputUnit(), and wakeup().
|
private |
Definition at line 159 of file InputUnit.hh.
Referenced by functionalWrite(), get_enqueue_time(), get_outport(), get_outvc(), getTopFlit(), grant_outport(), grant_outvc(), InputUnit(), isReady(), need_stage(), peekTopFlit(), set_vc_active(), set_vc_idle(), and wakeup().