Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json: Parse inout correctly rather than as an output
Browse files Browse the repository at this point in the history
ArcaneNibble committed Aug 7, 2017
1 parent 275e60a commit 633376a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontends/json/jsonparse.cc
Original file line number Diff line number Diff line change
@@ -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());

0 comments on commit 633376a

Please sign in to comment.