aboutsummaryrefslogtreecommitdiffstats
path: root/common/base_arch.h
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-06 12:23:28 +0100
committergatecat <gatecat@ds0.me>2021-05-06 12:23:28 +0100
commit1bf202adcd1028035dc28a723666fc424ceb6831 (patch)
tree7d95f4e279c90c5d98c0cfdb7d79bf364050a5e5 /common/base_arch.h
parentc82df9e40d5ac722f4274abe84c9b4851200f1db (diff)
downloadnextpnr-1bf202adcd1028035dc28a723666fc424ceb6831.tar.gz
nextpnr-1bf202adcd1028035dc28a723666fc424ceb6831.tar.bz2
nextpnr-1bf202adcd1028035dc28a723666fc424ceb6831.zip
base_arch: Fix typo in getClusterPlacement
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/base_arch.h')
-rw-r--r--common/base_arch.h2
1 files changed, 1 insertions, 1 deletions
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 <typename R> struct BaseArch : ArchAPI<R>
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);
}