HeAP: Fix occupancy count

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2019-01-30 21:41:00 +01:00 committed by David Shah
parent 6cf001d355
commit 8e4e03d980

View File

@ -1088,7 +1088,8 @@ class HeAPPlacer
for (auto &cell : p->cell_locs) {
if (ctx->cells.at(cell.first)->type != beltype)
continue;
if (ctx->cells.at(cell.first)->belStrength > STRENGTH_STRONG)
continue;
occupancy.at(cell.second.x).at(cell.second.y)++;
// Compute ultimate extent of each chain root
if (p->chain_root.count(cell.first)) {
@ -1502,4 +1503,4 @@ int HeAPPlacer::CutSpreader::seq = 0;
bool placer_heap(Context *ctx) { return HeAPPlacer(ctx).place(); }
NEXTPNR_NAMESPACE_END
NEXTPNR_NAMESPACE_END