aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2020-07-09 13:03:43 +0200
committerSylvain Munaut <tnt@246tNt.com>2020-07-09 13:04:19 +0200
commit33067130e51242b4b18992c22c4fbd7c9e659b7e (patch)
treeba53770c797a0e51ddfac93f42c1a7cb9343f232 /ice40
parent3cafb16aa634d2bc369077d8d36760d23973a35b (diff)
downloadnextpnr-33067130e51242b4b18992c22c4fbd7c9e659b7e.tar.gz
nextpnr-33067130e51242b4b18992c22c4fbd7c9e659b7e.tar.bz2
nextpnr-33067130e51242b4b18992c22c4fbd7c9e659b7e.zip
ice40: If IO is used by SB_GB_IO, can't use it for PLL
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'ice40')
-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)