Skip to content

Commit

Permalink
frontend/json: Fix bus ports
Browse files Browse the repository at this point in the history
Signed-off-by: David Shah <[email protected]>
  • Loading branch information
gatecat committed Jun 13, 2018
1 parent 9eb4943 commit 16ee2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/json/jsonparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void json_import_ports(Design *design, const string &modname,
// Pick a name for this port
if (is_bus)
this_port.name =
port_info.name + '[' + std::to_string(index) + ']';
port_info.name.str() + "[" + std::to_string(index) + "]";
else
this_port.name = port_info.name;
this_port.type = port_info.type;
Expand Down

0 comments on commit 16ee2a8

Please sign in to comment.