Skip to content

Commit dae25cc

Browse files
committed
[vpr][place] use a constexpr to compare the number of blocks in column
1 parent f9e8517 commit dae25cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vpr/src/place/move_utils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
//Note: The flag is only effective if compiled with VTR_ENABLE_DEBUG_LOGGING
2020
bool f_placer_breakpoint_reached = false;
2121

22+
constexpr int MIN_NUMBER_OF_BLOCK_PER_COLUMN = 3;
23+
2224
//Accessor for f_placer_breakpoint_reached
2325
bool placer_breakpoint_reached() {
2426
return f_placer_breakpoint_reached;
@@ -1017,7 +1019,7 @@ bool find_compatible_compressed_loc_in_range(t_logical_block_type_ptr type,
10171019
}
10181020
auto y_upper_iter = block_rows.upper_bound(search_range.ymax);
10191021

1020-
if (block_rows.size() < 3) {
1022+
if (block_rows.size() < MIN_NUMBER_OF_BLOCK_PER_COLUMN && !block_constrained) {
10211023
//Fall back to allow the whole y range
10221024
y_lower_iter = block_rows.begin();
10231025
y_upper_iter = block_rows.end();

0 commit comments

Comments
 (0)