CIRCT 21.0.0git
|
Public Member Functions | |
__init__ (self, BundlePort owner, cpp.WriteChannelPort cpp_port) | |
bool | write (self, msg=None) |
bool | try_write (self, msg=None) |
![]() | |
connect (self, Optional[int] buffer_size=None) | |
disconnect (self) | |
Private Member Functions | |
bytearray | __serialize_msg (self, msg=None) |
Additional Inherited Members | |
![]() | |
owner | |
cpp_port | |
type | |
A unidirectional communication channel from the host to the accelerator.
esiaccel.types.WritePort.__init__ | ( | self, | |
BundlePort | owner, | ||
cpp.WriteChannelPort | cpp_port | ||
) |
Reimplemented from esiaccel.types.Port.
Definition at line 317 of file types.py.
References esiaccel.types.WritePort.__init__(), esiaccel.types.Port.cpp_port, and esiaccel.types.BundlePort.cpp_port.
Referenced by esiaccel.types.WritePort.__init__().
|
private |
Definition at line 321 of file types.py.
References FIRRTLBundleField.type, FIRRTLClassElement.type, HWStructFieldInfo.type, HWModulePort.type, circt::HWArithToHWTypeConverter::ConvertedType.type, circt::arc::StateInfo.type, circt::calyx::PortInfo.type, circt::esi::ServicePortInfo.type, circt::esi::BundledChannel.type, circt::firrtl::PortInfo.type, circt::firrtl::ClassElement.type, circt::hw::ModulePort.type, circt::hw::detail::FieldInfo.type, circt::hw::detail::OffsetFieldInfo.type, circt::moore::StructLikeMember.type, circt::om::evaluator::ReferenceValue.type, circt::om::evaluator::AttributeValue.type, circt::om::evaluator::ListValue.type, circt::om::evaluator::MapValue.type, circt::om::evaluator::TupleValue.type, circt::rtg::DictEntry.type, circt::systemc::detail::PortInfo.type, hw.ModuleLike.type(), fsm.MachineOp.type(), hw.HWModuleOp.type(), hw.HWModuleExternOp.type(), Python.support.OpOperand.type(), esi::Constant.type, esi::ChannelAssignment.type, esi::ChannelPort.type, esi::BundlePort.type, esiaccel.types.Port.type, ResetSignal.type, Property.type, NonHWField.type, FlatBundleFieldEntry.type, Def.type, SetStorage.type, BagStorage.type, ArrayStorage.type, IdentityValue.type, EmittedExpr.type, and FunctionRewrite.type.
Referenced by esiaccel.types.WritePort.try_write(), and esiaccel.types.WritePort.write().
bool esiaccel.types.WritePort.try_write | ( | self, | |
msg = None |
|||
) |
Like 'write', but uses the non-blocking tryWrite method of the underlying port. Returns True if the write was successful, False otherwise.
Definition at line 336 of file types.py.
References esiaccel.types.WritePort.__serialize_msg(), esiaccel.types.Port.cpp_port, and esiaccel.types.BundlePort.cpp_port.
bool esiaccel.types.WritePort.write | ( | self, | |
msg = None |
|||
) |
Write a typed message to the channel. Attempts to serialize 'msg' to what the accelerator expects, but will fail if the object is not convertible to the port type.
Definition at line 329 of file types.py.
References esiaccel.types.WritePort.__serialize_msg(), esiaccel.types.Port.cpp_port, esiaccel.types.BundlePort.cpp_port, and esiaccel.types.WritePort.write().
Referenced by esiaccel.types.WritePort.write().