macsim/src/noc/pnbe0.c
// signals the node west of the given node
signals the node west of the given node
signals the node west of the given node
void signalWesternNode(node_t *node){
	if(node->rank%conf_noc_width == 0){
		((pnbe0_context_t *)nodes[node->rank + conf_noc_width - 1]->noc_context)->isSignaledEast = true;
		debug(log_intercon,"Node %lu signaling %lu\n", node->rank, node->rank + conf_noc_width - 1);
	}
	else{
		((pnbe0_context_t *)nodes[node->rank - 1]->noc_context)->isSignaledEast = true;
		debug(log_intercon,"Node %lu signaling %lu\n", node->rank, node->rank - 1);
	}
}
void signalWesternNode ( node_t * node ) { if ( node -> rank % conf_noc_width == 0 ) { ( ( pnbe0_context_t * ) nodes [ node -> rank + conf_noc_width - 1 ] -> noc_context ) -> isSignaledEast = true ; debug ( log_intercon , " \n " , node -> rank , node -> rank + conf_noc_width - 1 ) ; } else { ( ( pnbe0_context_t * ) nodes [ node -> rank - 1 ] -> noc_context ) -> isSignaledEast = true ; debug ( log_intercon , " \n " , node -> rank , node -> rank - 1 ) ; } }
signals the node west of the given node
signals the node west of the given node