Skip to content

Commit

Permalink
static: Improve singleton handling
Browse files Browse the repository at this point in the history
Signed-off-by: gatecat <[email protected]>
  • Loading branch information
gatecat committed Feb 20, 2024
1 parent 255633c commit aa26ba7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion common/place/placer_static.cc
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,17 @@ class StaticPlacer
StaticRect rect;
// Mismatched group case
if (!lookup_group(ci->type, cell_group, rect)) {
// TODO: what is the best thing to do here? singletons/odd cells we can probably mostly randomly place
for (auto bel : ctx->getBels()) {
if (ctx->isValidBelForCellType(ci->type, bel) && ctx->checkBelAvail(bel)) {
ctx->bindBel(bel, ci, STRENGTH_STRONG);
if (!ctx->isBelLocationValid(bel)) {
ctx->unbindBel(bel);
} else {
log_info(" placed potpourri cell '%s' at bel '%s'\n", ctx->nameOf(ci), ctx->nameOfBel(bel));
break;
}
}
}
continue;
}
if (ci->cluster != ClusterId()) {
Expand Down

0 comments on commit aa26ba7

Please sign in to comment.