From d27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 1 Apr 2019 12:25:32 +0100 Subject: ice40: Don't constrain to a PLL bel that has already been used Fixes #258 Signed-off-by: David Shah --- ice40/pack.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ice40') diff --git a/ice40/pack.cc b/ice40/pack.cc index 4de88abd..b1efe5b2 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -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)) { -- cgit v1.2.3