projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007f29b
)
json: Parse inout correctly rather than as an output
author
Robert Ou
<rqou@robertou.com>
Mon, 7 Aug 2017 20:37:01 +0000
(13:37 -0700)
committer
Andrew Zonenberg
<azonenberg@drawersteak.com>
Mon, 14 Aug 2017 19:09:03 +0000
(12:09 -0700)
frontends/json/jsonparse.cc
patch
|
blob
|
history
diff --git
a/frontends/json/jsonparse.cc
b/frontends/json/jsonparse.cc
index 10d26c24402af07dfb5b6b9833b0887fdde80911..d34a279442bd56250e268951c3de719970fc1d3d 100644
(file)
--- 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());