json: Parse inout correctly rather than as an output
authorRobert Ou <rqou@robertou.com>
Mon, 7 Aug 2017 20:37:01 +0000 (13:37 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Mon, 14 Aug 2017 19:09:03 +0000 (12:09 -0700)
frontends/json/jsonparse.cc

index 10d26c24402af07dfb5b6b9833b0887fdde80911..d34a279442bd56250e268951c3de719970fc1d3d 100644 (file)
@@ -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());