Skip to content

Commit

Permalink
ecp5: Add DCU availability check
Browse files Browse the repository at this point in the history
Signed-off-by: David Shah <[email protected]>
  • Loading branch information
gatecat committed Nov 15, 2018
1 parent 02736d0 commit 01e0da1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ecp5/arch_place.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const

bel_cells.push_back(cell);
return slicesCompatible(bel_cells);
} else if (cell->type == id_DCUA || cell->type == id_EXTREFB || cell->type == id_PCSCLKDIV) {
return args.type != ArchArgs::LFE5U_25F && args.type != ArchArgs::LFE5U_45F && args.type != ArchArgs::LFE5U_85F;
} else {
// other checks
return true;
Expand Down

0 comments on commit 01e0da1

Please sign in to comment.