aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/json/jsonparse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/json/jsonparse.cc')
-rw-r--r--frontends/json/jsonparse.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/json/jsonparse.cc b/frontends/json/jsonparse.cc
index 10d26c244..d34a27944 100644
--- a/frontends/json/jsonparse.cc
+++ b/frontends/json/jsonparse.cc
@@ -271,6 +271,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
port_wire->port_output = true;
} else
if (port_direction_node->data_string == "inout") {
+ port_wire->port_input = true;
port_wire->port_output = true;
} else
log_error("JSON port node '%s' has invalid '%s' direction attribute.\n", log_id(port_name), port_direction_node->data_string.c_str());