aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/archdefs.h
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-02-05 11:36:19 +0000
committerD. Shah <dave@ds0.me>2021-02-05 19:19:17 +0000
commit59c3db46cabf9914b01451ac724ba3da33fe6f42 (patch)
treea3089b81422e6c162b0bdd1fdf7673db494e7dd4 /ice40/archdefs.h
parenta8a27299ae46143c9fadb1d9153a964492525f4a (diff)
downloadnextpnr-59c3db46cabf9914b01451ac724ba3da33fe6f42.tar.gz
nextpnr-59c3db46cabf9914b01451ac724ba3da33fe6f42.tar.bz2
nextpnr-59c3db46cabf9914b01451ac724ba3da33fe6f42.zip
ice40: Switch to BaseArch
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ice40/archdefs.h')
-rw-r--r--ice40/archdefs.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h
index c0a6ac66..33227c6c 100644
--- a/ice40/archdefs.h
+++ b/ice40/archdefs.h
@@ -170,14 +170,7 @@ struct ArchCellInfo
};
};
-struct BelBucketId
-{
- IdString name;
-
- 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; }
-};
+typedef IdString BelBucketId;
NEXTPNR_NAMESPACE_END
@@ -223,14 +216,4 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId>
}
};
-template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelBucketId>
-{
- 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>()(bucket.name));
- return seed;
- }
-};
-
} // namespace std