diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-18 16:08:19 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-18 16:08:19 +0200 |
commit | 7ef4d0726bc2502e0d7cb15b3961da894a4e19ba (patch) | |
tree | 8a52ec72bde347985695387ed84b6b04c2b09e89 /dummy | |
parent | 0dd185a14149216a1ef5fa8fcf49f510e68583d2 (diff) | |
download | nextpnr-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 'dummy')
-rw-r--r-- | dummy/arch.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dummy/arch.h b/dummy/arch.h index 9bd09f9d..865536dc 100644 --- a/dummy/arch.h +++ b/dummy/arch.h @@ -47,12 +47,6 @@ struct DelayInfo typedef IdString BelType; typedef IdString PortPin; -static inline IdString belTypeToId(BelType type) { return type; } -static inline IdString portPinToId(PortPin type) { return type; } - -static inline BelType belTypeFromId(IdString id) { return id; } -static inline PortPin portPinFromId(IdString id) { return id; } - typedef IdString BelId; typedef IdString WireId; typedef IdString PipId; @@ -76,6 +70,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 { return type; } + IdString portPinToId(PortPin type) const { return type; } + + BelType belTypeFromId(IdString id) const { return id; } + PortPin portPinFromId(IdString id) const { return id; } + BelId getBelByName(IdString name) const; IdString getBelName(BelId bel) const; void bindBel(BelId bel, IdString cell); |