From 9089ee2d1631fe2346143823c2896a2a85a27e8b Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Fri, 29 Jan 2021 15:35:00 -0800 Subject: Add pybindings for new APIs. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- common/arch_pybindings_shared.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'common') diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h index 88f95020..b8ea7b17 100644 --- a/common/arch_pybindings_shared.h +++ b/common/arch_pybindings_shared.h @@ -110,3 +110,19 @@ fn_wrapper_0a, pass_through>::def_wrap(ctx_cls, "writeSVG"); + +// const\_range\ getBelBuckets() const +fn_wrapper_0a>::def_wrap(ctx_cls, + "getBelBuckets"); +// BelBucketId getBelBucketForBel(BelId bel) const +fn_wrapper_1a, + conv_from_str>::def_wrap(ctx_cls, "getBelBucketForBel"); +// BelBucketId getBelBucketForCellType(IdString cell\_type) const +fn_wrapper_1a, + conv_from_str>::def_wrap(ctx_cls, "getBelBucketForCellType"); +// const\_range\ getBelsInBucket(BelBucketId bucket) const +fn_wrapper_1a, + conv_from_str>::def_wrap(ctx_cls, "getBelsInBucket"); +// bool isValidBelForCellType(IdString cell\_type, BelId bel) const +fn_wrapper_2a, + conv_from_str, conv_from_str>::def_wrap(ctx_cls, "isValidBelForCellType"); -- cgit v1.2.3