Skip to content

Commit cce3bc6

Browse files
committed
change vector of arrays to 2D matrix
1 parent eb71943 commit cce3bc6

File tree

4 files changed

+92
-69
lines changed

4 files changed

+92
-69
lines changed

vpr/src/place/median_move_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ e_create_move MedianMoveGenerator::propose_move(t_pl_blocks_to_be_moved& blocks_
114114
place_move_ctx.Y_coord.push_back(coords.ymax);
115115
if (is_multi_layer) {
116116
for (int layer_num = 0; layer_num < num_layers; layer_num++) {
117-
layer_blk_cnt[layer_num] += place_move_ctx.num_sink_pin_layer[net_id][layer_num];
117+
layer_blk_cnt[layer_num] += place_move_ctx.num_sink_pin_layer[size_t(net_id)][layer_num];
118118
}
119119
// If the pin under consideration is of type sink, it shouldn't be added to layer_blk_cnt since the block
120120
// is moving

0 commit comments

Comments
 (0)