macsim/src/noc/pnbe0.c
// basically an extension of receive_packet since a flit is a packet
basically an extension of receive_packet since a flit is a packet
basically an extension of receive_packet since a flit is a packet
bool pnbe0_recv_flit(node_t *node, rank_t src, flit_t *flit)
{
    flit_container_t *fc = msgdeque_rank(&((pnbe0_context_t *)node->noc_context)->core_buffer, src);
    if(fc == NULL){		
        return false;
    }
    memcpy(flit, fc->payload, FLIT_LEN);
    free(fc);
    info(log_intercon,"Core %lu received flit in cycle %ld \n",node->rank,node->cycle);
    return true;
}
bool pnbe0_recv_flit ( node_t * node , rank_t src , flit_t * flit ) { flit_container_t * fc = msgdeque_rank ( & ( ( pnbe0_context_t * ) node -> noc_context ) -> core_buffer , src ) ; if ( fc == NULL ) { return false ; } memcpy ( flit , fc -> payload , FLIT_LEN ) ; free ( fc ) ; info ( log_intercon , " \n " , node -> rank , node -> cycle ) ; return true ; }
basically an extension of receive_packet since a flit is a packet
basically an extension of receive_packet since a flit is a packet
// printf("Core %lu cheking for flit\n",node->rank); // no flit from src found in buffer