aboutsummaryrefslogtreecommitdiffstats
path: root/json/jsonwrite.cc
diff options
context:
space:
mode:
Diffstat (limited to 'json/jsonwrite.cc')
-rw-r--r--json/jsonwrite.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/json/jsonwrite.cc b/json/jsonwrite.cc
index 7143bf93..e62a7d2a 100644
--- a/json/jsonwrite.cc
+++ b/json/jsonwrite.cc
@@ -102,6 +102,11 @@ void write_constraints(std::ostream &f, Context *ctx, CellInfo *cell, bool first
f << stringf(",\n");
f << stringf(" \"NEXTPNR_CONSTR_CHILDREN\": ");
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));
+ }
}