aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-18 16:08:19 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-18 16:08:19 +0200
commit7ef4d0726bc2502e0d7cb15b3961da894a4e19ba (patch)
tree8a52ec72bde347985695387ed84b6b04c2b09e89 /ice40/arch.h
parent0dd185a14149216a1ef5fa8fcf49f510e68583d2 (diff)
downloadnextpnr-7ef4d0726bc2502e0d7cb15b3961da894a4e19ba.tar.gz
nextpnr-7ef4d0726bc2502e0d7cb15b3961da894a4e19ba.tar.bz2
nextpnr-7ef4d0726bc2502e0d7cb15b3961da894a4e19ba.zip
Getting rid of users of old IdString API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/arch.h')
-rw-r--r--ice40/arch.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index b49451b9..2702e70e 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -55,9 +55,6 @@ enum BelType : int32_t
TYPE_SB_GB
};
-IdString belTypeToId(BelType type);
-BelType belTypeFromId(IdString id);
-
enum PortPin : int32_t
{
PIN_NONE,
@@ -67,9 +64,6 @@ enum PortPin : int32_t
PIN_MAXIDX
};
-IdString portPinToId(PortPin type);
-PortPin portPinFromId(IdString id);
-
// -----------------------------------------------------------------------
/**** Everything in this section must be kept in sync with chipdb.py ****/
@@ -480,6 +474,12 @@ struct Arch
virtual IdString id(const std::string &s) const { abort(); }
virtual IdString id(const char *s) const { abort(); }
+ IdString belTypeToId(BelType type) const;
+ BelType belTypeFromId(IdString id) const;
+
+ IdString portPinToId(PortPin type) const;
+ PortPin portPinFromId(IdString id) const;
+
// -------------------------------------------------
BelId getBelByName(IdString name) const;