HeAP: fix region constraint handling

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-12-01 14:18:10 +00:00
parent 1c1c096861
commit 89e15d488a

View File

@ -947,7 +947,7 @@ class HeAPPlacer
visit.pop();
BelId target = ctx->getBelByLocation(ploc);
if (vc->region != nullptr && vc->region->constr_bels && !vc->region->bels.count(target))
continue;
goto fail;
CellInfo *bound;
if (target == BelId() || ctx->getBelType(target) != vc->type)
goto fail;