macsim/src/noc/pnbe1.c
// signals the node south of the given node
signals the node south of the given node
signals the node south of the given node
void pnbe1_signalSouthernNode(node_t *node){
	if(node->rank > conf_max_rank - conf_noc_width - 1){
		((pnbe1_context_t *)nodes[node->rank % conf_noc_width]->noc_context)->isSignaledNorth = true;
		debug(log_intercon,"Node %lu signaling %lu\n",node->rank, node->rank % conf_noc_width);
	}
	else{
		((pnbe1_context_t *)nodes[node->rank + conf_noc_width]->noc_context)->isSignaledNorth = true;
		debug(log_intercon,"Node %lu signaling %lu\n",node->rank, node->rank + conf_noc_width);
	}
}
void pnbe1_signalSouthernNode ( node_t * node ) { if ( node -> rank > conf_max_rank - conf_noc_width - 1 ) { ( ( pnbe1_context_t * ) nodes [ node -> rank % conf_noc_width ] -> noc_context ) -> isSignaledNorth = true ; debug ( log_intercon , " \n " , node -> rank , node -> rank % conf_noc_width ) ; } else { ( ( pnbe1_context_t * ) nodes [ node -> rank + conf_noc_width ] -> noc_context ) -> isSignaledNorth = true ; debug ( log_intercon , " \n " , node -> rank , node -> rank + conf_noc_width ) ; } }
signals the node south of the given node
signals the node south of the given node