aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-08-23 20:51:53 +0100
committergatecat <gatecat@ds0.me>2021-08-23 20:51:53 +0100
commitde311e052fdb749d4acfd6608f6b416a4206e6ae (patch)
tree6b4b34b50d53018b6efaaa8f39bb4b75a64ea99f /common
parent897a2fccb64ac52ec4d3ce728fad91c3a5a96ff1 (diff)
downloadnextpnr-de311e052fdb749d4acfd6608f6b416a4206e6ae.tar.gz
nextpnr-de311e052fdb749d4acfd6608f6b416a4206e6ae.tar.bz2
nextpnr-de311e052fdb749d4acfd6608f6b416a4206e6ae.zip
python: Allow querying route delays
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/arch_pybindings_shared.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/arch_pybindings_shared.h b/common/arch_pybindings_shared.h
index 46f1f9be..f44aa70e 100644
--- a/common/arch_pybindings_shared.h
+++ b/common/arch_pybindings_shared.h
@@ -27,6 +27,9 @@ fn_wrapper_2a_v<Context, decltype(&Context::addBelToRegion), &Context::addBelToR
fn_wrapper_2a_v<Context, decltype(&Context::constrainCellToRegion), &Context::constrainCellToRegion,
conv_from_str<IdString>, conv_from_str<IdString>>::def_wrap(ctx_cls, "constrainCellToRegion");
+fn_wrapper_2a<Context, decltype(&Context::getNetinfoRouteDelay), &Context::getNetinfoRouteDelay, pass_through<delay_t>,
+ addr_and_unwrap<NetInfo>, unwrap_context<PortRef &>>::def_wrap(ctx_cls, "getNetinfoRouteDelay");
+
fn_wrapper_1a<Context, decltype(&Context::createNet), &Context::createNet, deref_and_wrap<NetInfo>,
conv_from_str<IdString>>::def_wrap(ctx_cls, "createNet");
fn_wrapper_3a_v<Context, decltype(&Context::connectPort), &Context::connectPort, conv_from_str<IdString>,