Fix loading json

This commit is contained in:
Miodrag Milanovic 2019-06-21 11:31:59 +02:00
parent 92da4a91de
commit 87ecd49295

View File

@ -661,6 +661,7 @@ static void insert_iobuf(Context *ctx, NetInfo *net, PortType type, const string
// During packing, this generic IO buffer will be converted to an
// architecure primitive.
//
if (ctx->settings.find(ctx->id("synth"))==ctx->settings.end()) {
std::unique_ptr<CellInfo> iobuf = std::unique_ptr<CellInfo>(new CellInfo());
iobuf->name = ctx->id(name);
std::copy(net->attrs.begin(), net->attrs.end(), std::inserter(iobuf->attrs, iobuf->attrs.begin()));
@ -717,6 +718,7 @@ static void insert_iobuf(Context *ctx, NetInfo *net, PortType type, const string
assert(false);
}
ctx->cells[iobuf->name] = std::move(iobuf);
}
PortInfo pinfo;
pinfo.name = net->name;