aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorRobert Ou <rqou@robertou.com>2017-08-07 13:37:01 -0700
committerAndrew Zonenberg <azonenberg@drawersteak.com>2017-08-14 12:09:03 -0700
commit366ce87cffbbd8e72be4c804223b3350c3f44c60 (patch)
treee7fc6df603492a364da4681c6c33b6c991fff29f /frontends
parent007f29b9c221ab1a8931de863517d6990218970d (diff)
downloadyosys-366ce87cffbbd8e72be4c804223b3350c3f44c60.tar.gz
yosys-366ce87cffbbd8e72be4c804223b3350c3f44c60.tar.bz2
yosys-366ce87cffbbd8e72be4c804223b3350c3f44c60.zip
json: Parse inout correctly rather than as an output
Diffstat (limited to 'frontends')
-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());