diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-23 15:16:24 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-23 15:16:24 +0200 |
commit | 746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205 (patch) | |
tree | 0e39eddba232e0abae90dfe30ba4643ca5f0b7d5 /ice40/arch_place.cc | |
parent | d72fe0c230f79248a56e47c2f31f14b15c7f13fe (diff) | |
download | nextpnr-746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205.tar.gz nextpnr-746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205.tar.bz2 nextpnr-746d63f9fa7ffd7fcc5c460c04b65eccfbb3f205.zip |
Refactoring bind/unbind API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r-- | ice40/arch_place.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc index 7b79e031..d374b764 100644 --- a/ice40/arch_place.cc +++ b/ice40/arch_place.cc @@ -102,7 +102,7 @@ bool PlaceValidityChecker::isBelLocationValid(BelId bel) if (ctx->getBelType(bel) == TYPE_ICESTORM_LC) { std::vector<const CellInfo *> cells; for (auto bel_other : ctx->getBelsAtSameTile(bel)) { - IdString cell_other = ctx->getBelCell(bel_other, false); + IdString cell_other = ctx->getBoundBelCell(bel_other); if (cell_other != IdString()) { const CellInfo *ci_other = ctx->cells[cell_other]; cells.push_back(ci_other); @@ -110,7 +110,7 @@ bool PlaceValidityChecker::isBelLocationValid(BelId bel) } return logicCellsCompatible(ctx, cells); } else { - IdString cellId = ctx->getBelCell(bel, false); + IdString cellId = ctx->getBoundBelCell(bel); if (cellId == IdString()) return true; else @@ -126,7 +126,7 @@ bool PlaceValidityChecker::isValidBelForCell(CellInfo *cell, BelId bel) std::vector<const CellInfo *> cells; for (auto bel_other : ctx->getBelsAtSameTile(bel)) { - IdString cell_other = ctx->getBelCell(bel_other, false); + IdString cell_other = ctx->getBoundBelCell(bel_other); if (cell_other != IdString()) { const CellInfo *ci_other = ctx->cells[cell_other]; cells.push_back(ci_other); |