diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-01-29 14:55:10 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-02 07:34:56 -0800 |
commit | 9fe546f279cd643a308322ffa6af622630892315 (patch) | |
tree | 8a9d7ad300ecf376f4b75b3cc7d6e237b47e6813 /gowin | |
parent | 11c80c048b31261da14c04f79566b9e1debb29f9 (diff) | |
download | nextpnr-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 'gowin')
-rw-r--r-- | gowin/arch.h | 16 | ||||
-rw-r--r-- | gowin/archdefs.h | 2 |
2 files changed, 9 insertions, 9 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); } } diff --git a/gowin/archdefs.h b/gowin/archdefs.h index 96ab5c6d..2efe1437 100644 --- a/gowin/archdefs.h +++ b/gowin/archdefs.h @@ -72,7 +72,7 @@ typedef IdString WireId; typedef IdString PipId; typedef IdString GroupId; typedef IdString DecalId; -typedef IdString PartitionId; +typedef IdString BelBucketId; struct ArchNetInfo { |