aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/archdefs.h
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-11-13 12:12:11 -0800
committerEddie Hung <eddieh@ece.ubc.ca>2018-11-13 12:12:11 -0800
commit2d39cde17be718d76e6f5c06c8f06c70d44c7918 (patch)
tree8b0e0f98125b2ec7fdb55c9644c524753a7a1cd5 /ice40/archdefs.h
parentba7a7a3733c493fc950d5bedbc49b4c78b451b3d (diff)
parent3b2b15dc4a6cdf9cadab96b1db5483d4f7082dff (diff)
downloadnextpnr-2d39cde17be718d76e6f5c06c8f06c70d44c7918.tar.gz
nextpnr-2d39cde17be718d76e6f5c06c8f06c70d44c7918.tar.bz2
nextpnr-2d39cde17be718d76e6f5c06c8f06c70d44c7918.zip
Merge remote-tracking branch 'origin/master' into timingapi
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