aboutsummaryrefslogtreecommitdiffstats
path: root/generic/arch_pybindings.cc
diff options
context:
space:
mode:
authormyrtle <gatecat@ds0.me>2022-08-04 11:48:46 +0200
committerGitHub <noreply@github.com>2022-08-04 11:48:46 +0200
commit06ce27ed38279cfa3455e248ea2b2c773cdf6324 (patch)
tree95604b304192f63c6d2f3753e21568ba4596f7d1 /generic/arch_pybindings.cc
parent1b54fa2a1c1fae82315916f3b92f6282f376c861 (diff)
parent37f0886cb9e949cb49250f973a852c816b5ab892 (diff)
downloadnextpnr-06ce27ed38279cfa3455e248ea2b2c773cdf6324.tar.gz
nextpnr-06ce27ed38279cfa3455e248ea2b2c773cdf6324.tar.bz2
nextpnr-06ce27ed38279cfa3455e248ea2b2c773cdf6324.zip
Merge pull request #1008 from YosysHQ/gatecat/generic-addbelpin
generic: addBelPin with direction as an arg
Diffstat (limited to 'generic/arch_pybindings.cc')
-rw-r--r--generic/arch_pybindings.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/arch_pybindings.cc b/generic/arch_pybindings.cc
index e0a2f0f2..a5a0bed9 100644
--- a/generic/arch_pybindings.cc
+++ b/generic/arch_pybindings.cc
@@ -105,6 +105,12 @@ void arch_wrap_python(py::module &m)
fn_wrapper_3a_v<Context, decltype(&Context::addBelInout), &Context::addBelInout, conv_from_str<BelId>,
conv_from_str<IdString>, conv_from_str<WireId>>::def_wrap(ctx_cls, "addBelInout", "bel"_a, "name"_a,
"wire"_a);
+ fn_wrapper_4a_v<Context, decltype(&Context::addBelPin), &Context::addBelPin, conv_from_str<BelId>,
+ conv_from_str<IdString>, conv_from_str<WireId>, pass_through<PortType>>::def_wrap(ctx_cls,
+ "addBelPin",
+ "bel"_a, "name"_a,
+ "wire"_a,
+ "type"_a);
fn_wrapper_2a_v<Context, decltype(&Context::addGroupBel), &Context::addGroupBel, conv_from_str<IdStringList>,
conv_from_str<BelId>>::def_wrap(ctx_cls, "addGroupBel", "group"_a, "bel"_a);