aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-11 15:36:00 +0000
committerDavid Shah <dave@ds0.me>2018-11-15 11:30:27 +0000
commit01e0da16f0cb8fffb78b476b912edbd676106b04 (patch)
tree5c14e3e476c3b87a39b529c15ab8e3f9118d25a0 /ecp5
parent02736d06800dbbab6eef9d2660e9d481874dd7ae (diff)
downloadnextpnr-01e0da16f0cb8fffb78b476b912edbd676106b04.tar.gz
nextpnr-01e0da16f0cb8fffb78b476b912edbd676106b04.tar.bz2
nextpnr-01e0da16f0cb8fffb78b476b912edbd676106b04.zip
ecp5: Add DCU availability check
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch_place.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ecp5/arch_place.cc b/ecp5/arch_place.cc
index 6fcd8bde..41f87cb8 100644
--- a/ecp5/arch_place.cc
+++ b/ecp5/arch_place.cc
@@ -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;