Skip to content

Commit 81604de

Browse files
committed
[vpr][router] solve the bug with update_draw_pres_fac
1 parent 9978c70 commit 81604de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vpr/src/route/route.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ bool route(const Netlist<>& net_list,
155155
VTR_ASSERT(router_lookahead != nullptr);
156156

157157
/* Routing parameters */
158-
float pres_fac = update_draw_pres_fac(router_opts.first_iter_pres_fac); /* Typically 0 -> ignore cong. */
158+
float pres_fac = router_opts.first_iter_pres_fac;
159+
update_draw_pres_fac(pres_fac); /* Typically 0 -> ignore cong. */
159160
int bb_fac = router_opts.bb_factor;
160161

161162
/* When routing conflicts are detected the bounding boxes are scaled
@@ -375,7 +376,7 @@ bool route(const Netlist<>& net_list,
375376
//after the first routing convergence. Since that is often zero,
376377
//we want to set pres_fac to a reasonable (i.e. typically non-zero)
377378
//value afterwards -- so it grows when multiplied by pres_fac_mult
378-
pres_fac = router_opts.initial_pres_fac
379+
pres_fac = router_opts.initial_pres_fac;
379380
update_draw_pres_fac(pres_fac);
380381
}
381382

@@ -445,7 +446,7 @@ bool route(const Netlist<>& net_list,
445446
pres_fac *= router_opts.pres_fac_mult;
446447
pres_fac = std::min(pres_fac, router_opts.max_pres_fac);
447448
/* Set the maximum pres_fac to the value passed by the command line argument */
448-
update_draw_pres_fac(pres_fac));
449+
update_draw_pres_fac(pres_fac);
449450

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

0 commit comments

Comments
 (0)