diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-11-13 05:03:46 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-11-13 05:05:56 +0100 |
commit | 06e0e1ffeec9b06cecc213728c279b9235316df9 (patch) | |
tree | 1e4e209dfe961512370d1b5803f961303f1336c5 /ice40/archdefs.h | |
parent | e0fe52360621a51dc07f005dbe461db21c07f276 (diff) | |
download | nextpnr-06e0e1ffeec9b06cecc213728c279b9235316df9.tar.gz nextpnr-06e0e1ffeec9b06cecc213728c279b9235316df9.tar.bz2 nextpnr-06e0e1ffeec9b06cecc213728c279b9235316df9.zip |
Various router1 fixes, Add BelId/WireId/PipId::operator<()
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/archdefs.h')
-rw-r--r-- | ice40/archdefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h index c04033e7..b9614c07 100644 --- a/ice40/archdefs.h +++ b/ice40/archdefs.h @@ -66,6 +66,7 @@ struct BelId bool operator==(const BelId &other) const { return index == other.index; } bool operator!=(const BelId &other) const { return index != other.index; } + bool operator<(const BelId &other) const { return index < other.index; } }; struct WireId @@ -74,6 +75,7 @@ struct WireId bool operator==(const WireId &other) const { return index == other.index; } bool operator!=(const WireId &other) const { return index != other.index; } + bool operator<(const WireId &other) const { return index < other.index; } }; struct PipId @@ -82,6 +84,7 @@ struct PipId bool operator==(const PipId &other) const { return index == other.index; } bool operator!=(const PipId &other) const { return index != other.index; } + bool operator<(const PipId &other) const { return index < other.index; } }; struct GroupId |