diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-08 19:36:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 19:36:05 +0200 |
commit | b326b03a5261a824f428fe0811a5376c8758b929 (patch) | |
tree | a13673a636ddbea3b5fd5585e3bb109b56b69435 /ice40/arch_pybindings.h | |
parent | cd4e761bb799ca99f02d3aa177961af28a93f2d8 (diff) | |
parent | f6189e4677c7bdaeaa5b9b796a67d750e6c7d49d (diff) | |
download | nextpnr-b326b03a5261a824f428fe0811a5376c8758b929.tar.gz nextpnr-b326b03a5261a824f428fe0811a5376c8758b929.tar.bz2 nextpnr-b326b03a5261a824f428fe0811a5376c8758b929.zip |
Merge pull request #45 from YosysHQ/constids
Get rid of PortPin and BelType
Diffstat (limited to 'ice40/arch_pybindings.h')
-rw-r--r-- | ice40/arch_pybindings.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ice40/arch_pybindings.h b/ice40/arch_pybindings.h index e502905f..070c2396 100644 --- a/ice40/arch_pybindings.h +++ b/ice40/arch_pybindings.h @@ -41,13 +41,6 @@ template <> struct string_converter<BelId> } }; -template <> struct string_converter<BelType> -{ - BelType from_str(Context *ctx, std::string name) { return ctx->belTypeFromId(ctx->id(name)); } - - std::string to_str(Context *ctx, BelType typ) { return ctx->belTypeToId(typ).str(ctx); } -}; - template <> struct string_converter<WireId> { WireId from_str(Context *ctx, std::string name) { return ctx->getWireByName(ctx->id(name)); } @@ -62,13 +55,6 @@ template <> struct string_converter<PipId> std::string to_str(Context *ctx, PipId id) { return ctx->getPipName(id).str(ctx); } }; -template <> struct string_converter<PortPin> -{ - PortPin from_str(Context *ctx, std::string name) { return ctx->portPinFromId(ctx->id(name)); } - - std::string to_str(Context *ctx, PortPin id) { return ctx->portPinToId(id).str(ctx); } -}; - } // namespace PythonConversion NEXTPNR_NAMESPACE_END |