Make python bindings consistent
This commit is contained in:
parent
7a95629aff
commit
929a1cc7e4
@ -57,10 +57,13 @@ void arch_wrap_python()
|
|||||||
.def("place", &Context::place)
|
.def("place", &Context::place)
|
||||||
.def("route", &Context::route);
|
.def("route", &Context::route);
|
||||||
|
|
||||||
|
fn_wrapper_2a<Context, decltype(&Context::isValidBelForCell), &Context::isValidBelForCell, pass_through<bool>,
|
||||||
|
addr_and_unwrap<CellInfo>, conv_from_str<BelId>>::def_wrap(ctx_cls, "isValidBelForCell");
|
||||||
|
|
||||||
typedef std::unordered_map<IdString, std::unique_ptr<CellInfo>> CellMap;
|
typedef std::unordered_map<IdString, std::unique_ptr<CellInfo>> CellMap;
|
||||||
typedef std::unordered_map<IdString, std::unique_ptr<NetInfo>> NetMap;
|
typedef std::unordered_map<IdString, std::unique_ptr<NetInfo>> NetMap;
|
||||||
typedef std::unordered_map<IdString, HierarchicalCell> HierarchyMap;
|
|
||||||
typedef std::unordered_map<IdString, IdString> AliasMap;
|
typedef std::unordered_map<IdString, IdString> AliasMap;
|
||||||
|
typedef std::unordered_map<IdString, HierarchicalCell> HierarchyMap;
|
||||||
|
|
||||||
auto belpin_cls = class_<ContextualWrapper<BelPin>>("BelPin", no_init);
|
auto belpin_cls = class_<ContextualWrapper<BelPin>>("BelPin", no_init);
|
||||||
readonly_wrapper<BelPin, decltype(&BelPin::bel), &BelPin::bel, conv_to_str<BelId>>::def_wrap(belpin_cls, "bel");
|
readonly_wrapper<BelPin, decltype(&BelPin::bel), &BelPin::bel, conv_to_str<BelId>>::def_wrap(belpin_cls, "bel");
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
#include "nextpnr.h"
|
#include "nextpnr.h"
|
||||||
#include "pybindings.h"
|
#include "pybindings.h"
|
||||||
#include "pywrappers.h"
|
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_BEGIN
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user