static: Consistent HPWL reporting with other placers

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-05-04 16:47:34 +02:00 committed by myrtle
parent ca6a25e41e
commit 211cb5703c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}