Commit ea0e9d76 authored by Noah Wolfe's avatar Noah Wolfe
Browse files

Fixing slimfly vc_occupancy in router_buf_update forward and reverse

parent 86def1aa
...@@ -3258,7 +3258,7 @@ void slim_router_buf_update_rc(router_state * s, ...@@ -3258,7 +3258,7 @@ void slim_router_buf_update_rc(router_state * s,
tw_rand_reverse_unif(lp->rng); tw_rand_reverse_unif(lp->rng);
prepend_to_terminal_message_list(s->queued_msgs[indx], prepend_to_terminal_message_list(s->queued_msgs[indx],
s->queued_msgs_tail[indx], output_chan, head); s->queued_msgs_tail[indx], output_chan, head);
s->vc_occupancy[indx][output_chan] -= s->params->chunk_size; s->vc_occupancy[indx][output_chan] += s->params->chunk_size;
} }
if(bf->c2) { if(bf->c2) {
codes_local_latency_reverse(lp); codes_local_latency_reverse(lp);
...@@ -3292,7 +3292,7 @@ void slim_router_buf_update(router_state * s, tw_bf * bf, slim_terminal_message ...@@ -3292,7 +3292,7 @@ void slim_router_buf_update(router_state * s, tw_bf * bf, slim_terminal_message
slim_router_credit_send(s, bf, &head->msg, lp, 1); slim_router_credit_send(s, bf, &head->msg, lp, 1);
append_to_terminal_message_list(s->pending_msgs[indx], append_to_terminal_message_list(s->pending_msgs[indx],
s->pending_msgs_tail[indx], output_chan, head); s->pending_msgs_tail[indx], output_chan, head);
s->vc_occupancy[indx][output_chan] += s->params->chunk_size; s->vc_occupancy[indx][output_chan] -= s->params->chunk_size;
#if ROUTER_OCCUPANCY_LOG #if ROUTER_OCCUPANCY_LOG
vc_occupancy_storage_router[s->router_id][indx][output_chan][index] = s->vc_occupancy[indx][output_chan]/s->params->chunk_size; vc_occupancy_storage_router[s->router_id][indx][output_chan][index] = s->vc_occupancy[indx][output_chan]/s->params->chunk_size;
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment