@@ -140,7 +140,7 @@ static int get_track_to_chan_seg(RRGraphBuilder& rr_graph_builder,
140
140
*
141
141
* @return true if the connection going to another layer, false otherwise.
142
142
*/
143
- static bool is_sb_conn_layer_crossing (enum e_side src_side, enum e_side dest_side);
143
+ static bool is_sb_conn_layer_crossing (e_side src_side, e_side dest_side);
144
144
145
145
/* *
146
146
* @brief finds corresponding RR nodes for a 3D SB edge and fill 3D custom switch block information (offset to correct extra CHANX nodes, source tracks, ..)
@@ -1015,12 +1015,12 @@ void dump_track_to_pin_map(t_track_to_pin_lookup& track_to_pin_map,
1015
1015
auto & device_ctx = g_vpr_ctx.device ();
1016
1016
for (unsigned int i = 0 ; i < types.size (); i++) {
1017
1017
if (!track_to_pin_map[i].empty ()) {
1018
- for (int layer = 0 ; layer < device_ctx.grid .get_num_layers (); layer++) {
1018
+ for (size_t layer = 0 ; layer < device_ctx.grid .get_num_layers (); layer++) {
1019
1019
for (int track = 0 ; track < max_chan_width; ++track) {
1020
1020
for (int width = 0 ; width < types[i].width ; ++width) {
1021
1021
for (int height = 0 ; height < types[i].height ; ++height) {
1022
1022
for (int side = 0 ; side < 4 ; ++side) {
1023
- fprintf (fp, " \n TYPE:%s width:%d height:%d layer:%d \n " , types[i].name .c_str (), width, height, layer);
1023
+ fprintf (fp, " \n TYPE:%s width:%d height:%d layer:%lu \n " , types[i].name .c_str (), width, height, layer);
1024
1024
fprintf (fp, " \n SIDE:%d TRACK:%d \n " , side, track);
1025
1025
for (size_t con = 0 ; con < track_to_pin_map[i][track][width][height][layer][side].size (); con++) {
1026
1026
fprintf (fp, " %d " , track_to_pin_map[i][track][width][height][layer][side][con]);
@@ -1036,7 +1036,7 @@ void dump_track_to_pin_map(t_track_to_pin_lookup& track_to_pin_map,
1036
1036
}
1037
1037
}
1038
1038
1039
- static bool is_sb_conn_layer_crossing (enum e_side src_side, enum e_side dest_side) {
1039
+ static bool is_sb_conn_layer_crossing (e_side src_side, e_side dest_side) {
1040
1040
if (src_side < NUM_2D_SIDES && dest_side < NUM_2D_SIDES) {
1041
1041
return false ;
1042
1042
}
@@ -1075,7 +1075,7 @@ vtr::NdMatrix<int, 2> get_number_track_to_track_inter_die_conn(t_sb_connection_m
1075
1075
1076
1076
for (size_t y = 0 ; y < grid_ctx.height (); y++) {
1077
1077
for (size_t x = 0 ; x < grid_ctx.width (); x++) {
1078
- for (int layer = 0 ; layer < grid_ctx.get_num_layers (); layer++) {
1078
+ for (int layer = 0 ; layer < ( int ) grid_ctx.get_num_layers (); layer++) {
1079
1079
1080
1080
int num_of_3d_conn = 0 ;
1081
1081
for (e_side from_side : TOTAL_3D_SIDES) {
@@ -1158,9 +1158,9 @@ int get_track_to_pins(RRGraphBuilder& rr_graph_builder,
1158
1158
side = (0 == pass ? RIGHT : LEFT);
1159
1159
}
1160
1160
1161
- for (int layer_index = 0 ; layer_index < device_ctx.grid .get_num_layers (); layer_index++) {
1161
+ for (int layer_index = 0 ; layer_index < ( int ) device_ctx.grid .get_num_layers (); layer_index++) {
1162
1162
/* PAJ - if the pointed to is an EMPTY then shouldn't look for ipins */
1163
- auto type = device_ctx.grid .get_physical_type ({x, y, layer_index});
1163
+ t_physical_tile_type_ptr type = device_ctx.grid .get_physical_type ({x, y, layer_index});
1164
1164
if (type == device_ctx.EMPTY_PHYSICAL_TILE_TYPE )
1165
1165
continue ;
1166
1166
@@ -1570,8 +1570,8 @@ static void get_switchblocks_edges(RRGraphBuilder& rr_graph_builder,
1570
1570
VTR_ASSERT (to_layer != layer);
1571
1571
// Check if current connection is valid, since switch block pattern is very general,
1572
1572
// we might see invalid layer in connection, so we just skip those
1573
- if ((layer < 0 || layer >= device_ctx.grid .get_num_layers ())
1574
- || (to_layer < 0 || to_layer >= device_ctx.grid .get_num_layers ())) {
1573
+ if ((layer < 0 || layer >= ( int ) device_ctx.grid .get_num_layers ())
1574
+ || (to_layer < 0 || to_layer >= ( int ) device_ctx.grid .get_num_layers ())) {
1575
1575
continue ;
1576
1576
}
1577
1577
0 commit comments