diff options
author | gatecat <gatecat@ds0.me> | 2021-07-06 11:43:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 11:43:24 +0100 |
commit | c0bb2fb76a700a1ff3b9aaa663cfd70194df2a3a (patch) | |
tree | 11d7496a94275f54e98d566958890285e18a3104 /fpga_interchange/arch.cc | |
parent | 8a9fb810369aeb5eed128ef4e7d4de456ef1ec8f (diff) | |
parent | 31abefc8e49edce55fb42c99ac99b81e948d9004 (diff) | |
download | nextpnr-c0bb2fb76a700a1ff3b9aaa663cfd70194df2a3a.tar.gz nextpnr-c0bb2fb76a700a1ff3b9aaa663cfd70194df2a3a.tar.bz2 nextpnr-c0bb2fb76a700a1ff3b9aaa663cfd70194df2a3a.zip |
Merge pull request #750 from YosysHQ/gatecat/io-improve
IO improvements for OBUFTDS
Diffstat (limited to 'fpga_interchange/arch.cc')
-rw-r--r-- | fpga_interchange/arch.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fpga_interchange/arch.cc b/fpga_interchange/arch.cc index be40ddfd..901725d4 100644 --- a/fpga_interchange/arch.cc +++ b/fpga_interchange/arch.cc @@ -1518,11 +1518,6 @@ void Arch::remove_pip_pseudo_wires(PipId pip, NetInfo *net) // This wire is part of net->wires, make sure it has no pip, // but leave it alone. It will get cleaned up via // unbindWire. - if (wire_iter->second.pip != PipId() && wire_iter->second.pip != pip) { - log_error("Wire %s report source'd from pip %s, which is not %s\n", nameOfWire(wire), - nameOfPip(wire_iter->second.pip), nameOfPip(pip)); - } - NPNR_ASSERT(wire_iter->second.pip == PipId() || wire_iter->second.pip == pip); } else { // This wire is not in net->wires, update wire_to_net. #ifdef DEBUG_BINDING @@ -1756,12 +1751,12 @@ bool Arch::checkPipAvailForNet(PipId pip, NetInfo *net) const NPNR_ASSERT(src != wire); NPNR_ASSERT(dst != wire); - NetInfo *net = getConflictingWireNet(wire); - if (net != nullptr) { + NetInfo *other_net = getConflictingWireNet(wire); + if (other_net != nullptr && other_net != net) { #ifdef DEBUG_BINDING if (getCtx()->verbose) { log_info("Pip %s is not available because wire %s is tied to net %s\n", getCtx()->nameOfPip(pip), - getCtx()->nameOfWire(wire), net->name.c_str(getCtx())); + getCtx()->nameOfWire(wire), other_net->name.c_str(getCtx())); } #endif return false; |