diff --git a/common/nextpnr.cc b/common/nextpnr.cc index fd2efa22..a026b60d 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -495,6 +495,7 @@ void BaseCtx::archInfoToAttributes() routing += ";"; if (item.second.pip != PipId()) routing += getCtx()->getPipName(item.second.pip).c_str(this); + routing += ";" + std::to_string(item.second.strength); first = false; } ni->attrs[id("ROUTING")] = routing; @@ -553,14 +554,15 @@ void BaseCtx::attributesToArchInfo() if (val != ni->attrs.end()) { std::vector strs; boost::split(strs,val->second.str,boost::is_any_of(";")); - for(size_t i=0;ibindWire(getCtx()->getWireByName(id(wire)), ni, STRENGTH_WEAK); + getCtx()->bindWire(getCtx()->getWireByName(id(wire)), ni, strength); else - getCtx()->bindPip(getCtx()->getPipByName(id(pip)), ni, STRENGTH_WEAK); + getCtx()->bindPip(getCtx()->getPipByName(id(pip)), ni, strength); } } }