diff --git a/pycoloquinte/setup.py b/pycoloquinte/setup.py index dce4788..e203bd3 100644 --- a/pycoloquinte/setup.py +++ b/pycoloquinte/setup.py @@ -174,7 +174,7 @@ def build_extension(self, ext): # logic and declaration, and simpler if you include description/version in a file. setup( name="coloquinte", - version="0.4.0", + version="0.4.1", author="Gabriel Gouvine", author_email="gabriel.gouvine_git@m4x.org", url="https://github.com/Coloquinte/PlaceRoute", 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();