aboutsummaryrefslogtreecommitdiffstats
path: root/common/fast_bels.h
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-01-29 14:55:10 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-02 07:34:56 -0800
commit9fe546f279cd643a308322ffa6af622630892315 (patch)
tree8a9d7ad300ecf376f4b75b3cc7d6e237b47e6813 /common/fast_bels.h
parent11c80c048b31261da14c04f79566b9e1debb29f9 (diff)
downloadnextpnr-9fe546f279cd643a308322ffa6af622630892315.tar.gz
nextpnr-9fe546f279cd643a308322ffa6af622630892315.tar.bz2
nextpnr-9fe546f279cd643a308322ffa6af622630892315.zip
Rename Partition -> BelBucket.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'common/fast_bels.h')
-rw-r--r--common/fast_bels.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/fast_bels.h b/common/fast_bels.h
index 33eb4952..2301bc7d 100644
--- a/common/fast_bels.h
+++ b/common/fast_bels.h
@@ -83,7 +83,7 @@ struct FastBels {
}
}
- void addPartition(PartitionId partition) {
+ void addBelBucket(BelBucketId partition) {
auto iter = partition_types.find(partition);
if(iter != partition_types.end()) {
// This partition has already been added to the fast BEL lookup.
@@ -98,7 +98,7 @@ struct FastBels {
auto &bel_data = fast_bels_by_partition_type.at(type_idx);
for (auto bel : ctx->getBels()) {
- if(ctx->getPartitionForBel(bel) != partition) {
+ if(ctx->getBelBucketForBel(bel) != partition) {
continue;
}
@@ -110,7 +110,7 @@ struct FastBels {
continue;
}
- if(ctx->getPartitionForBel(bel) != partition) {
+ if(ctx->getBelBucketForBel(bel) != partition) {
continue;
}
@@ -147,10 +147,10 @@ struct FastBels {
return cell_type_data.number_of_possible_bels;
}
- size_t getBelsForPartition(PartitionId partition, FastBelsData **data) {
+ size_t getBelsForBelBucket(BelBucketId partition, FastBelsData **data) {
auto iter = partition_types.find(partition);
if(iter == partition_types.end()) {
- addPartition(partition);
+ addBelBucket(partition);
iter = partition_types.find(partition);
NPNR_ASSERT(iter != partition_types.end());
}
@@ -168,7 +168,7 @@ struct FastBels {
std::unordered_map<IdString, TypeData> cell_types;
std::vector<FastBelsData> fast_bels_by_cell_type;
- std::unordered_map<PartitionId, TypeData> partition_types;
+ std::unordered_map<BelBucketId, TypeData> partition_types;
std::vector<FastBelsData> fast_bels_by_partition_type;
};