diff options
author | David Shah <dave@ds0.me> | 2019-04-01 12:25:32 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-04-01 12:25:32 +0100 |
commit | d27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b (patch) | |
tree | 117e0f97b039849770eab57dee3a82c4041ac043 | |
parent | db152b332b310725861f98966f98e785de7f304f (diff) | |
download | nextpnr-d27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b.tar.gz nextpnr-d27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b.tar.bz2 nextpnr-d27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b.zip |
ice40: Don't constrain to a PLL bel that has already been used
Fixes #258
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r-- | ice40/pack.cc | 2 | ||||
m--------- | tests | 0 |
2 files changed, 2 insertions, 0 deletions
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)) { diff --git a/tests b/tests -Subproject fb53a97322c32620385af6657596681c0044a32 +Subproject 0d369eb3fe3425fa74c0f6309268a012aac5040 |