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 /ice40/archdefs.h | |
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 'ice40/archdefs.h')
-rw-r--r-- | ice40/archdefs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h index 1b7821b0..37249331 100644 --- a/ice40/archdefs.h +++ b/ice40/archdefs.h @@ -170,12 +170,12 @@ struct ArchCellInfo }; }; -struct PartitionId { +struct BelBucketId { IdString name; - bool operator==(const PartitionId &other) const { return (name == other.name); } - bool operator!=(const PartitionId &other) const { return (name != other.name); } - bool operator<(const PartitionId &other) const + bool operator==(const BelBucketId &other) const { return (name == other.name); } + bool operator!=(const BelBucketId &other) const { return (name != other.name); } + bool operator<(const BelBucketId &other) const { return name < other.name; } @@ -225,12 +225,12 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId> } }; -template <> struct hash<NEXTPNR_NAMESPACE_PREFIX PartitionId> +template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelBucketId> { - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX PartitionId &partition) const noexcept + std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelBucketId &bucket) const noexcept { std::size_t seed = 0; - boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX IdString>()(partition.name)); + boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX IdString>()(bucket.name)); return seed; } }; |