ice40: Always copy DFF attrs to LC

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-03-19 21:35:31 +00:00
parent d20ce45c1b
commit a621e04062

View File

@ -66,6 +66,11 @@ static void pack_lut_lutffs(Context *ctx)
ctx->nets.erase(o->name); ctx->nets.erase(o->name);
if (dff_bel != dff->attrs.end()) if (dff_bel != dff->attrs.end())
packed->attrs[ctx->id("BEL")] = dff_bel->second; packed->attrs[ctx->id("BEL")] = dff_bel->second;
for (const auto &attr : dff->attrs) {
// BEL is dealt with specially
if (attr.first != ctx->id("BEL"))
packed->attrs[attr.first] = attr.second;
}
packed_cells.insert(dff->name); packed_cells.insert(dff->name);
if (ctx->verbose) if (ctx->verbose)
log_info("packed cell %s into %s\n", dff->name.c_str(ctx), packed->name.c_str(ctx)); log_info("packed cell %s into %s\n", dff->name.c_str(ctx), packed->name.c_str(ctx));