mirror of https://github.com/YosysHQ/nextpnr.git
router2: Fix ripup of constant nets
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
ce08c3053c
commit
98c18d7f14
|
|
@ -527,7 +527,8 @@ struct Router2
|
|||
}
|
||||
cursor = ctx->getPipSrcWire(uh);
|
||||
}
|
||||
return (cursor == src_wire);
|
||||
return (cursor == src_wire) ||
|
||||
(net->constant_value != IdString() && ctx->getWireConstantValue(cursor) == net->constant_value);
|
||||
}
|
||||
|
||||
void record_prerouted_net(NetInfo *net, store_index<PortRef> usr, size_t phys_pin)
|
||||
|
|
|
|||
Loading…
Reference in New Issue