aboutsummaryrefslogtreecommitdiffstats
path: root/backends/json
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-24 22:48:49 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-24 22:48:49 -0700
commit1564eb8b549a0927efa4d2b4cbc479038993024a (patch)
treeb31c219fd98a8d0c8bb4542c10f5961529bd9635 /backends/json
parentf1675b88f63b4c279e368d5ec9e6ca48f528024d (diff)
parenta19226c174e31da444b831706adf7fa17e9cb9e4 (diff)
downloadyosys-1564eb8b549a0927efa4d2b4cbc479038993024a.tar.gz
yosys-1564eb8b549a0927efa4d2b4cbc479038993024a.tar.bz2
yosys-1564eb8b549a0927efa4d2b4cbc479038993024a.zip
Merge remote-tracking branch 'origin/xaig' into xc7mux
Diffstat (limited to 'backends/json')
-rw-r--r--backends/json/json.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/json/json.cc b/backends/json/json.cc
index 1781a28cd..dda4dfedd 100644
--- a/backends/json/json.cc
+++ b/backends/json/json.cc
@@ -126,6 +126,10 @@ struct JsonWriter
f << stringf("%s\n", first ? "" : ",");
f << stringf(" %s: {\n", get_name(n).c_str());
f << stringf(" \"direction\": \"%s\",\n", w->port_input ? w->port_output ? "inout" : "input" : "output");
+ if (w->start_offset)
+ f << stringf(" \"offset\": %d,\n", w->start_offset);
+ if (w->upto)
+ f << stringf(" \"upto\": 1,\n");
f << stringf(" \"bits\": %s\n", get_bits(w).c_str());
f << stringf(" }");
first = false;