aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pybindings.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-07 15:04:07 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-07 15:04:07 +0200
commit1d39924c1417295c8c24598d362293f0eff2af89 (patch)
tree57b73c4b044cc5d24de682c58a20c632e1170916 /ice40/pybindings.cc
parent547d4fe3ee192ca96280626cefdbe6d180d0ef75 (diff)
downloadnextpnr-1d39924c1417295c8c24598d362293f0eff2af89.tar.gz
nextpnr-1d39924c1417295c8c24598d362293f0eff2af89.tar.bz2
nextpnr-1d39924c1417295c8c24598d362293f0eff2af89.zip
ice40: More Python bindings and examples
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/pybindings.cc')
-rw-r--r--ice40/pybindings.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/ice40/pybindings.cc b/ice40/pybindings.cc
index fb5d7763..f19afce4 100644
--- a/ice40/pybindings.cc
+++ b/ice40/pybindings.cc
@@ -66,7 +66,22 @@ void arch_wrap_python()
.def("getBelName", &Chip::getBelName)
.def("getWireName", &Chip::getWireName)
.def("getBels", &Chip::getBels)
- .def("getWires", &Chip::getWires);
+ .def("getBelType", &Chip::getBelType)
+ .def("getWireBelPin", &Chip::getWireBelPin)
+ .def("getBelPinUphill", &Chip::getBelPinUphill)
+ .def("getBelPinsDownhill", &Chip::getBelPinsDownhill)
+ .def("getWires", &Chip::getWires)
+ .def("getPipByName", &Chip::getPipByName)
+ .def("getPipName", &Chip::getPipName)
+ .def("getPips", &Chip::getPips)
+ .def("getPipSrcWire", &Chip::getPipSrcWire)
+ .def("getPipDstWire", &Chip::getPipDstWire)
+ .def("getPipDelay", &Chip::getPipDelay)
+ .def("getPipsDownhill", &Chip::getPipsDownhill)
+ .def("getPipsUphill", &Chip::getPipsUphill)
+ .def("getWireAliases", &Chip::getWireAliases)
+ .def("getBelPosition", &Chip::getBelPosition)
+ .def("getWirePosition", &Chip::getWirePosition);
WRAP_RANGE(Bel);
WRAP_RANGE(BelPin);