aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'gowin/arch.h')
-rw-r--r--gowin/arch.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gowin/arch.h b/gowin/arch.h
index f7379a3c..6304a15c 100644
--- a/gowin/arch.h
+++ b/gowin/arch.h
@@ -430,30 +430,30 @@ struct Arch : BaseCtx
return cell_types;
}
- std::vector<PartitionId> getPartitions() const {
+ std::vector<BelBucketId> getBelBuckets() const {
return cell_types;
}
- IdString getPartitionName(PartitionId partition) const {
- return partition;
+ IdString getBelBucketName(BelBucketId bucket) const {
+ return bucket;
}
- PartitionId getPartitionByName(IdString name) const {
+ BelBucketId getBelBucketByName(IdString name) const {
return name;
}
- 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(getBelType(bel) == partition) {
+ if(getBelType(bel) == bucket) {
bels.push_back(bel);
}
}