diff options
author | gatecat <gatecat@ds0.me> | 2021-04-15 10:00:45 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-04-15 10:00:45 +0100 |
commit | d4aac6586cc463bb14195289b510866ebe5e4092 (patch) | |
tree | 21567c5f7a7ada3ff810e52b3830d8bb9b6eb207 /common/arch_pybindings_shared.h | |
parent | 8f5185c3814f5fcf90aa33b07b99568d465bb5cd (diff) | |
download | nextpnr-d4aac6586cc463bb14195289b510866ebe5e4092.tar.gz nextpnr-d4aac6586cc463bb14195289b510866ebe5e4092.tar.bz2 nextpnr-d4aac6586cc463bb14195289b510866ebe5e4092.zip |
Add Python bindings for placement tests
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/arch_pybindings_shared.h')
-rw-r--r-- | common/arch_pybindings_shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h index ef355a54..69d7025f 100644 --- a/common/arch_pybindings_shared.h +++ b/common/arch_pybindings_shared.h @@ -116,6 +116,9 @@ fn_wrapper_0a<Context, decltype(&Context::archId), &Context::archId, conv_to_str fn_wrapper_2a_v<Context, decltype(&Context::writeSVG), &Context::writeSVG, pass_through<std::string>, pass_through<std::string>>::def_wrap(ctx_cls, "writeSVG"); +fn_wrapper_1a<Context, decltype(&Context::isBelLocationValid), &Context::isBelLocationValid, pass_through<bool>, + conv_from_str<BelId>>::def_wrap(ctx_cls, "isBelLocationValid"); + // const\_range\<BelBucketId\> getBelBuckets() const fn_wrapper_0a<Context, decltype(&Context::getBelBuckets), &Context::getBelBuckets, wrap_context<BelBucketRange>>::def_wrap(ctx_cls, "getBelBuckets"); |