diff options
author | David Shah <dave@ds0.me> | 2020-07-12 14:54:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 14:54:47 +0100 |
commit | 9a621cf49c25b639d0052e343613310b4dd4e541 (patch) | |
tree | ba53770c797a0e51ddfac93f42c1a7cb9343f232 | |
parent | 3cafb16aa634d2bc369077d8d36760d23973a35b (diff) | |
parent | 33067130e51242b4b18992c22c4fbd7c9e659b7e (diff) | |
download | nextpnr-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.cc | 3 |
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) |