aboutsummaryrefslogtreecommitdiffstats
path: root/common/arch_pybindings_shared.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-09-15 19:30:56 +0100
committerDavid Shah <dave@ds0.me>2019-09-15 19:30:56 +0100
commit5cd2b55f1f0ad729e95f344a5e8f4c8d00400669 (patch)
tree29843555f3d713e77efda46913c50ed90c93deb3 /common/arch_pybindings_shared.h
parentd5e4986e1bf6e79b81beb1bc8a1086dd01931ea5 (diff)
downloadnextpnr-5cd2b55f1f0ad729e95f344a5e8f4c8d00400669.tar.gz
nextpnr-5cd2b55f1f0ad729e95f344a5e8f4c8d00400669.tar.bz2
nextpnr-5cd2b55f1f0ad729e95f344a5e8f4c8d00400669.zip
python: Adding helper functions for netlist modification
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/arch_pybindings_shared.h')
-rw-r--r--common/arch_pybindings_shared.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h
index b547dabf..b90e80ec 100644
--- a/common/arch_pybindings_shared.h
+++ b/common/arch_pybindings_shared.h
@@ -20,6 +20,22 @@ fn_wrapper_2a_v<Context, decltype(&Context::constrainCellToRegion), &Context::co
conv_from_str<IdString>, conv_from_str<IdString>>::def_wrap(ctx_cls, "constrainCellToRegion");
+fn_wrapper_1a<Context, decltype(&Context::createNet), &Context::createNet, deref_and_wrap<NetInfo>,
+conv_from_str<IdString>>::def_wrap(ctx_cls, "createNet");
+fn_wrapper_3a_v<Context, decltype(&Context::connectPort), &Context::connectPort, conv_from_str<IdString>, conv_from_str<IdString>,
+conv_from_str<IdString>>::def_wrap(ctx_cls, "connectPort");
+fn_wrapper_2a_v<Context, decltype(&Context::disconnectPort), &Context::disconnectPort, conv_from_str<IdString>,
+conv_from_str<IdString>>::def_wrap(ctx_cls, "disconnectPort");
+fn_wrapper_1a_v<Context, decltype(&Context::ripupNet), &Context::ripupNet, conv_from_str<IdString>>::def_wrap(
+ ctx_cls, "ripupNet");
+fn_wrapper_1a_v<Context, decltype(&Context::lockNetRouting), &Context::lockNetRouting, conv_from_str<IdString>>::def_wrap(
+ ctx_cls, "lockNetRouting");
+
+fn_wrapper_2a<Context, decltype(&Context::createCell), &Context::createCell, deref_and_wrap<CellInfo>,
+conv_from_str<IdString>, conv_from_str<IdString>>::def_wrap(ctx_cls, "createCell");
+fn_wrapper_2a_v<Context, decltype(&Context::copyBelPorts), &Context::copyBelPorts,
+conv_from_str<IdString>, conv_from_str<BelId>>::def_wrap(ctx_cls, "copyBelPorts");
+
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::checkBelAvail), &Context::checkBelAvail, pass_through<bool>,