macsim/src/noc/manhattan.c
// Receive a flit from a specified core
Receive a flit from a specified core
Receive a flit from a specified core
bool manhattan_recv_flit(node_t *node, rank_t src, flit_t *flit)
{
    flit_container2_t fc;
    bool r = fc_dequeue_src(&((manhattan_context_t *)node->noc_context)->
        arrived,  src, &fc);
    *flit = fc.flit;
    if (r) DEBUG("R %lu->%lu [%lx]\n", src, node->rank, *flit);
    return r;
}
bool manhattan_recv_flit ( node_t * node , rank_t src , flit_t * flit ) { flit_container2_t fc ; bool r = fc_dequeue_src ( & ( ( manhattan_context_t * ) node -> noc_context ) -> arrived , src , & fc ) ; * flit = fc . flit ; if ( r ) DEBUG ( " \n " , src , node -> rank , * flit ) ; return r ; }
Receive a flit from a specified core
Receive a flit from a specified core