Skip to content

Commit

Permalink
Fix bug in fixed pin computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloquinte committed Nov 7, 2023
1 parent bd2a1a4 commit a54c3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pycoloquinte/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
url="https://github.com/Coloquinte/PlaceRoute",
Expand Down
4 changes: 2 additions & 2 deletions src/place_global/net_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a54c3df

Please sign in to comment.