diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-03-19 17:18:01 -0700 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-03-22 09:25:45 -0700 |
commit | 4cd74bba2c010e4d714ec72fe11128069ea0495a (patch) | |
tree | 1b029844f3c6dd57156a05548031a0b453c64845 /common | |
parent | 53ed6979a964f3eaaabc0d97399eec9b4c3347f9 (diff) | |
download | nextpnr-4cd74bba2c010e4d714ec72fe11128069ea0495a.tar.gz nextpnr-4cd74bba2c010e4d714ec72fe11128069ea0495a.tar.bz2 nextpnr-4cd74bba2c010e4d714ec72fe11128069ea0495a.zip |
Add getBelPinType to Python interface.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/arch_pybindings_shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h index 81469df3..ef355a54 100644 --- a/common/arch_pybindings_shared.h +++ b/common/arch_pybindings_shared.h @@ -60,6 +60,8 @@ fn_wrapper_0a<Context, decltype(&Context::getBels), &Context::getBels, wrap_cont fn_wrapper_2a<Context, decltype(&Context::getBelPinWire), &Context::getBelPinWire, conv_to_str<WireId>, conv_from_str<BelId>, conv_from_str<IdString>>::def_wrap(ctx_cls, "getBelPinWire"); +fn_wrapper_2a<Context, decltype(&Context::getBelPinType), &Context::getBelPinType, pass_through<PortType>, + conv_from_str<BelId>, conv_from_str<IdString>>::def_wrap(ctx_cls, "getBelPinType"); fn_wrapper_1a<Context, decltype(&Context::getWireBelPins), &Context::getWireBelPins, wrap_context<BelPinRange>, conv_from_str<WireId>>::def_wrap(ctx_cls, "getWireBelPins"); |