aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/json
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-12 15:08:01 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-12 15:08:01 +0200
commita139654980b2d2560667b12c886de7518ec97c40 (patch)
tree7f8d1c6f5553af3ae637e087a86988b04faa5db7 /frontend/json
parent592a627e0c99ddf2cf06c286813a2d08962d8cd9 (diff)
downloadnextpnr-a139654980b2d2560667b12c886de7518ec97c40.tar.gz
nextpnr-a139654980b2d2560667b12c886de7518ec97c40.tar.bz2
nextpnr-a139654980b2d2560667b12c886de7518ec97c40.zip
Add IdString API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontend/json')
-rw-r--r--frontend/json/jsonparse.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index 5f394217..3f965ce4 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -224,10 +224,10 @@ NetInfo *ground_net(NetInfo *net)
PortInfo port_info;
PortRef port_ref;
- cell->name = string(net->name + ".GND");
+ cell->name = string(net->name.str() + ".GND");
cell->type = string("GND");
- port_info.name = cell->name + "[]";
+ port_info.name = cell->name.str() + "[]";
port_info.net = net;
port_info.type = PORT_OUT;
@@ -247,10 +247,10 @@ NetInfo *vcc_net(NetInfo *net)
PortInfo port_info;
PortRef port_ref;
- cell->name = string(net->name + ".VCC");
+ cell->name = string(net->name.str() + ".VCC");
cell->type = string("VCC");
- port_info.name = cell->name + "[]";
+ port_info.name = cell->name.str() + "[]";
port_info.net = net;
port_info.type = PORT_OUT;
@@ -269,7 +269,7 @@ NetInfo *floating_net(NetInfo *net)
PortInfo port_info;
PortRef port_ref;
- port_info.name = net->name + ".floating";
+ port_info.name = net->name.str() + ".floating";
port_info.net = net;
port_info.type = PORT_OUT;