From d3b53d8e1a36abe835a39847aaeb79e045062b8c Mon Sep 17 00:00:00 2001 From: YRabbit Date: Mon, 8 Apr 2024 21:50:40 +1000 Subject: [PATCH] Gowin. PLL Pads. Fix the condition. Do not search for pads if the signal source for the PLL is something other than the IO pin - these are guaranteed to already be placed and have a bound Bel. Signed-off-by: YRabbit --- himbaechel/uarch/gowin/pack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/himbaechel/uarch/gowin/pack.cc b/himbaechel/uarch/gowin/pack.cc index c28a9eea..e20ac712 100644 --- a/himbaechel/uarch/gowin/pack.cc +++ b/himbaechel/uarch/gowin/pack.cc @@ -2646,7 +2646,7 @@ struct GowinPacker // to this pin. if (ci.bel == BelId()) { NetInfo *ni = ci.getPort(id_CLKIN); - if (ni && ni->driver.cell) { + if (ni && ni->driver.cell && ni->driver.cell->bel != BelId()) { BelId pll_bel = gwu.get_pll_bel(ni->driver.cell->bel, id_CLKIN_T); if (ctx->debug) { log_info("PLL clkin driver:%s at %s, PLL bel:%s\n", ctx->nameOf(ni->driver.cell),