aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-03-19 21:35:31 +0000
committerDavid Shah <dave@ds0.me>2020-03-19 21:35:31 +0000
commita621e04062c1ce73c3df8552793f705807257a3b (patch)
treeec4b652da225bd7a5bd19f2176008068dbacb824
parentd20ce45c1b59ad1485c2299234c4dd8d1dec35f3 (diff)
downloadnextpnr-a621e04062c1ce73c3df8552793f705807257a3b.tar.gz
nextpnr-a621e04062c1ce73c3df8552793f705807257a3b.tar.bz2
nextpnr-a621e04062c1ce73c3df8552793f705807257a3b.zip
ice40: Always copy DFF attrs to LC
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--ice40/pack.cc5
1 files changed, 5 insertions, 0 deletions
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));