Add Python bindings for placement tests
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
8f5185c381
commit
d4aac6586c
@ -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");
|
||||
|
@ -44,6 +44,11 @@ void arch_wrap_python(py::module &m)
|
||||
.def("place", &Context::place)
|
||||
.def("route", &Context::route);
|
||||
|
||||
fn_wrapper_0a_v<Context, decltype(&Context::remove_site_routing), &Context::remove_site_routing>::def_wrap(
|
||||
ctx_cls, "remove_site_routing");
|
||||
fn_wrapper_1a_v<Context, decltype(&Context::explain_bel_status), &Context::explain_bel_status,
|
||||
conv_from_str<BelId>>::def_wrap(ctx_cls, "explain_bel_status");
|
||||
|
||||
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, IdString> AliasMap;
|
||||
|
Loading…
Reference in New Issue
Block a user