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:
parent
db152b332b
commit
d27ec2cd15
@ -858,6 +858,8 @@ static void place_plls(Context *ctx)
|
|||||||
// Find a BEL for it
|
// Find a BEL for it
|
||||||
BelId found_bel;
|
BelId found_bel;
|
||||||
for (auto bel_pll : pll_all_bels) {
|
for (auto bel_pll : pll_all_bels) {
|
||||||
|
if (pll_used_bels.count(bel_pll.first))
|
||||||
|
continue;
|
||||||
BelPin pll_io_a, pll_io_b;
|
BelPin pll_io_a, pll_io_b;
|
||||||
std::tie(pll_io_a, pll_io_b) = bel_pll.second;
|
std::tie(pll_io_a, pll_io_b) = bel_pll.second;
|
||||||
if (bel2io.count(pll_io_a.bel)) {
|
if (bel2io.count(pll_io_a.bel)) {
|
||||||
|
2
tests
2
tests
@ -1 +1 @@
|
|||||||
Subproject commit fb53a97322c32620385af6657596681c0044a32e
|
Subproject commit 0d369eb3fe3425fa74c0f6309268a012aac50409
|
Loading…
Reference in New Issue
Block a user