make sure that the pip used is the one assigned

This commit is contained in:
Lofty 2025-09-02 11:39:08 +01:00 committed by Miodrag Milanovic
parent c064d20f25
commit 51cec70501
1 changed files with 5 additions and 1 deletions

View File

@ -318,7 +318,11 @@ void GateMateImpl::reassign_bridges(NetInfo* ni, const dict<WireId, PipMap>& net
auto dst = ctx->getPipDstWire(pip);
// Ignore wires not part of the net
if (!net_wires.count(dst))
auto it = net_wires.find(dst);
if (it == net_wires.end())
continue;
// Ignore pips if the wire is driven by another pip.
if (pip != it->second.pip)
continue;
// Ignore wires already visited.
if (wire_to_net.count(dst))