From 0c236460d447876a0c6d1c0fcd8ad7fede84f2df Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 4 May 2026 16:47:34 +0200 Subject: [PATCH] static: Consistent HPWL reporting with other placers Signed-off-by: gatecat --- common/place/placer_static.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/place/placer_static.cc b/common/place/placer_static.cc index 79fafc4c..5ed6ca13 100644 --- a/common/place/placer_static.cc +++ b/common/place/placer_static.cc @@ -981,8 +981,8 @@ class StaticPlacer // update bounding box compute_bounds(net, Axis::X, false); compute_bounds(net, Axis::Y, false); - hpwl += net.b1.x - net.b0.x; - hpwl += net.b1.y - net.b0.y; + hpwl += cfg.hpwl_scale_x * (net.b1.x - net.b0.x); + hpwl += cfg.hpwl_scale_y * (net.b1.y - net.b0.y); } return hpwl; }