aboutsummaryrefslogtreecommitdiffstats
path: root/common/router2.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-11 13:59:09 +0100
committerGitHub <noreply@github.com>2021-05-11 13:59:09 +0100
commit7e3bb720490c22957d6e4f045de34d88c007a549 (patch)
tree9df73515a41dbedbd20ca2efc5b5752a14131967 /common/router2.cc
parent744e91dda8829a9c5b8c891c5e490612389f48e3 (diff)
parente9fdbf618c5d36c3d6b31b53d90d6d1ad322f1a5 (diff)
downloadnextpnr-7e3bb720490c22957d6e4f045de34d88c007a549.tar.gz
nextpnr-7e3bb720490c22957d6e4f045de34d88c007a549.tar.bz2
nextpnr-7e3bb720490c22957d6e4f045de34d88c007a549.zip
Merge pull request #702 from YosysHQ/gatecat/interchange-fix-bb
interchange: Fix bounding box computation
Diffstat (limited to 'common/router2.cc')
-rw-r--r--common/router2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc
index b62873c0..b48857d7 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -175,7 +175,7 @@ struct Router2
nets.at(i).bb.x0 = std::min(nets.at(i).bb.x0, ad.bb.x0);
nets.at(i).bb.x1 = std::max(nets.at(i).bb.x1, ad.bb.x1);
nets.at(i).bb.y0 = std::min(nets.at(i).bb.y0, ad.bb.y0);
- nets.at(i).bb.y1 = std::max(nets.at(i).bb.x1, ad.bb.y1);
+ nets.at(i).bb.y1 = std::max(nets.at(i).bb.y1, ad.bb.y1);
}
// Add location to centroid sum
Loc usr_loc = ctx->getBelLocation(usr.cell->bel);