Skip to content

Commit d9f05da

Browse files
author
MohamedElgammal
committed
place: fix illegal swap of fixed blocks in critical uniform move
1 parent a87d082 commit d9f05da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/place/critical_uniform_move_generator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ e_create_move CriticalUniformMoveGenerator::propose_move(t_pl_blocks_to_be_moved
1818
return e_create_move::ABORT; //No movable block found
1919
}
2020

21+
if (place_ctx.block_locs[b_from].is_fixed) {
22+
return e_create_move::ABORT; //Block is fixed, cannot move
23+
}
24+
2125
t_pl_loc from = place_ctx.block_locs[b_from].loc;
2226
auto cluster_from_type = cluster_ctx.clb_nlist.block_type(b_from);
2327
auto grid_from_type = g_vpr_ctx.device().grid[from.x][from.y].type;

0 commit comments

Comments
 (0)