aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nexus/arch.cc')
-rw-r--r--nexus/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexus/arch.cc b/nexus/arch.cc
index 9f410758..f804cdd9 100644
--- a/nexus/arch.cc
+++ b/nexus/arch.cc
@@ -693,7 +693,7 @@ bool Arch::route()
router2(getCtx(), Router2Cfg(getCtx()));
result = true;
} else {
- log_error("iCE40 architecture does not support router '%s'\n", router.c_str());
+ log_error("Nexus architecture does not support router '%s'\n", router.c_str());
}
getCtx()->attrs[getCtx()->id("step")] = std::string("route");
archInfoToAttributes();
@@ -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));
}