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

Public Member Functions

 __init__ (self, HWModule owner, cpp.BundlePort cpp_port)
 connect (self)
Future read (self)
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

 data_type = data_port.type
 data_window_type = data_port.window_type
bool connected = False
Public Attributes inherited from esiaccel.types.BundlePort
 owner = owner
 cpp_port = cpp_port

Detailed Description

A channel which reads data from the accelerator (to_host).

Definition at line 825 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 828 of file types.py.

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

Referenced by __init__().

Member Function Documentation

◆ connect()

◆ read()

Future esiaccel.types.ToHostPort.read ( self)
Read a value from the channel. Returns a future.

Definition at line 839 of file types.py.

References esiaccel.types.BundlePort.cpp_port, esiaccel.types.Port.cpp_port, esiaccel.types.ReadPort.cpp_port, esiaccel.types.WritePort.cpp_port, data_type, and read().

Referenced by read().

Member Data Documentation

◆ connected

bool esiaccel.types.ToHostPort.connected = False

Definition at line 833 of file types.py.

Referenced by esiaccel.types.FromHostPort.connect(), and connect().

◆ data_type

esiaccel.types.ToHostPort.data_type = data_port.type

Definition at line 831 of file types.py.

Referenced by read(), and esiaccel.types.FromHostPort.write().

◆ data_window_type

esiaccel.types.ToHostPort.data_window_type = data_port.window_type

Definition at line 832 of file types.py.


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