CIRCT
19.0.0git
|
Public Member Functions | |
def | __init__ (self, cpp.ArrayType cpp_type) |
int | bit_width (self) |
Tuple[bool, Optional[str]] | is_valid (self, obj) |
bytearray | serialize (self, list lst) |
Tuple[List[Any], bytearray] | deserialize (self, bytearray data) |
Public Member Functions inherited from esiaccel.types.ESIType | |
def | __init__ (self, cpp.Type cpp_type) |
Tuple[bool, Optional[str]] | supports_host (self) |
int | max_size (self) |
bytearray | serialize (self, obj) |
str | __str__ (self) |
Public Attributes | |
cpp_type | |
element_type | |
size | |
Public Attributes inherited from esiaccel.types.ESIType | |
cpp_type | |
def esiaccel.types.ArrayType.__init__ | ( | self, | |
cpp.ArrayType | cpp_type | ||
) |
int esiaccel.types.ArrayType.bit_width | ( | self | ) |
Size of this type, in bits. Negative for unbounded types.
Reimplemented from esiaccel.types.ESIType.
Definition at line 259 of file types.py.
References esiaccel.types.ArrayType.element_type, circt::esi::ESIAPIType.size(), circt::firrtl::AnnotationSet.size(), circt::hw::ModulePortInfo.size(), circt::llhd::sim::Signal.size, circt::moore::Range.size, circt::ReducePatternSet.size(), circt::TestCase.size, circt::igraph::InstancePath.size(), circt::pretty::PrettyPrinter::FormattedToken.size, EmittedExpressionState.size, esi::cosim::EndpointRegistry.size(), esi::ArrayType.size, esiaccel.types.ArrayType.size, MutableNLA.size, circt::moore::detail::SizedDimStorage.size, and ArraySlice.size.
Referenced by esiaccel.types.UIntType.is_valid(), esiaccel.types.SIntType.is_valid(), esiaccel.types.ESIType.max_size(), and esiaccel.types.ESIType.supports_host().
Tuple[List[Any], bytearray] esiaccel.types.ArrayType.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 279 of file types.py.
References esiaccel.types.ArrayType.element_type, circt::esi::ESIAPIType.size(), circt::firrtl::AnnotationSet.size(), circt::hw::ModulePortInfo.size(), circt::llhd::sim::Signal.size, circt::moore::Range.size, circt::ReducePatternSet.size(), circt::TestCase.size, circt::igraph::InstancePath.size(), circt::pretty::PrettyPrinter::FormattedToken.size, EmittedExpressionState.size, esi::cosim::EndpointRegistry.size(), esi::ArrayType.size, esiaccel.types.ArrayType.size, MutableNLA.size, circt::moore::detail::SizedDimStorage.size, and ArraySlice.size.
Tuple[bool, Optional[str]] esiaccel.types.ArrayType.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 262 of file types.py.
References esiaccel.types.ArrayType.element_type, circt::esi::ESIAPIType.size(), circt::firrtl::AnnotationSet.size(), circt::hw::ModulePortInfo.size(), circt::llhd::sim::Signal.size, circt::moore::Range.size, circt::ReducePatternSet.size(), circt::TestCase.size, circt::igraph::InstancePath.size(), circt::pretty::PrettyPrinter::FormattedToken.size, EmittedExpressionState.size, esi::cosim::EndpointRegistry.size(), esi::ArrayType.size, esiaccel.types.ArrayType.size, MutableNLA.size, circt::moore::detail::SizedDimStorage.size, and ArraySlice.size.
bytearray esiaccel.types.ArrayType.serialize | ( | self, | |
list | lst | ||
) |
Definition at line 273 of file types.py.
References esiaccel.types.ArrayType.element_type.
esiaccel.types.ArrayType.cpp_type |
Definition at line 254 of file types.py.
Referenced by esiaccel.types.BitsType.__init__(), esiaccel.types.IntType.__init__(), esiaccel.types.ESIType.__str__(), esiaccel.types.BitsType.bit_width(), and esiaccel.types.IntType.bit_width().
esiaccel.types.ArrayType.element_type |
Definition at line 255 of file types.py.
Referenced by esiaccel.types.ArrayType.bit_width(), esiaccel.types.ArrayType.deserialize(), esiaccel.types.ArrayType.is_valid(), and esiaccel.types.ArrayType.serialize().
esiaccel.types.ArrayType.size |
Definition at line 256 of file types.py.
Referenced by esiaccel.types.ArrayType.bit_width(), esiaccel.types.ArrayType.deserialize(), and esiaccel.types.ArrayType.is_valid().