Skip to content

Commit 3efa8a2

Browse files
committed
vpr: set the max pres fac of router to the value pass through the command lind
1 parent 8f86b04 commit 3efa8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/route.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ bool route(const Netlist<>& net_list,
441441
} else {
442442
pres_fac *= router_opts.pres_fac_mult;
443443

444-
/* Avoid overflow for high iteration counts, even if acc_cost is big */
445-
pres_fac = update_draw_pres_fac(std::min(pres_fac, static_cast<float>(1000)));
444+
/* Set the maximum pres_fac to the value passed by the command line argument */
445+
pres_fac = update_draw_pres_fac(std::min(pres_fac, router_opts.pres_fac_mult));
446446

447447
// Increase short path criticality if it's having a hard time resolving hold violations due to congestion
448448
if (budgeting_inf.if_set()) {

0 commit comments

Comments
 (0)