ice40: Don't constrain to a PLL bel that has already been used

Fixes #258

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-04-01 12:25:32 +01:00
parent db152b332b
commit d27ec2cd15
2 changed files with 3 additions and 1 deletions

View File

@ -858,6 +858,8 @@ static void place_plls(Context *ctx)
// Find a BEL for it
BelId found_bel;
for (auto bel_pll : pll_all_bels) {
if (pll_used_bels.count(bel_pll.first))
continue;
BelPin pll_io_a, pll_io_b;
std::tie(pll_io_a, pll_io_b) = bel_pll.second;
if (bel2io.count(pll_io_a.bel)) {

2
tests

@ -1 +1 @@
Subproject commit fb53a97322c32620385af6657596681c0044a32e
Subproject commit 0d369eb3fe3425fa74c0f6309268a012aac50409