diff options
author | David Shah <davey1576@gmail.com> | 2018-06-13 17:32:34 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-13 17:32:34 +0200 |
commit | 16ee2a89a8cf11cd7126cd4e352a096115ba0e1e (patch) | |
tree | 03378de24384d19cdbc336f043efa5d002a131ad /frontend | |
parent | 9eb4943bd500dc32bbfa16a7cab018e01f5fb22b (diff) | |
download | nextpnr-16ee2a89a8cf11cd7126cd4e352a096115ba0e1e.tar.gz nextpnr-16ee2a89a8cf11cd7126cd4e352a096115ba0e1e.tar.bz2 nextpnr-16ee2a89a8cf11cd7126cd4e352a096115ba0e1e.zip |
frontend/json: Fix bus ports
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/json/jsonparse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc index 23367aca..92590902 100644 --- a/frontend/json/jsonparse.cc +++ b/frontend/json/jsonparse.cc @@ -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; |