From 1ce0b5add2cb06449ae6b759a07aba5078d7b105 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 5 Aug 2018 16:21:13 +0200 Subject: API change: Use CellInfo* and NetInfo* as cell/net handles (Python bindings) Signed-off-by: David Shah --- ice40/arch_pybindings.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ice40/arch_pybindings.cc') diff --git a/ice40/arch_pybindings.cc b/ice40/arch_pybindings.cc index 98164e87..1d16ade0 100644 --- a/ice40/arch_pybindings.cc +++ b/ice40/arch_pybindings.cc @@ -70,13 +70,13 @@ void arch_wrap_python() fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getBelChecksum"); fn_wrapper_3a_v, - conv_from_str, pass_through>::def_wrap(ctx_cls, "bindBel"); + addr_and_unwrap, pass_through>::def_wrap(ctx_cls, "bindBel"); fn_wrapper_1a_v>::def_wrap( ctx_cls, "unbindBel"); - fn_wrapper_1a, + fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getBoundBelCell"); fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getConflictingBelCell"); + deref_and_wrap, conv_from_str>::def_wrap(ctx_cls, "getConflictingBelCell"); fn_wrapper_0a>::def_wrap(ctx_cls, "getBels"); @@ -88,15 +88,15 @@ void arch_wrap_python() fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getWireChecksum"); fn_wrapper_3a_v, - conv_from_str, pass_through>::def_wrap(ctx_cls, "bindWire"); + addr_and_unwrap, pass_through>::def_wrap(ctx_cls, "bindWire"); fn_wrapper_1a_v>::def_wrap( ctx_cls, "unbindWire"); fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "checkWireAvail"); - fn_wrapper_1a, + fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getBoundWireNet"); fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getConflictingWireNet"); + deref_and_wrap, conv_from_str>::def_wrap(ctx_cls, "getConflictingWireNet"); fn_wrapper_0a>::def_wrap( ctx_cls, "getWires"); @@ -106,15 +106,15 @@ void arch_wrap_python() fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getPipChecksum"); fn_wrapper_3a_v, - conv_from_str, pass_through>::def_wrap(ctx_cls, "bindPip"); + addr_and_unwrap, pass_through>::def_wrap(ctx_cls, "bindPip"); fn_wrapper_1a_v>::def_wrap( ctx_cls, "unbindPip"); fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "checkPipAvail"); - fn_wrapper_1a, + fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getBoundPipNet"); fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getConflictingPipNet"); + deref_and_wrap, conv_from_str>::def_wrap(ctx_cls, "getConflictingPipNet"); fn_wrapper_1a, conv_from_str>::def_wrap(ctx_cls, "getPipsDownhill"); -- cgit v1.2.3