aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/archdefs.h
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-02-05 11:49:31 +0000
committerD. Shah <dave@ds0.me>2021-02-05 19:19:17 +0000
commitf5d2e245e172e2481639dedc3f9b6870f069742a (patch)
treeb48021373a3f44dbc0384bb56bd2951ca7fe7971 /nexus/archdefs.h
parent59c3db46cabf9914b01451ac724ba3da33fe6f42 (diff)
downloadnextpnr-f5d2e245e172e2481639dedc3f9b6870f069742a.tar.gz
nextpnr-f5d2e245e172e2481639dedc3f9b6870f069742a.tar.bz2
nextpnr-f5d2e245e172e2481639dedc3f9b6870f069742a.zip
nexus: Switch to BaseArch
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'nexus/archdefs.h')
-rw-r--r--nexus/archdefs.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/nexus/archdefs.h b/nexus/archdefs.h
index 7e427e06..de5e17c8 100644
--- a/nexus/archdefs.h
+++ b/nexus/archdefs.h
@@ -114,14 +114,7 @@ struct PipId
}
};
-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;
struct GroupId
{
@@ -260,14 +253,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