aboutsummaryrefslogtreecommitdiffstats
path: root/generic
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 /generic
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 'generic')
-rw-r--r--generic/arch.h18
-rw-r--r--generic/archdefs.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/generic/arch.h b/generic/arch.h
index 85c98814..924115a7 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -281,30 +281,30 @@ struct Arch : BaseCtx
return cell_types;
}
- std::vector<PartitionId> getPartitions() const {
+ std::vector<BelBucketId> getBelBuckets() const {
return getCellTypes();
}
- IdString getPartitionName(PartitionId partition) const {
- return partition;
+ IdString getBelBucketName(BelBucketId bucket) const {
+ return bucket;
}
- PartitionId getPartitionByName(IdString partition) const {
- return partition;
+ BelBucketId getBelBucketByName(IdString bucket) const {
+ return bucket;
}
- PartitionId getPartitionForBel(BelId bel) const {
+ BelBucketId getBelBucketForBel(BelId bel) const {
return getBelType(bel);
}
- PartitionId getPartitionForCellType(IdString cell_type) const {
+ BelBucketId getBelBucketForCellType(IdString cell_type) const {
return cell_type;
}
- std::vector<BelId> getBelsForPartition(PartitionId partition) const {
+ std::vector<BelId> getBelsInBucket(BelBucketId bucket) const {
std::vector<BelId> bels;
for(BelId bel : getBels()) {
- if(partition == getPartitionForBel(bel)) {
+ if(bucket == getBelBucketForBel(bel)) {
bels.push_back(bel);
}
}
diff --git a/generic/archdefs.h b/generic/archdefs.h
index cb78249a..7623bf40 100644
--- a/generic/archdefs.h
+++ b/generic/archdefs.h
@@ -51,7 +51,7 @@ typedef IdString WireId;
typedef IdString PipId;
typedef IdString GroupId;
typedef IdString DecalId;
-typedef IdString PartitionId;
+typedef IdString BelBucketId;
struct ArchNetInfo
{