mirror of https://github.com/YosysHQ/nextpnr.git
allow only some pass trough for clock router
This commit is contained in:
parent
5fc81d6d8d
commit
fe4584d55e
|
|
@ -151,6 +151,12 @@ void GateMateImpl::route_clock()
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto dh : ctx->getPipsDownhill(curr.wire)) {
|
for (auto dh : ctx->getPipsDownhill(curr.wire)) {
|
||||||
|
const auto &extra_data = *pip_extra_data(dh);
|
||||||
|
// Allow only CINY2->COUTY2 pass through for clock router
|
||||||
|
if (extra_data.type == PipExtra::PIP_EXTRA_MUX && extra_data.resource != 0) {
|
||||||
|
if (!(extra_data.resource == PipMask::C_CY2_I && extra_data.value ==0))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!ctx->checkPipAvailForNet(dh, clk_net))
|
if (!ctx->checkPipAvailForNet(dh, clk_net))
|
||||||
continue;
|
continue;
|
||||||
WireId dst = ctx->getPipDstWire(dh);
|
WireId dst = ctx->getPipDstWire(dh);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue