HeAP: Fix occupancy count
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
6cf001d355
commit
8e4e03d980
@ -1088,7 +1088,8 @@ class HeAPPlacer
|
|||||||
for (auto &cell : p->cell_locs) {
|
for (auto &cell : p->cell_locs) {
|
||||||
if (ctx->cells.at(cell.first)->type != beltype)
|
if (ctx->cells.at(cell.first)->type != beltype)
|
||||||
continue;
|
continue;
|
||||||
|
if (ctx->cells.at(cell.first)->belStrength > STRENGTH_STRONG)
|
||||||
|
continue;
|
||||||
occupancy.at(cell.second.x).at(cell.second.y)++;
|
occupancy.at(cell.second.x).at(cell.second.y)++;
|
||||||
// Compute ultimate extent of each chain root
|
// Compute ultimate extent of each chain root
|
||||||
if (p->chain_root.count(cell.first)) {
|
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(); }
|
bool placer_heap(Context *ctx) { return HeAPPlacer(ctx).place(); }
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_END
|
NEXTPNR_NAMESPACE_END
|
||||||
|
Loading…
Reference in New Issue
Block a user