File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ e_create_move MedianMoveGenerator::propose_move(t_pl_blocks_to_be_moved& blocks_
93
93
xold = place_ctx.block_locs [bnum].loc .x + physical_tile_type (bnum)->pin_width_offset [pnum];
94
94
yold = place_ctx.block_locs [bnum].loc .y + physical_tile_type (bnum)->pin_height_offset [pnum];
95
95
layer_old = place_ctx.block_locs [bnum].loc .layer ;
96
+
96
97
xold = std::max (std::min (xold, (int )device_ctx.grid .width () - 2 ), 1 ); // -2 for no perim channels
97
98
yold = std::max (std::min (yold, (int )device_ctx.grid .height () - 2 ), 1 ); // -2 for no perim channels
98
- VTR_ASSERT (layer_old >= 0 );
99
- VTR_ASSERT (layer_old < device_ctx.grid .get_num_layers ());
99
+ layer_old = std::max (std::min (layer_old, (int )device_ctx.grid .get_num_layers () - 1 ), 0 );
100
100
101
101
// To calulate the bb incrementally while excluding the moving block
102
102
// assume that the moving block is moved to a non-critical coord of the bb
You can’t perform that action at this time.
0 commit comments