diff options
author | gatecat <gatecat@ds0.me> | 2021-03-05 12:15:58 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-03-05 12:15:58 +0000 |
commit | f0e30abf624ebf9984170b4b81e06e15e31ee4de (patch) | |
tree | 767c8ec2dc4a6e2e4af7ed5811b10fe32e1a187f | |
parent | 1aab019f1e8ba53ba4810b0303536d952dc63b31 (diff) | |
download | nextpnr-f0e30abf624ebf9984170b4b81e06e15e31ee4de.tar.gz nextpnr-f0e30abf624ebf9984170b4b81e06e15e31ee4de.tar.bz2 nextpnr-f0e30abf624ebf9984170b4b81e06e15e31ee4de.zip |
nexus: Fail gracefully when seeing special pins
Signed-off-by: gatecat <gatecat@ds0.me>
-rw-r--r-- | nexus/arch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nexus/arch.cc b/nexus/arch.cc index 9f410758..2791b0df 100644 --- a/nexus/arch.cc +++ b/nexus/arch.cc @@ -781,7 +781,7 @@ Loc Arch::get_pad_loc(const PadInfoPOD *pad) const BelId Arch::get_pad_pio_bel(const PadInfoPOD *pad) const { - if (pad == nullptr) + if (pad == nullptr || pad->offset == -1) return BelId(); return getBelByLocation(get_pad_loc(pad)); } |