aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/chip.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-06 16:01:31 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-06 16:01:31 +0200
commitf07682f515a7f4ddccf24e40c802f79feba7bed8 (patch)
tree5252c8a83dd229e0e36da3062c4757be7aa71820 /ice40/chip.h
parent9afa6a2016d3137ba61d924f25f4f077215f3eda (diff)
downloadnextpnr-f07682f515a7f4ddccf24e40c802f79feba7bed8.tar.gz
nextpnr-f07682f515a7f4ddccf24e40c802f79feba7bed8.tar.bz2
nextpnr-f07682f515a7f4ddccf24e40c802f79feba7bed8.zip
Add ice40 --test mode
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/chip.h')
-rw-r--r--ice40/chip.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ice40/chip.h b/ice40/chip.h
index 370fcc02..1f46ccd2 100644
--- a/ice40/chip.h
+++ b/ice40/chip.h
@@ -211,6 +211,9 @@ struct BelId
bool nil() const {
return index < 0;
}
+
+ bool operator==(const BelId &other) const { return index == other.index; }
+ bool operator!=(const BelId &other) const { return index != other.index; }
};
struct WireId
@@ -220,6 +223,9 @@ struct WireId
bool nil() const {
return index < 0;
}
+
+ bool operator==(const WireId &other) const { return index == other.index; }
+ bool operator!=(const WireId &other) const { return index != other.index; }
};
struct PipId
@@ -229,6 +235,9 @@ struct PipId
bool nil() const {
return index < 0;
}
+
+ bool operator==(const PipId &other) const { return index == other.index; }
+ bool operator!=(const PipId &other) const { return index != other.index; }
};
struct BelPin