ecp5: Add DCU availability check

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2018-11-11 15:36:00 +00:00
parent 02736d0680
commit 01e0da16f0

View File

@ -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;