Add xc7 specific hack for global network routing
This commit is contained in:
parent
097062c5cb
commit
e87b96fe4a
@ -512,6 +512,20 @@ struct Router1
|
||||
WireId next_wire = ctx->getPipDstWire(pip);
|
||||
next_delay += ctx->getWireDelay(next_wire).maxDelay();
|
||||
|
||||
#ifdef ARCH_XC7
|
||||
if (ctx->isGlobalNet(net_info)) {
|
||||
if (torc_info->wire_is_global[src_wire.index] && !torc_info->wire_is_global[next_wire.index]) {
|
||||
const auto &arc = torc_info->pip_to_arc[pip.index];
|
||||
const auto &next_tw = arc.getSinkTilewire();
|
||||
const auto &next_loc = torc_info->tile_to_xy[next_tw.getTileIndex()];
|
||||
const auto &dst_tw = torc_info->wire_to_tilewire[dst_wire.index];
|
||||
const auto &dst_loc = torc_info->tile_to_xy[dst_tw.getTileIndex()];
|
||||
if (next_loc.second != dst_loc.second || next_loc.first != dst_loc.first)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
WireId conflictWireWire = WireId(), conflictPipWire = WireId();
|
||||
NetInfo *conflictWireNet = nullptr, *conflictPipNet = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user