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 daff11b
Showing 1 changed file with 2 additions and 2 deletions.
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 daff11b

Please sign in to comment.