From: Robert Ou Date: Mon, 7 Aug 2017 20:37:01 +0000 (-0700) Subject: json: Parse inout correctly rather than as an output X-Git-Tag: yosys-0.8~348^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=366ce87cffbbd8e72be4c804223b3350c3f44c60;p=yosys.git json: Parse inout correctly rather than as an output --- 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());