diff options
author | David Shah <dave@ds0.me> | 2018-12-14 12:16:29 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-03-22 10:31:54 +0000 |
commit | 493d6c3fb93fb7ffe96609ded9e392b327b2c86c (patch) | |
tree | 4313450f58034da4dca68ebcb2ac8fe956fda025 /ice40 | |
parent | ae33ff397f5bc97d047639a7fb76d5d888050cb2 (diff) | |
download | nextpnr-493d6c3fb93fb7ffe96609ded9e392b327b2c86c.tar.gz nextpnr-493d6c3fb93fb7ffe96609ded9e392b327b2c86c.tar.bz2 nextpnr-493d6c3fb93fb7ffe96609ded9e392b327b2c86c.zip |
Add Python helper functions for floorplanning
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch_pybindings.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ice40/arch_pybindings.cc b/ice40/arch_pybindings.cc index f0ca584b..bc0bfb84 100644 --- a/ice40/arch_pybindings.cc +++ b/ice40/arch_pybindings.cc @@ -144,6 +144,13 @@ void arch_wrap_python() fn_wrapper_2a_v<Context, decltype(&Context::addClock), &Context::addClock, conv_from_str<IdString>, pass_through<float>>::def_wrap(ctx_cls, "addClock"); + fn_wrapper_5a_v<Context, decltype(&Context::createRectangularRegion), &Context::createRectangularRegion, + conv_from_str<IdString>, pass_through<int>, pass_through<int>, pass_through<int>, + pass_through<int>>::def_wrap(ctx_cls, "createRectangularRegion"); + fn_wrapper_2a_v<Context, decltype(&Context::addBelToRegion), &Context::addBelToRegion, conv_from_str<IdString>, + conv_from_str<BelId>>::def_wrap(ctx_cls, "addBelToRegion"); + fn_wrapper_2a_v<Context, decltype(&Context::constrainCellToRegion), &Context::constrainCellToRegion, + conv_from_str<IdString>, conv_from_str<IdString>>::def_wrap(ctx_cls, "constrainCellToRegion"); WRAP_RANGE(Bel, conv_to_str<BelId>); WRAP_RANGE(Wire, conv_to_str<WireId>); |