src/mem/ruby/network/garnet/InputUnit.cc
// Send a credit back to upstream router for this VC.
// Called by SwitchAllocator when the flit in this VC wins the Switch.
Send a credit back to upstream router for this VC.
Called by SwitchAllocator when the flit in this VC wins the Switch.
Send a credit back to upstream router for this VC . Called by SwitchAllocator when the flit in this VC wins the Switch .
void
InputUnit::increment_credit(int in_vc, bool free_signal, Tick curTime)
{
    DPRINTF(RubyNetwork, "Router[%d]: Sending a credit vc:%d free:%d to %s\n",
    m_router->get_id(), in_vc, free_signal, m_credit_link->name());
    Credit *t_credit = new Credit(in_vc, free_signal, curTime);
    creditQueue.insert(t_credit);
    m_credit_link->scheduleEventAbsolute(m_router->clockEdge(Cycles(1)));
}
void InputUnit :: increment_credit ( int in_vc , bool free_signal , Tick curTime ) { DPRINTF ( RubyNetwork , " \n " , m_router -> get_id ( ) , in_vc , free_signal , m_credit_link -> name ( ) ) ; Credit * t_credit = new Credit ( in_vc , free_signal , curTime ) ; creditQueue . insert ( t_credit ) ; m_credit_link -> scheduleEventAbsolute ( m_router -> clockEdge ( Cycles ( 1 ) ) ) ; }
Send a credit back to upstream router for this VC.
Send a credit back to upstream router for this VC .