aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-08-15 09:34:50 +0100
committergatecat <gatecat@ds0.me>2021-08-15 16:22:03 +0100
commit42522c492cd7da25ee5b1ace941a93e01fe94038 (patch)
tree2f021cce1c48fdacd25ef9be40f6d271380578de /common
parent2a856db72c6d050c364d6dd6544a0eb4539dc59d (diff)
downloadnextpnr-42522c492cd7da25ee5b1ace941a93e01fe94038.tar.gz
nextpnr-42522c492cd7da25ee5b1ace941a93e01fe94038.tar.bz2
nextpnr-42522c492cd7da25ee5b1ace941a93e01fe94038.zip
router2: Alternative congestion cost schedule
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/router2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc
index cb5f3eab..0e3a6ebb 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -1402,7 +1402,7 @@ struct Router2
total_overuse, overused_wires > 0 ? "NA" : std::to_string(arch_fail).c_str());
++iter;
if (curr_cong_weight < 1e9)
- curr_cong_weight *= cfg.curr_cong_mult;
+ curr_cong_weight += cfg.curr_cong_mult;
} while (!failed_nets.empty());
if (cfg.perf_profile) {
std::vector<std::pair<int, IdString>> nets_by_runtime;