From f0e30abf624ebf9984170b4b81e06e15e31ee4de Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 5 Mar 2021 12:15:58 +0000 Subject: nexus: Fail gracefully when seeing special pins Signed-off-by: gatecat --- nexus/arch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nexus') 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)); } -- cgit v1.2.3