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

Public Member Functions

 __init__ (self, HWModule owner, cpp.BundlePort cpp_port)
 connect (self)
Future call (self, *Any args, **Any kwargs)
Future __call__ (self, *Any args, **Any kwds)
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

A pair of channels which carry the input and output of a function.

Definition at line 727 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 730 of file types.py.

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

Referenced by __init__().

Member Function Documentation

◆ __call__()

◆ call()

Future esiaccel.types.FunctionPort.call ( self,
*Any args,
**Any kwargs )
Call the function with the given argument and returns a future of the
result.

Definition at line 744 of file types.py.

References arg_type, call(), esiaccel.types.BundlePort.cpp_port, esiaccel.types.Port.cpp_port, esiaccel.types.ReadPort.cpp_port, esiaccel.types.WritePort.cpp_port, result_type, and esiaccel.types.MessageFuture.result_type.

Referenced by __call__(), and call().

◆ connect()

Member Data Documentation

◆ arg_type

esiaccel.types.FunctionPort.arg_type = arg_port.type

Definition at line 733 of file types.py.

Referenced by call(), and esiaccel.types.CallbackPort.connect().

◆ arg_window_type

esiaccel.types.FunctionPort.arg_window_type = arg_port.window_type

Definition at line 734 of file types.py.

◆ connected

bool esiaccel.types.FunctionPort.connected = False

◆ result_type

esiaccel.types.FunctionPort.result_type = result_port.type

Definition at line 736 of file types.py.

Referenced by call(), and esiaccel.types.CallbackPort.connect().

◆ result_window_type

esiaccel.types.FunctionPort.result_window_type = result_port.window_type

Definition at line 737 of file types.py.


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