aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-07-12 14:54:47 +0100
committerGitHub <noreply@github.com>2020-07-12 14:54:47 +0100
commit9a621cf49c25b639d0052e343613310b4dd4e541 (patch)
treeba53770c797a0e51ddfac93f42c1a7cb9343f232
parent3cafb16aa634d2bc369077d8d36760d23973a35b (diff)
parent33067130e51242b4b18992c22c4fbd7c9e659b7e (diff)
downloadnextpnr-9a621cf49c25b639d0052e343613310b4dd4e541.tar.gz
nextpnr-9a621cf49c25b639d0052e343613310b4dd4e541.tar.bz2
nextpnr-9a621cf49c25b639d0052e343613310b4dd4e541.zip
Merge pull request #471 from smunaut/fix-pll-gbio-conflict
ice40: If IO is used by SB_GB_IO, can't use it for PLL
-rw-r--r--ice40/pack.cc3
1 files changed, 2 insertions, 1 deletions
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)