aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-11 15:12:27 +0000
committerDavid Shah <dave@ds0.me>2018-11-11 15:12:27 +0000
commit9e5aded5c6583e36604aa09d22d3b2de3ff47905 (patch)
tree0bf957f745f5252822789239b663d0141dad18b1
parent2d35d99ed27bdbe3c654a642aa4c1cc4d4d2cb70 (diff)
downloadnextpnr-9e5aded5c6583e36604aa09d22d3b2de3ff47905.tar.gz
nextpnr-9e5aded5c6583e36604aa09d22d3b2de3ff47905.tar.bz2
nextpnr-9e5aded5c6583e36604aa09d22d3b2de3ff47905.zip
ecp5: Fix 85k PLL_LR
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--ecp5/bitstream.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index 95256732..6d43b369 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -385,6 +385,7 @@ std::vector<std::string> get_pll_tiles(Context *ctx, BelId bel)
std::string name = ctx->locInfo(bel)->bel_data[bel.index].name.get();
std::vector<std::string> tiles;
Loc loc = ctx->getBelLocation(bel);
+ static const std::set<std::string> pll1_lr = {"PLL1_LR", "BANKREF4"};
if (name == "EHXPLL_UL") {
tiles.push_back(ctx->getTileByTypeAndLocation(loc.y, loc.x - 1, "PLL0_UL"));
@@ -394,7 +395,7 @@ std::vector<std::string> get_pll_tiles(Context *ctx, BelId bel)
tiles.push_back(ctx->getTileByTypeAndLocation(loc.y + 1, loc.x + 1, "BANKREF8"));
} else if (name == "EHXPLL_LR") {
tiles.push_back(ctx->getTileByTypeAndLocation(loc.y + 1, loc.x, "PLL0_LR"));
- tiles.push_back(ctx->getTileByTypeAndLocation(loc.y + 1, loc.x - 1, "PLL1_LR"));
+ tiles.push_back(ctx->getTileByTypeAndLocation(loc.y + 1, loc.x - 1, pll1_lr));
} else if (name == "EHXPLL_UR") {
tiles.push_back(ctx->getTileByTypeAndLocation(loc.y, loc.x - 1, "PLL0_UR"));
tiles.push_back(ctx->getTileByTypeAndLocation(loc.y + 1, loc.x - 1, "PLL1_UR"));