diff options
author | gatecat <gatecat@ds0.me> | 2021-02-12 10:43:15 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-12 10:43:15 +0000 |
commit | 6de733b38c049bf794975551418c5b4fb592cc8c (patch) | |
tree | fc77e3a0aff0177e734844783977baf8297aa051 /machxo2/arch.cc | |
parent | 33eca9a3d2569f51c24204ea103672a72f63795d (diff) | |
download | nextpnr-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.cc | 5 |
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; } |