From 8c69a3bba3d72dd445f1003d470c3ed5ed06c5d4 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 17 Nov 2018 10:19:08 +0100 Subject: [PATCH] ice40/pack: Make sure we don't use a LOCKED bel when placing PLL Signed-off-by: Sylvain Munaut --- ice40/pack.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ice40/pack.cc b/ice40/pack.cc index e0a9f6ad..d0142fa3 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -838,6 +838,8 @@ static void pack_special(Context *ctx) for (auto bel : ctx->getBels()) { if (ctx->getBelType(bel) != id_ICESTORM_PLL) continue; + if (ctx->isBelLocked(bel)) + continue; // A PAD PLL must have its' PACKAGEPIN on the SB_IO that's shared // with PLLOUT_A.