Skip to content

Commit c3db27f

Browse files
committed
[vpr][place] generate dy up to (including) y_range
1 parent c43f4b3 commit c3db27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/place/move_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ bool find_compatible_compressed_loc_in_range(t_logical_block_type_ptr type,
10331033
std::unordered_set<int> tried_dy;
10341034
while (!legal && (int)tried_dy.size() < y_range) { //Until legal or all possibilities exhausted
10351035
//Randomly pick a y location
1036-
int dy = rng.irand(y_range - 1);
1036+
int dy = rng.irand(y_range);
10371037

10381038
//Record this y location as tried
10391039
auto res2 = tried_dy.insert(dy);

0 commit comments

Comments
 (0)