aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_place.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r--ice40/arch_place.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc
index 59e1807d..fdd537a7 100644
--- a/ice40/arch_place.cc
+++ b/ice40/arch_place.cc
@@ -130,6 +130,10 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const
auto pll_cell = getBoundBelCell(pll_bel);
auto pi = cells.at(pll_cell)->ports[portPinToId(pll_bel_pin)];
if (pi.net != nullptr) {
+ // Are we perhaps a PAD INPUT Bel that can be placed here?
+ if (cells.at(pll_cell)->attrs[id("BEL_PAD_INPUT")] == getBelName(bel).str(this)) {
+ return true;
+ }
return false;
}
}