From daff11b444d1196cfb7c2aa73b92e2256b093117 Mon Sep 17 00:00:00 2001 From: Gabriel Gouvine Date: Tue, 7 Nov 2023 09:41:35 +0100 Subject: [PATCH] Fix bug in fixed pin computation --- src/place_global/net_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/place_global/net_model.cpp b/src/place_global/net_model.cpp index 1cecdda..5c7b7d3 100644 --- a/src/place_global/net_model.cpp +++ b/src/place_global/net_model.cpp @@ -38,7 +38,7 @@ NetModel NetModel::xTopology(const Circuit &circuit) { } } minPos = std::max(minPos, areaMin); - maxPos = std::max(maxPos, areaMax); + maxPos = std::min(maxPos, areaMax); ret.addNet(cells, offsets, minPos, maxPos, circuit.netWeight(i)); } ret.check(); @@ -69,7 +69,7 @@ NetModel NetModel::yTopology(const Circuit &circuit) { } } minPos = std::max(minPos, areaMin); - maxPos = std::max(maxPos, areaMax); + maxPos = std::min(maxPos, areaMax); ret.addNet(cells, offsets, minPos, maxPos, circuit.netWeight(i)); } ret.check();