diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-08 17:01:18 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-08 17:01:18 +0200 |
commit | e03ae50e21abdcb05a887c467b97968b1cbdb460 (patch) | |
tree | d169d5f0373f74185f0e2f89970b70b545c6ca3d /ice40/arch_pybindings.h | |
parent | 8553573d2485ac2ec60d1c49949c254e02d35490 (diff) | |
download | nextpnr-e03ae50e21abdcb05a887c467b97968b1cbdb460.tar.gz nextpnr-e03ae50e21abdcb05a887c467b97968b1cbdb460.tar.bz2 nextpnr-e03ae50e21abdcb05a887c467b97968b1cbdb460.zip |
Get rid of PortPin and BelType (ice40, generic, docs)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
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 |