diff options
author | gatecat <gatecat@ds0.me> | 2021-05-11 13:59:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 13:59:09 +0100 |
commit | 7e3bb720490c22957d6e4f045de34d88c007a549 (patch) | |
tree | 9df73515a41dbedbd20ca2efc5b5752a14131967 /common/router2.cc | |
parent | 744e91dda8829a9c5b8c891c5e490612389f48e3 (diff) | |
parent | e9fdbf618c5d36c3d6b31b53d90d6d1ad322f1a5 (diff) | |
download | nextpnr-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.cc | 2 |
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); |