1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-24 19:40:12 +00:00

python: Developing context wrappers for maps

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah
2018-07-03 10:55:32 +02:00
parent 45ec502ded
commit a382d906ef
5 changed files with 87 additions and 27 deletions

View File

@@ -107,9 +107,9 @@ BOOST_PYTHON_MODULE(MODULE_NAME)
// WRAP_MAP(decltype(CellInfo::ports), "IdPortMap");
// WRAP_MAP(decltype(CellInfo::pins), "IdIdMap");
class_<BaseCtx, BaseCtx *, boost::noncopyable>("BaseCtx", no_init)
.add_property("nets", make_getter(&Context::nets, return_internal_reference<>()))
.add_property("cells", make_getter(&Context::cells, return_internal_reference<>()));
class_<BaseCtx, BaseCtx *, boost::noncopyable>("BaseCtx", no_init);
//.add_property("nets", make_getter(&Context::nets, return_internal_reference<>()))
//.add_property("cells", make_getter(&Context::cells, return_internal_reference<>()));
// WRAP_MAP_UPTR(decltype(Context::nets), "IdNetMap");
// WRAP_MAP_UPTR(decltype(Context::cells), "IdCellMap");