Escape colons in config names

This commit is contained in:
Eddie Hung 2018-08-20 19:19:45 -07:00
parent 699bd3ef5a
commit 718f5b81f0

View File

@ -125,10 +125,13 @@ void write_xdl(const Context *ctx, std::ostream &out)
}
auto O = get_net_or_empty(cell.second.get(), id_O);
std::string lut_name;
if (O)
instPtr->setConfig(setting, O->name.str(ctx), value);
lut_name = O->name.str(ctx);
else
instPtr->setConfig(setting, cell.second->name.str(ctx), value);
lut_name = cell.second->name.str(ctx);
boost::replace_all(lut_name, ":", "\\:");
instPtr->setConfig(setting, lut_name, value);
auto OQ = get_net_or_empty(cell.second.get(), id_OQ);
if (OQ) {