diff options
author | gatecat <gatecat@ds0.me> | 2021-12-14 20:09:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 20:09:57 +0000 |
commit | 762125d3cfa26f5718d409a33c2cf57b157f692b (patch) | |
tree | 1acd5dc88596ff537e57c35bdeeade83deda497a /common/arch_pybindings_shared.h | |
parent | 256134d6158b59831462f26f0011627eda10beb2 (diff) | |
parent | a120ae1fa7be5bac98e77755a6220df59e443b16 (diff) | |
download | nextpnr-762125d3cfa26f5718d409a33c2cf57b157f692b.tar.gz nextpnr-762125d3cfa26f5718d409a33c2cf57b157f692b.tar.bz2 nextpnr-762125d3cfa26f5718d409a33c2cf57b157f692b.zip |
Merge pull request #872 from YosysHQ/gatecat/py-loc-api
python: Bind getBelLocation/getPipLocation
Diffstat (limited to 'common/arch_pybindings_shared.h')
-rw-r--r-- | common/arch_pybindings_shared.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h index f44aa70e..b3dc0506 100644 --- a/common/arch_pybindings_shared.h +++ b/common/arch_pybindings_shared.h @@ -48,6 +48,8 @@ fn_wrapper_2a_v<Context, decltype(&Context::copyBelPorts), &Context::copyBelPort fn_wrapper_1a<Context, decltype(&Context::getBelType), &Context::getBelType, conv_to_str<IdString>, conv_from_str<BelId>>::def_wrap(ctx_cls, "getBelType"); +fn_wrapper_1a<Context, decltype(&Context::getBelLocation), &Context::getBelLocation, pass_through<Loc>, + conv_from_str<BelId>>::def_wrap(ctx_cls, "getBelLocation"); fn_wrapper_1a<Context, decltype(&Context::checkBelAvail), &Context::checkBelAvail, pass_through<bool>, conv_from_str<BelId>>::def_wrap(ctx_cls, "checkBelAvail"); fn_wrapper_1a<Context, decltype(&Context::getBelChecksum), &Context::getBelChecksum, pass_through<uint32_t>, @@ -92,6 +94,8 @@ fn_wrapper_0a<Context, decltype(&Context::getPips), &Context::getPips, wrap_cont "getPips"); fn_wrapper_1a<Context, decltype(&Context::getPipChecksum), &Context::getPipChecksum, pass_through<uint32_t>, conv_from_str<PipId>>::def_wrap(ctx_cls, "getPipChecksum"); +fn_wrapper_1a<Context, decltype(&Context::getPipLocation), &Context::getPipLocation, pass_through<Loc>, + conv_from_str<PipId>>::def_wrap(ctx_cls, "getPipLocation"); fn_wrapper_3a_v<Context, decltype(&Context::bindPip), &Context::bindPip, conv_from_str<PipId>, addr_and_unwrap<NetInfo>, pass_through<PlaceStrength>>::def_wrap(ctx_cls, "bindPip"); fn_wrapper_1a_v<Context, decltype(&Context::unbindPip), &Context::unbindPip, conv_from_str<PipId>>::def_wrap( |