From 33067130e51242b4b18992c22c4fbd7c9e659b7e Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Thu, 9 Jul 2020 13:03:43 +0200 Subject: ice40: If IO is used by SB_GB_IO, can't use it for PLL Signed-off-by: Sylvain Munaut --- ice40/pack.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ice40') diff --git a/ice40/pack.cc b/ice40/pack.cc index e27d42e5..b8783953 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -869,7 +869,8 @@ static void place_plls(Context *ctx) if (!io_ci->attrs.count(ctx->id("BEL"))) continue; if ((!io_ci->ports.count(id_D_IN_0) || (io_ci->ports[id_D_IN_0].net == nullptr)) && - (!io_ci->ports.count(id_D_IN_1) || (io_ci->ports[id_D_IN_1].net == nullptr))) + (!io_ci->ports.count(id_D_IN_1) || (io_ci->ports[id_D_IN_1].net == nullptr)) && + !bool_or_default(io_ci->attrs, ctx->id("GLOBAL"))) continue; // Check all placed PLL (either forced by user, or forced by PACKAGEPIN) -- cgit v1.2.3