aboutsummaryrefslogtreecommitdiffstats
path: root/nexus
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-03-05 12:15:58 +0000
committergatecat <gatecat@ds0.me>2021-03-05 12:15:58 +0000
commitf0e30abf624ebf9984170b4b81e06e15e31ee4de (patch)
tree767c8ec2dc4a6e2e4af7ed5811b10fe32e1a187f /nexus
parent1aab019f1e8ba53ba4810b0303536d952dc63b31 (diff)
downloadnextpnr-f0e30abf624ebf9984170b4b81e06e15e31ee4de.tar.gz
nextpnr-f0e30abf624ebf9984170b4b81e06e15e31ee4de.tar.bz2
nextpnr-f0e30abf624ebf9984170b4b81e06e15e31ee4de.zip
nexus: Fail gracefully when seeing special pins
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus')
-rw-r--r--nexus/arch.cc2
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));
}