From 9fe546f279cd643a308322ffa6af622630892315 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Fri, 29 Jan 2021 14:55:10 -0800 Subject: Rename Partition -> BelBucket. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- generic/arch.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'generic/arch.h') 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 getPartitions() const { + std::vector 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 getBelsForPartition(PartitionId partition) const { + std::vector getBelsInBucket(BelBucketId bucket) const { std::vector bels; for(BelId bel : getBels()) { - if(partition == getPartitionForBel(bel)) { + if(bucket == getBelBucketForBel(bel)) { bels.push_back(bel); } } -- cgit v1.2.3