From 0e8fd0e89f93ab5645b90b0a0e9d7545c1180296 Mon Sep 17 00:00:00 2001 From: Lofty Date: Fri, 17 Nov 2023 04:12:32 +0000 Subject: [PATCH] heap: improved net weighting --- common/place/placer_heap.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/place/placer_heap.cc b/common/place/placer_heap.cc index 1ed71426..63f1567c 100644 --- a/common/place/placer_heap.cc +++ b/common/place/placer_heap.cc @@ -752,8 +752,7 @@ class HeAPPlacer std::abs(o_pos - this_pos))); if (user_idx) { - weight *= (1.0 + cfg.timingWeight * std::pow(tmg.get_criticality(CellPortKey(port)), - cfg.criticalityExponent)); + weight = tmg.get_criticality(CellPortKey(port)) * ni->users.entries() * double(std::abs(o_pos - this_pos)); } // If cell 0 is not fixed, it will stamp +w on its equation and -w on the other end's equation,