From 297cd026b9e87ce40ebf781cb86608b43cfbdd55 Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Thu, 4 Feb 2021 11:57:08 +0000 Subject: Add default implementation of bel bucket functions Signed-off-by: D. Shah --- ecp5/arch_pybindings.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'ecp5/arch_pybindings.h') diff --git a/ecp5/arch_pybindings.h b/ecp5/arch_pybindings.h index 4228f12b..f2a7dabe 100644 --- a/ecp5/arch_pybindings.h +++ b/ecp5/arch_pybindings.h @@ -76,18 +76,6 @@ template <> struct string_converter } }; -template <> struct string_converter -{ - BelBucketId from_str(Context *ctx, std::string name) { return ctx->getBelBucketByName(ctx->id(name)); } - - std::string to_str(Context *ctx, BelBucketId id) - { - if (id == BelBucketId()) - throw bad_wrap(); - return ctx->getBelBucketName(id).str(ctx); - } -}; - template <> struct string_converter { BelPin from_str(Context *ctx, std::string name) -- cgit v1.2.3