From 8e4e03d98096604c11614bcb5bf89ba995ea5251 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 30 Jan 2019 21:41:00 +0100 Subject: HeAP: Fix occupancy count Signed-off-by: David Shah --- common/placer_heap.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/placer_heap.cc b/common/placer_heap.cc index 4f62e77b..7a6c2a3e 100644 --- a/common/placer_heap.cc +++ b/common/placer_heap.cc @@ -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 \ No newline at end of file +NEXTPNR_NAMESPACE_END -- cgit v1.2.3