From ef1a5fa60653a89fe008288aa4da00c481db2c46 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 7 Jun 2019 14:31:13 +0200 Subject: Save/restore net strength --- common/nextpnr.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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); } } } -- cgit v1.2.3