CIRCT 24.0.0git
Loading...
Searching...
No Matches
esiaccel.types.CallbackPort Class Reference
Inheritance diagram for esiaccel.types.CallbackPort:
Collaboration diagram for esiaccel.types.CallbackPort:

Public Member Functions

 __init__ (self, HWModule owner, cpp.BundlePort cpp_port)
 connect (self, Callable[[Any], Any] cb)
Public Member Functions inherited from esiaccel.types.BundlePort
 __new__ (cls, HWModule owner, cpp.BundlePort cpp_port)
 __init__ (self, HWModule owner, cpp.BundlePort cpp_port)
WritePort write_port (self, str channel_name)
ReadPort read_port (self, str channel_name)

Public Attributes

 arg_type = arg_port.type
 arg_window_type = arg_port.window_type
 result_type = result_port.type
 result_window_type = result_port.window_type
bool connected = False
Public Attributes inherited from esiaccel.types.BundlePort
 owner = owner
 cpp_port = cpp_port

Detailed Description

Callback ports are the inverse of function ports -- instead of calls to the
accelerator, they get called from the accelerator. Specify the function which
you'd like the accelerator to call when you call `connect`.

Definition at line 772 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.CallbackPort.__init__ ( self,
HWModule owner,
cpp.BundlePort cpp_port )

Definition at line 777 of file types.py.

References __init__(), and esiaccel.types.BundlePort.read_port().

Referenced by __init__().

Member Function Documentation

◆ connect()

Member Data Documentation

◆ arg_type

esiaccel.types.CallbackPort.arg_type = arg_port.type

Definition at line 780 of file types.py.

Referenced by connect().

◆ arg_window_type

esiaccel.types.CallbackPort.arg_window_type = arg_port.window_type

Definition at line 781 of file types.py.

◆ connected

bool esiaccel.types.CallbackPort.connected = False

◆ result_type

esiaccel.types.CallbackPort.result_type = result_port.type

Definition at line 783 of file types.py.

Referenced by connect().

◆ result_window_type

esiaccel.types.CallbackPort.result_window_type = result_port.window_type

Definition at line 784 of file types.py.


The documentation for this class was generated from the following file: