CIRCT 22.0.0git
|
Public Member Functions | |
__init__ (self, str id, int width) | |
Tuple[bool, Optional[str]] | is_valid (self, obj) |
str | __str__ (self) |
bytearray | serialize (self, int obj) |
Tuple[int, bytearray] | deserialize (self, bytearray data) |
![]() | |
int | bit_width (self) |
![]() | |
wrap_cpp (cls, cpp.Type cpp_type) | |
Tuple[bool, Optional[str]] | supports_host (self) |
int | max_size (self) |
Public Attributes | |
max_size | |
![]() | |
cpp_type | |
Additional Inherited Members | |
![]() | |
_init_from_cpp (self, cpp.Type cpp_type) | |
esiaccel.types.UIntType.__init__ | ( | self, | |
str | id, | ||
int | width | ||
) |
Reimplemented from esiaccel.types.IntType.
Definition at line 171 of file types.py.
References esiaccel.types.ArrayType._init_from_cpp(), esiaccel.types.StructType._init_from_cpp(), and esiaccel.types.ESIType._init_from_cpp().
str esiaccel.types.UIntType.__str__ | ( | self | ) |
Reimplemented from esiaccel.types.ESIType.
Tuple[int, bytearray] esiaccel.types.UIntType.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 187 of file types.py.
References esiaccel.types.ESIType.max_size(), esiaccel.types.UIntType.max_size, and esiaccel.types.SIntType.max_size.
Tuple[bool, Optional[str]] esiaccel.types.UIntType.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 174 of file types.py.
References esiaccel.types.ESIType.bit_width(), esiaccel.types.VoidType.bit_width(), esiaccel.types.BitsType.bit_width(), esiaccel.types.IntType.bit_width(), esiaccel.types.StructType.bit_width(), and esiaccel.types.ArrayType.bit_width().
bytearray esiaccel.types.UIntType.serialize | ( | self, | |
int | obj | ||
) |
Convert a Python object to a bytearray.
Reimplemented from esiaccel.types.ESIType.
esiaccel.types.UIntType.max_size |
Definition at line 185 of file types.py.
Referenced by esiaccel.types.BitsType.deserialize(), esiaccel.types.UIntType.deserialize(), esiaccel.types.SIntType.deserialize(), and esiaccel.types.BitsType.is_valid().