@@ -157,15 +157,15 @@ static VibDeviceGrid build_vib_device_grid(const t_vib_grid_def& grid_def, size_
157
157
if (startx > grid_width - 1 ) {
158
158
if (warn_out_of_range) {
159
159
VTR_LOG_WARN (" Block type '%s' grid location specification startx (%s = %d) falls outside device horizontal range [%d,%d]\n " ,
160
- type->get_name (), xspec.start_expr .c_str (), startx, 0 , grid_width - 1 );
160
+ type->get_name (). c_str () , xspec.start_expr .c_str (), startx, 0 , grid_width - 1 );
161
161
}
162
162
continue ; // No instances will be created
163
163
}
164
164
165
165
if (starty > grid_height - 1 ) {
166
166
if (warn_out_of_range) {
167
167
VTR_LOG_WARN (" Block type '%s' grid location specification starty (%s = %d) falls outside device vertical range [%d,%d]\n " ,
168
- type->get_name (), yspec.start_expr .c_str (), starty, 0 , grid_height - 1 );
168
+ type->get_name (). c_str () , yspec.start_expr .c_str (), starty, 0 , grid_height - 1 );
169
169
}
170
170
continue ; // No instances will be created
171
171
}
@@ -174,14 +174,14 @@ static VibDeviceGrid build_vib_device_grid(const t_vib_grid_def& grid_def, size_
174
174
if (endx > grid_width - 1 ) {
175
175
if (warn_out_of_range) {
176
176
VTR_LOG_WARN (" Block type '%s' grid location specification endx (%s = %d) falls outside device horizontal range [%d,%d]\n " ,
177
- type->get_name (), xspec.end_expr .c_str (), endx, 0 , grid_width - 1 );
177
+ type->get_name (). c_str () , xspec.end_expr .c_str (), endx, 0 , grid_width - 1 );
178
178
}
179
179
}
180
180
181
181
if (endy > grid_height - 1 ) {
182
182
if (warn_out_of_range) {
183
183
VTR_LOG_WARN (" Block type '%s' grid location specification endy (%s = %d) falls outside device vertical range [%d,%d]\n " ,
184
- type->get_name (), yspec.end_expr .c_str (), endy, 0 , grid_height - 1 );
184
+ type->get_name (). c_str () , yspec.end_expr .c_str (), endy, 0 , grid_height - 1 );
185
185
}
186
186
}
187
187
@@ -204,15 +204,15 @@ static VibDeviceGrid build_vib_device_grid(const t_vib_grid_def& grid_def, size_
204
204
VPR_FATAL_ERROR (VPR_ERROR_ARCH,
205
205
" Grid location specification incrx for block type '%s' must be at least"
206
206
" block width (%d) to avoid overlapping instances (was %s = %d)" ,
207
- type->get_name (), 1 , xspec.incr_expr .c_str (), incrx);
207
+ type->get_name (). c_str () , 1 , xspec.incr_expr .c_str (), incrx);
208
208
}
209
209
210
210
// VTR_ASSERT(type->height > 0);
211
211
if (incry < 1 /* size_t(type->height)*/ ) {
212
212
VPR_FATAL_ERROR (VPR_ERROR_ARCH,
213
213
" Grid location specification incry for block type '%s' must be at least"
214
214
" block height (%d) to avoid overlapping instances (was %s = %d)" ,
215
- type->get_name (), 1 , yspec.incr_expr .c_str (), incry);
215
+ type->get_name (). c_str () , 1 , yspec.incr_expr .c_str (), incry);
216
216
}
217
217
218
218
// The minimum repeat is the region dimension
@@ -221,15 +221,15 @@ static VibDeviceGrid build_vib_device_grid(const t_vib_grid_def& grid_def, size_
221
221
VPR_FATAL_ERROR (VPR_ERROR_ARCH,
222
222
" Grid location specification repeatx for block type '%s' must be at least"
223
223
" the region width (%d) to avoid overlapping instances (was %s = %d)" ,
224
- type->get_name (), region_width, xspec.repeat_expr .c_str (), repeatx);
224
+ type->get_name (). c_str () , region_width, xspec.repeat_expr .c_str (), repeatx);
225
225
}
226
226
227
227
size_t region_height = endy - starty + 1 ; // +1 since start/end are both inclusive
228
228
if (repeaty < region_height) {
229
229
VPR_FATAL_ERROR (VPR_ERROR_ARCH,
230
230
" Grid location specification repeaty for block type '%s' must be at least"
231
231
" the region height (%d) to avoid overlapping instances (was %s = %d)" ,
232
- type->get_name (), region_height, xspec.repeat_expr .c_str (), repeaty);
232
+ type->get_name (). c_str () , region_height, xspec.repeat_expr .c_str (), repeaty);
233
233
}
234
234
235
235
// VTR_LOG("Applying grid_loc_def for '%s' priority %d startx=%s=%zu, endx=%s=%zu, starty=%s=%zu, endx=%s=%zu,\n",
@@ -325,7 +325,7 @@ static void set_vib_grid_block_type(int priority,
325
325
// Lower priority, do not override
326
326
#ifdef VERBOSE
327
327
VTR_LOG (" Not creating block '%s' at (%zu,%zu) since overlaps block '%s' at (%zu,%zu) with higher priority (%d > %d)\n " ,
328
- type->name , x_root, y_root, max_priority_type_loc.type ->name , max_priority_type_loc.x , max_priority_type_loc.y ,
328
+ type->name . c_str () , x_root, y_root, max_priority_type_loc.type ->name , max_priority_type_loc.x , max_priority_type_loc.y ,
329
329
max_priority_type_loc.priority , priority);
330
330
#endif
331
331
return ;
@@ -341,8 +341,8 @@ static void set_vib_grid_block_type(int priority,
341
341
" Existing block type '%s' at (%zu,%zu) has the same priority (%d) as new overlapping type '%s'."
342
342
" The last specification will apply.\n " ,
343
343
x_root, y_root,
344
- max_priority_type_loc.type ->get_name (), max_priority_type_loc.x , max_priority_type_loc.y ,
345
- priority, type->get_name ());
344
+ max_priority_type_loc.type ->get_name (). c_str () , max_priority_type_loc.x , max_priority_type_loc.y ,
345
+ priority, type->get_name (). c_str () );
346
346
}
347
347
348
348
// Mark all the grid tiles 'covered' by this block with the appropriate type
@@ -405,9 +405,9 @@ static void set_vib_grid_block_type(int priority,
405
405
406
406
#ifdef VERBOSE
407
407
VTR_LOG (" Ripping up block '%s' at (%d,%d) offset (%d,%d). Overlapped by '%s' at (%d,%d)\n " ,
408
- invalidated_root.type ->name , invalidated_root.x , invalidated_root.y ,
408
+ invalidated_root.type ->name . c_str () , invalidated_root.x , invalidated_root.y ,
409
409
x_offset, y_offset,
410
- type->name , x_root, y_root);
410
+ type->name . c_str () , x_root, y_root);
411
411
#endif
412
412
413
413
vib_grid[layer_num][x][y] = nullptr ;
0 commit comments