frontend/json: Fix bus ports

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-13 17:32:34 +02:00
parent 9eb4943bd5
commit 16ee2a89a8

View File

@ -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;