@@ -234,10 +234,12 @@ void read_place_body(std::ifstream& placement_file,
234
234
235
235
// Check if block is listed multiple times with conflicting locations in constraints file
236
236
if (seen_blocks[blk_id] > 0 ) {
237
- if (block_x != place_ctx.block_locs [blk_id].loc .x || block_y != place_ctx.block_locs [blk_id].loc .y || sub_tile_index != place_ctx.block_locs [blk_id].loc .sub_tile ) {
238
- VPR_THROW (VPR_ERROR_PLACE, " The location of cluster %d is specified %d times in the constraints file with conflicting locations. \n "
239
- " Its location was last specified with block %s. \n " , blk_id, seen_blocks[blk_id] + 1 , c_block_name);
240
- }
237
+ if (block_x != place_ctx.block_locs [blk_id].loc .x || block_y != place_ctx.block_locs [blk_id].loc .y || sub_tile_index != place_ctx.block_locs [blk_id].loc .sub_tile ) {
238
+ VPR_THROW (VPR_ERROR_PLACE,
239
+ " The location of cluster %d is specified %d times in the constraints file with conflicting locations. \n "
240
+ " Its location was last specified with block %s. \n " ,
241
+ blk_id, seen_blocks[blk_id] + 1 , c_block_name);
242
+ }
241
243
}
242
244
243
245
// Check if block location is out of range of grid dimensions
@@ -270,7 +272,7 @@ void read_place_body(std::ifstream& placement_file,
270
272
place_ctx.block_locs [blk_id].is_fixed = true ;
271
273
place_ctx.grid_blocks [block_x][block_y].blocks [sub_tile_index] = blk_id;
272
274
if (seen_blocks[blk_id] == 0 ) {
273
- place_ctx.grid_blocks [block_x][block_y].usage ++;
275
+ place_ctx.grid_blocks [block_x][block_y].usage ++;
274
276
}
275
277
}
276
278
0 commit comments