use NEXTPNR_BEL, since BEL is initial placement
This commit is contained in:
parent
7c65da417b
commit
82ed1803c7
@ -350,7 +350,7 @@ int CommandHandler::executeMain(std::unique_ptr<Context> ctx)
|
|||||||
} else {
|
} else {
|
||||||
for (auto &pair : ctx->cells) {
|
for (auto &pair : ctx->cells) {
|
||||||
auto &c = pair.second;
|
auto &c = pair.second;
|
||||||
auto bel = c->attrs.find(ctx->id("BEL"));
|
auto bel = c->attrs.find(ctx->id("NEXTPNR_BEL"));
|
||||||
if (bel!=c->attrs.end())
|
if (bel!=c->attrs.end())
|
||||||
{
|
{
|
||||||
BelId b = ctx->getBelByName(ctx->id(bel->second.c_str()));
|
BelId b = ctx->getBelByName(ctx->id(bel->second.c_str()));
|
||||||
|
@ -102,6 +102,11 @@ void write_constraints(std::ostream &f, Context *ctx, CellInfo *cell, bool first
|
|||||||
f << stringf(",\n");
|
f << stringf(",\n");
|
||||||
f << stringf(" \"NEXTPNR_CONSTR_CHILDREN\": ");
|
f << stringf(" \"NEXTPNR_CONSTR_CHILDREN\": ");
|
||||||
f << get_string(constr);
|
f << get_string(constr);
|
||||||
|
if (cell->bel != BelId()) {
|
||||||
|
f << stringf(",\n");
|
||||||
|
f << stringf(" \"NEXTPNR_BEL\": ");
|
||||||
|
f << get_string(ctx->getBelName(cell->bel).c_str(ctx));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user