diff options
Diffstat (limited to 'json/jsonwrite.cc')
-rw-r--r-- | json/jsonwrite.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/json/jsonwrite.cc b/json/jsonwrite.cc index d4a62a5a..f92b7038 100644 --- a/json/jsonwrite.cc +++ b/json/jsonwrite.cc @@ -135,8 +135,9 @@ void write_module(std::ostream &f, Context *ctx) for (auto &port : ports) { f << stringf("%s\n", first ? "" : ","); f << stringf(" %s: {\n", get_string(port.name).c_str()); - f << stringf(" \"direction\": \"%s\",\n", - port.dir == PORT_IN ? "input" : port.dir == PORT_INOUT ? "inout" : "output"); + f << stringf(" \"direction\": \"%s\",\n", port.dir == PORT_IN ? "input" + : port.dir == PORT_INOUT ? "inout" + : "output"); f << stringf(" \"bits\": %s\n", format_port_bits(port, dummy_idx).c_str()); f << stringf(" }"); first = false; |