aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/archdefs.h
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-08 17:56:08 +0000
committerGitHub <noreply@github.com>2021-02-08 17:56:08 +0000
commitbcf81f0e711a443818089bde707f708c8d18dd23 (patch)
treed8e98d35bccb0bd5f0c715d429fff9dbd11f3b90 /ecp5/archdefs.h
parentf501ba0c77723242cbd1752128f00d5b4ee093c9 (diff)
parent2932dc3985181afbf88a87e58ee27dfcca433625 (diff)
downloadnextpnr-bcf81f0e711a443818089bde707f708c8d18dd23.tar.gz
nextpnr-bcf81f0e711a443818089bde707f708c8d18dd23.tar.bz2
nextpnr-bcf81f0e711a443818089bde707f708c8d18dd23.zip
Merge pull request #568 from YosysHQ/dave/arch-override
Create a new BaseArch that formally specifies the Arch API and provides some base implementations
Diffstat (limited to 'ecp5/archdefs.h')
-rw-r--r--ecp5/archdefs.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index 3bc75ab4..c8fdf892 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -126,14 +126,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
{
@@ -271,14 +264,4 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId>
}
};
-template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelBucketId>
-{
- std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelBucketId &partition) const noexcept
- {
- std::size_t seed = 0;
- boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX IdString>()(partition.name));
- return seed;
- }
-};
-
} // namespace std