aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/archdefs.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-13 05:03:46 +0100
committerClifford Wolf <clifford@clifford.at>2018-11-13 05:05:56 +0100
commit06e0e1ffeec9b06cecc213728c279b9235316df9 (patch)
tree1e4e209dfe961512370d1b5803f961303f1336c5 /ice40/archdefs.h
parente0fe52360621a51dc07f005dbe461db21c07f276 (diff)
downloadnextpnr-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.h3
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