@@ -47,8 +47,8 @@ static void load_chan_rr_indices(const int max_chan_width,
47
47
*/
48
48
static void load_block_rr_indices (RRGraphBuilder& rr_graph_builder,
49
49
const DeviceGrid& grid,
50
- int * index,
51
- bool is_flat);
50
+ int * index);
51
+
52
52
53
53
static void add_pins_spatial_lookup (RRGraphBuilder& rr_graph_builder,
54
54
t_physical_tile_type_ptr physical_type_ptr,
@@ -1091,6 +1091,7 @@ void dump_track_to_pin_map(t_track_to_pin_lookup& track_to_pin_map,
1091
1091
}
1092
1092
}
1093
1093
}
1094
+
1094
1095
static void load_chan_rr_indices (const int max_chan_width,
1095
1096
const DeviceGrid& grid,
1096
1097
const int chan_len,
@@ -1106,11 +1107,12 @@ static void load_chan_rr_indices(const int max_chan_width,
1106
1107
if (!device_ctx.inter_cluster_prog_routing_resources .at (layer)) {
1107
1108
continue ;
1108
1109
}
1110
+
1109
1111
for (int chan = 0 ; chan < num_chans - 1 ; ++chan) {
1110
1112
for (int seg = 1 ; seg < chan_len - 1 ; ++seg) {
1111
1113
/* Assign an inode to the starts of tracks */
1112
- int x = ( type == e_rr_type::CHANX ? seg : chan) ;
1113
- int y = ( type == e_rr_type::CHANX ? chan : seg) ;
1114
+ int x = type == e_rr_type::CHANX ? seg : chan;
1115
+ int y = type == e_rr_type::CHANX ? chan : seg;
1114
1116
const t_chan_seg_details* seg_details = chan_details[x][y].data ();
1115
1117
1116
1118
/* Reserve nodes in lookup to save memory */
@@ -1130,8 +1132,7 @@ static void load_chan_rr_indices(const int max_chan_width,
1130
1132
std::swap (node_x, node_y);
1131
1133
}
1132
1134
1133
- /* If the start of the wire doesn't have an inode,
1134
- * assign one to it. */
1135
+ // If the start of the wire doesn't have an inode, assign one to it.
1135
1136
RRNodeId inode = rr_graph_builder.node_lookup ().find_node (layer, node_x, node_y, type, track);
1136
1137
if (!inode) {
1137
1138
inode = RRNodeId (*index );
@@ -1268,8 +1269,7 @@ void alloc_and_load_inter_die_rr_node_indices(RRGraphBuilder& rr_graph_builder,
1268
1269
*/
1269
1270
static void load_block_rr_indices (RRGraphBuilder& rr_graph_builder,
1270
1271
const DeviceGrid& grid,
1271
- int * index,
1272
- bool /* is_flat*/ ) {
1272
+ int * index) {
1273
1273
// Walk through the grid assigning indices to SOURCE/SINK IPIN/OPIN
1274
1274
for (int layer = 0 ; layer < grid.get_num_layers (); layer++) {
1275
1275
for (int x = 0 ; x < (int )grid.width (); x++) {
@@ -1457,20 +1457,14 @@ void alloc_and_load_rr_node_indices(RRGraphBuilder& rr_graph_builder,
1457
1457
const DeviceGrid& grid,
1458
1458
int * index,
1459
1459
const t_chan_details& chan_details_x,
1460
- const t_chan_details& chan_details_y,
1461
- bool is_flat) {
1462
-
1460
+ const t_chan_details& chan_details_y) {
1463
1461
/* Alloc the lookup table */
1464
1462
for (e_rr_type rr_type : RR_TYPES) {
1465
- if (rr_type == e_rr_type::CHANX) {
1466
- rr_graph_builder.node_lookup ().resize_nodes (grid.get_num_layers (), grid.height (), grid.width (), rr_type, NUM_2D_SIDES);
1467
- } else {
1468
- rr_graph_builder.node_lookup ().resize_nodes (grid.get_num_layers (), grid.width (), grid.height (), rr_type, NUM_2D_SIDES);
1469
- }
1463
+ rr_graph_builder.node_lookup ().resize_nodes (grid.get_num_layers (), grid.width (), grid.height (), rr_type, NUM_2D_SIDES);
1470
1464
}
1471
1465
1472
1466
/* Assign indices for block nodes */
1473
- load_block_rr_indices (rr_graph_builder, grid, index , is_flat );
1467
+ load_block_rr_indices (rr_graph_builder, grid, index );
1474
1468
1475
1469
/* Load the data for x and y channels */
1476
1470
load_chan_rr_indices (nodes_per_chan.x_max , grid, grid.width (), grid.height (),
0 commit comments