nexus: Fail gracefully when seeing special pins
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
1aab019f1e
commit
f0e30abf62
@ -781,7 +781,7 @@ Loc Arch::get_pad_loc(const PadInfoPOD *pad) const
|
|||||||
|
|
||||||
BelId Arch::get_pad_pio_bel(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 BelId();
|
||||||
return getBelByLocation(get_pad_loc(pad));
|
return getBelByLocation(get_pad_loc(pad));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user