aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-04-15 11:16:31 +0100
committerGitHub <noreply@github.com>2021-04-15 11:16:31 +0100
commit6fbefb8f1388dbb2bfe059624f7cb76ee9a81c5e (patch)
tree13c01e1186b3e3dde288cb49c8838a40d4a7273b /common
parent1631cdffb8a5a84d86669a286bdf32c9714d631d (diff)
parentd4aac6586cc463bb14195289b510866ebe5e4092 (diff)
downloadnextpnr-6fbefb8f1388dbb2bfe059624f7cb76ee9a81c5e.tar.gz
nextpnr-6fbefb8f1388dbb2bfe059624f7cb76ee9a81c5e.tar.bz2
nextpnr-6fbefb8f1388dbb2bfe059624f7cb76ee9a81c5e.zip
Merge pull request #681 from YosysHQ/gatecat/more-pybindings
Add Python bindings for placement tests
Diffstat (limited to 'common')
-rw-r--r--common/arch_pybindings_shared.h3
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");