Commit 5632adf2 authored by Misbah Mubarak's avatar Misbah Mubarak

showing correct intra-grp router radix

parent 40354023
......@@ -25,12 +25,12 @@
#include <cortex/topology.h>
#endif
#define DUMP_CONNECTIONS 0
#define DUMP_CONNECTIONS 1
#define CREDIT_SIZE 8
#define DFLY_HASH_TABLE_SIZE 4999
// debugging parameters
#define DEBUG_LP 892
#define T_ID -1
#define T_ID 10
#define TRACK -1
#define TRACK_PKT 0
#define TRACK_MSG -1
......@@ -674,7 +674,7 @@ else
printf("\n Number of global channels per router not specified, setting to 10 ");
p->num_global_channels = 10;
}
p->radix = (p->num_router_cols * p->num_row_chans) + (p->num_col_chans * p->num_router_rows) + p->num_global_channels + p->num_cn;
p->radix = p->intra_grp_radix + p->num_global_channels + p->num_cn;
p->total_routers = p->num_groups * p->num_routers;
p->total_terminals = p->total_routers * p->num_cn;
......@@ -3197,7 +3197,7 @@ router_packet_send( router_state * s,
if (to_terminal) {
// printf("\n next stop %d dest term id %d ", cur_entry->msg.next_stop, cur_entry->msg.dest_terminal_id);
if(cur_entry->msg.next_stop != cur_entry->msg.dest_terminal_id)
printf("\n intra-group radix %d output port %d ", s->params->intra_grp_radix, output_port);
printf("\n intra-group radix %d output port %d next stop %d", s->params->intra_grp_radix, output_port, cur_entry->msg.next_stop);
assert(cur_entry->msg.next_stop == cur_entry->msg.dest_terminal_id);
e = model_net_method_event_new(cur_entry->msg.next_stop,
s->next_output_available_time[output_port] - tw_now(lp), lp,
......
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