clangformat

Signed-off-by: D. Shah <[email protected]>
This commit is contained in:
D. Shah
2021-01-28 14:38:20 +00:00
parent b671d8f59d
commit 0d97904216
3 changed files with 22 additions and 25 deletions
+3 -2
View File
@@ -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;