aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-12 10:43:15 +0000
committergatecat <gatecat@ds0.me>2021-02-12 10:43:15 +0000
commit6de733b38c049bf794975551418c5b4fb592cc8c (patch)
treefc77e3a0aff0177e734844783977baf8297aa051 /machxo2/arch.cc
parent33eca9a3d2569f51c24204ea103672a72f63795d (diff)
downloadnextpnr-6de733b38c049bf794975551418c5b4fb592cc8c.tar.gz
nextpnr-6de733b38c049bf794975551418c5b4fb592cc8c.tar.bz2
nextpnr-6de733b38c049bf794975551418c5b4fb592cc8c.zip
machxo2: Misc tidying up
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'machxo2/arch.cc')
-rw-r--r--machxo2/arch.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc
index df9b7efc..2938f1ba 100644
--- a/machxo2/arch.cc
+++ b/machxo2/arch.cc
@@ -401,7 +401,10 @@ delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
ArcBounds Arch::getRouteBoundingBox(WireId src, WireId dst) const
{
ArcBounds bb;
-
+ bb.x0 = std::min(src.location.x, dst.location.x);
+ bb.y0 = std::min(src.location.y, dst.location.y);
+ bb.x1 = std::max(src.location.x, dst.location.x);
+ bb.y1 = std::max(src.location.y, dst.location.y);
return bb;
}