diff --git a/common/base_arch.h b/common/base_arch.h index 8ed77790..e9cc8cf0 100644 --- a/common/base_arch.h +++ b/common/base_arch.h @@ -428,7 +428,7 @@ template struct BaseArch : ArchAPI return result; }); BelId child_bel = this->getBelByLocation(child_loc); - if (child_bel == BelId() || !this->isValidBelForCellType(child->type, root_bel)) + if (child_bel == BelId() || !this->isValidBelForCellType(child->type, child_bel)) return false; placement.emplace_back(child, child_bel); }