diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/place.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/place.cc b/common/place.cc index 0223c78f..b187b0f0 100644 --- a/common/place.cc +++ b/common/place.cc @@ -28,6 +28,7 @@ #include <string.h> #include <vector> +#include "arch_place.h" #include "log.h" #include "place.h" @@ -102,7 +103,8 @@ void place_design(Design *design) while ((bi != blist.end()) && ((design->chip.getBelType(*bi) != bel_type || - !design->chip.checkBelAvail(*bi)))) + !design->chip.checkBelAvail(*bi)) || + !isValidBelForCell(design, cell, *bi))) bi++; if (bi == blist.end()) log_error("Too many \'%s\' used in design\n", |