From a621e04062c1ce73c3df8552793f705807257a3b Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 19 Mar 2020 21:35:31 +0000 Subject: ice40: Always copy DFF attrs to LC Signed-off-by: David Shah --- ice40/pack.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ice40/pack.cc b/ice40/pack.cc index 5b13e9ee..17d004b5 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -66,6 +66,11 @@ static void pack_lut_lutffs(Context *ctx) ctx->nets.erase(o->name); if (dff_bel != dff->attrs.end()) 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); if (ctx->verbose) log_info("packed cell %s into %s\n", dff->name.c_str(ctx), packed->name.c_str(ctx)); -- cgit v1.2.3