src/mem/ruby/network/simple/SimpleNetwork.cc
// From a switch to an endpoint node
From a switch to an endpoint node
From a switch to an endpoint node
void
SimpleNetwork::makeExtOutLink(SwitchID src, NodeID global_dest,
                              BasicLink* link,
                              std::vector<NetDest>& routing_table_entry)
{
    NodeID local_dest = getLocalNodeID(global_dest);
    assert(local_dest < m_nodes);
    assert(src < m_switches.size());
    assert(m_switches[src] != NULL);
    SimpleExtLink *simple_link = safe_cast<SimpleExtLink*>(link);
    m_switches[src]->addOutPort(m_fromNetQueues[local_dest],
                                routing_table_entry[0], simple_link->m_latency,
                                simple_link->m_bw_multiplier);
}
void SimpleNetwork :: makeExtOutLink ( SwitchID src , NodeID global_dest , BasicLink * link , std :: vector < NetDest > & routing_table_entry ) { NodeID local_dest = getLocalNodeID ( global_dest ) ; assert ( local_dest < m_nodes ) ; assert ( src < m_switches . size ( ) ) ; assert ( m_switches [ src ] != NULL ) ; SimpleExtLink * simple_link = safe_cast < SimpleExtLink * > ( link ) ; m_switches [ src ] -> addOutPort ( m_fromNetQueues [ local_dest ] , routing_table_entry [ 0 ] , simple_link -> m_latency , simple_link -> m_bw_multiplier ) ; }
From a switch to an endpoint node
From a switch to an endpoint node