aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.h')
-rw-r--r--ice40/arch.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index 18fc3aeb..ddad1658 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -830,36 +830,36 @@ struct Arch : BaseCtx
return cell_types;
}
- std::vector<PartitionId> getPartitions() const {
- return partitions;
+ std::vector<BelBucketId> getBelBuckets() const {
+ return buckets;
}
- IdString getPartitionName(PartitionId partition) const {
- return partition.name;
+ IdString getBelBucketName(BelBucketId bucket) const {
+ return bucket.name;
}
- PartitionId getPartitionByName(IdString name) const {
- PartitionId partition;
- partition.name = name;
- return partition;
+ BelBucketId getBelBucketByName(IdString name) const {
+ BelBucketId bucket;
+ bucket.name = name;
+ return bucket;
}
- PartitionId getPartitionForBel(BelId bel) const {
- PartitionId partition;
- partition.name = getBelType(bel);
- return partition;
+ BelBucketId getBelBucketForBel(BelId bel) const {
+ BelBucketId bucket;
+ bucket.name = getBelType(bel);
+ return bucket;
}
- PartitionId getPartitionForCellType(IdString cell_type) const {
- PartitionId partition;
- partition.name = cell_type;
- return partition;
+ BelBucketId getBelBucketForCellType(IdString cell_type) const {
+ BelBucketId bucket;
+ bucket.name = cell_type;
+ return bucket;
}
- 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.name) {
+ if(getBelType(bel) == bucket.name) {
bels.push_back(bel);
}
}
@@ -909,7 +909,7 @@ struct Arch : BaseCtx
static const std::vector<std::string> availableRouters;
std::vector<IdString> cell_types;
- std::vector<PartitionId> partitions;
+ std::vector<BelBucketId> buckets;
};
void ice40DelayFuzzerMain(Context *ctx);