CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
esiaccel.types.TypeAlias Class Reference
Inheritance diagram for esiaccel.types.TypeAlias:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.types.TypeAlias:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, str id, str name, "ESIType" inner_type)
 
Tuple[bool, Optional[str]] is_valid (self, obj)
 
bytearray serialize (self, obj)
 
Tuple[object, bytearray] deserialize (self, bytearray data)
 
str __str__ (self)
 
- Public Member Functions inherited from esiaccel.types.ESIType
 wrap_cpp (cls, cpp.Type cpp_type)
 
str id (self)
 
Tuple[bool, Optional[str]] supports_host (self)
 
int bit_width (self)
 
int max_size (self)
 
int __hash__ (self)
 
bool __eq__ (self, other)
 

Public Attributes

 name
 
 inner_type
 
- Public Attributes inherited from esiaccel.types.ESIType
 cpp_type
 
 id
 

Protected Member Functions

 _init_from_cpp (self, cpp.TypeAliasType cpp_type)
 

Detailed Description

Definition at line 540 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.types.TypeAlias.__init__ (   self,
str  id,
str  name,
"ESIType"  inner_type 
)

Member Function Documentation

◆ __str__()

str esiaccel.types.TypeAlias.__str__ (   self)

Reimplemented from esiaccel.types.ESIType.

Definition at line 559 of file types.py.

References CirctESIBundleTypeBundleChannel.name, FIRRTLBundleField.name, FIRRTLClassElement.name, HWStructFieldInfo.name, HWUnionFieldInfo.name, HWModulePort.name, circt::DIModule.name, circt::DIInstance.name, circt::DIVariable.name, circt::arc::StateInfo.name, circt::arc::ModelInfo.name, circt::calyx::PortInfo.name, circt::esi::BundledChannel.name, circt::firrtl::TargetToken.name, circt::firrtl::TokenAnnoTarget.name, circt::firrtl::PortInfo.name, circt::firrtl::ClassElement.name, circt::hw::ModulePort.name, circt::hw::detail::FieldInfo.name, circt::hw::detail::OffsetFieldInfo.name, circt::moore::DPIArgInfo.name, circt::moore::StructLikeMember.name, circt::rtg::DictEntry.name, circt::sim::DPIArgument.name, circt::systemc::detail::PortInfo.name, circt::systemc::IntBaseType.name, circt::systemc::IntType.name, circt::systemc::UIntBaseType.name, circt::systemc::UIntType.name, circt::systemc::SignedType.name, circt::systemc::BigIntType.name, circt::systemc::UnsignedType.name, circt::systemc::BigUIntType.name, circt::systemc::BitVectorBaseType.name, circt::systemc::BitVectorType.name, circt::systemc::LogicVectorBaseType.name, circt::systemc::LogicVectorType.name, circt::scheduling::Problem.name, circt::scheduling::CyclicProblem.name, circt::scheduling::ChainingProblem.name, circt::scheduling::SharedOperatorsProblem.name, circt::scheduling::ModuloProblem.name, circt::scheduling::ChainingCyclicProblem.name, hw.ModuleLike.name(), hw.HWModuleOp.name(), hw.HWModuleExternOp.name(), sv.SVVerbatimModuleOp.name(), synth.Object.name(), Python.setup.NoopBuildExtension.name, CompileFSMVisitor::StateScopeGuard.name, LibertyGroup.name, LibertyGroup::AttrEntry.name, circt::ImportVerilog::FlattenedIfacePort.name, esi::backends::cosim::RpcClient::ChannelDesc.name, esi::AppID.name, esi::ModuleInfo.name, esi::ServicePortDesc.name, esi::TypeAliasType.name, esi::WindowType::Field.name, esi::WindowType::Frame.name, esi::WindowType.name, WriteCosimChannelPort.name, ReadCosimChannelPort.name, esi::backends::cosim::RpcClient::Impl::ChannelMeta.name, esi::cosim::RpcServer::Impl::ChannelInfo.name, esiaccel.types.BundleType.Channel.name, esiaccel.types.WindowType.Field.name, esiaccel.types.WindowType.Frame.name, esiaccel.types.WindowType.name, esiaccel.types.TypeAlias.name, setup.NoopBuildExtension.name, circt::firrtl::detail::BaseTypeAliasStorage.name, circt::firrtl::detail::ClassTypeStorage.name, AnnotationInfo.name, yaml::DescribedInstance.name, llvm::yaml::MappingContextTraits< DescribedSignal, Context >::Field.name, llvm::yaml::MappingContextTraits< DescribedInstance, Context >::Instance.name, llvm::yaml::MappingContextTraits< sv::InterfaceOp, Context >::Interface.name, CompanionInfo.name, Property.name, NamedValue.name, ExplicitRegsPass::RoutedValue.name, SymbolicComputationStorage.name, UniqueLabelStorage.name, SymbolicComputationWithIdentityStorage.name, TestState.name, and EmittedType.name.

◆ _init_from_cpp()

esiaccel.types.TypeAlias._init_from_cpp (   self,
cpp.TypeAliasType  cpp_type 
)
protected

◆ deserialize()

Tuple[object, bytearray] esiaccel.types.TypeAlias.deserialize (   self,
bytearray  data 
)
Convert a bytearray to a Python object. Return the object and the
leftover bytes.

Reimplemented from esiaccel.types.ESIType.

Definition at line 556 of file types.py.

References esiaccel.types.TypeAlias.deserialize(), esiaccel.types.ChannelType.inner_type, and esiaccel.types.TypeAlias.inner_type.

Referenced by esiaccel.types.TypeAlias.deserialize().

◆ is_valid()

Tuple[bool, Optional[str]] esiaccel.types.TypeAlias.is_valid (   self,
  obj 
)
Is a Python object compatible with HW type?  Returns either '(True,
None)' if it is, or '(False, reason)' if it is not.

Reimplemented from esiaccel.types.ESIType.

Definition at line 550 of file types.py.

References esiaccel.types.ChannelType.inner_type, esiaccel.types.TypeAlias.inner_type, and esiaccel.types.TypeAlias.is_valid().

Referenced by esiaccel.types.TypeAlias.is_valid().

◆ serialize()

bytearray esiaccel.types.TypeAlias.serialize (   self,
  obj 
)
Convert a Python object to a bytearray.

Reimplemented from esiaccel.types.ESIType.

Definition at line 553 of file types.py.

References esiaccel.types.ChannelType.inner_type, esiaccel.types.TypeAlias.inner_type, and esiaccel.types.TypeAlias.serialize().

Referenced by esiaccel.types.TypeAlias.serialize().

Member Data Documentation

◆ inner_type

esiaccel.types.TypeAlias.inner_type

◆ name

esiaccel.types.TypeAlias.name

Definition at line 547 of file types.py.

Referenced by esiaccel.types.TypeAlias.__str__().


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