aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc15
-rw-r--r--generic/arch.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 999e5033..a87c4392 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -650,21 +650,6 @@ TimingClockingInfo Arch::getPortClockingInfo(const CellInfo *cell, IdString port
return tmg.clockingInfo.at(port).at(index);
}
-bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const
-{
- std::vector<const CellInfo *> cells;
- cells.push_back(cell);
- Loc loc = getBelLocation(bel);
- for (auto tbel : getBelsByTile(loc.x, loc.y)) {
- if (tbel == bel)
- continue;
- CellInfo *bound = getBoundBelCell(tbel);
- if (bound != nullptr)
- cells.push_back(bound);
- }
- return cellsCompatible(cells.data(), int(cells.size()));
-}
-
bool Arch::isBelLocationValid(BelId bel) const
{
std::vector<const CellInfo *> cells;
diff --git a/generic/arch.h b/generic/arch.h
index 007478eb..f3a6dccd 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -357,7 +357,6 @@ struct Arch : ArchAPI<ArchRanges>
TimingClockingInfo getPortClockingInfo(const CellInfo *cell, IdString port, int index) const override;
bool isValidBelForCellType(IdString cell_type, BelId bel) const override { return cell_type == getBelType(bel); }
- bool isValidBelForCell(CellInfo *cell, BelId bel) const override;
bool isBelLocationValid(BelId bel) const override;
static const std::string defaultPlacer;