macsim/src/node.c
// print the state of the NoC
print the state of the NoC
print the state of the NoC
void noc_print_context(node_t *nodes[], rank_t max_rank)
{
    switch(nodes[0]->noc_type) {
        case NT_pnjm0:          pnjm0_print_context(nodes, max_rank); break;
        case NT_pnconfig:       pnconfig_print_context(nodes, max_rank); break;
        case NT_minbd:          minbd_print_context(nodes, max_rank); break;
        case NT_manhattan:      manhattan_print_context(nodes, max_rank); break;
        default:
            user_printf("Not supported for this NoC\n");
    }
}
void noc_print_context ( node_t * nodes [ ] , rank_t max_rank ) { switch ( nodes [ 0 ] -> noc_type ) { case NT_pnjm0 : pnjm0_print_context ( nodes , max_rank ) ; break ; case NT_pnconfig : pnconfig_print_context ( nodes , max_rank ) ; break ; case NT_minbd : minbd_print_context ( nodes , max_rank ) ; break ; case NT_manhattan : manhattan_print_context ( nodes , max_rank ) ; break ; default : user_printf ( " \n " ) ; } }
print the state of the NoC
print the state of the NoC
// router type must be identical for all nodes