From 366ce87cffbbd8e72be4c804223b3350c3f44c60 Mon Sep 17 00:00:00 2001 From: Robert Ou Date: Mon, 7 Aug 2017 13:37:01 -0700 Subject: [PATCH] json: Parse inout correctly rather than as an output --- frontends/json/jsonparse.cc | 1 + 1 file changed, 1 insertion(+) 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()); -- 2.30.2