|
CIRCT 23.0.0git
|


Public Member Functions | |
| __init__ (self, str id, "ESIType" element_type) | |
| Tuple[bool, Optional[str]] | supports_host (self) |
| int | bit_width (self) |
| Tuple[bool, Optional[str]] | is_valid (self, obj) |
| bytearray | serialize (self, obj) |
| Tuple[object, bytearray] | deserialize (self, bytearray data) |
Public Member Functions inherited from esiaccel.types.ESIType | |
| wrap_cpp (cls, cpp.Type cpp_type) | |
| str | id (self) |
| int | max_size (self) |
| int | __hash__ (self) |
| bool | __eq__ (self, other) |
| str | __str__ (self) |
Public Attributes | |
| element_type | |
Public Attributes inherited from esiaccel.types.ESIType | |
| cpp_type | |
| id | |
Protected Member Functions | |
| _init_from_cpp (self, cpp.ListType cpp_type) | |
| esiaccel.types.ListType.__init__ | ( | self, | |
| str | id, | ||
| "ESIType" | element_type | ||
| ) |
Reimplemented from esiaccel.types.ESIType.
Definition at line 424 of file types.py.
References esiaccel.types.ArrayType._init_from_cpp(), esiaccel.types.BundleType._init_from_cpp(), esiaccel.types.ChannelType._init_from_cpp(), esiaccel.types.ListType._init_from_cpp(), esiaccel.types.StructType._init_from_cpp(), esiaccel.types.ESIType._init_from_cpp(), esiaccel.types.TypeAlias._init_from_cpp(), esiaccel.types.UnionType._init_from_cpp(), and esiaccel.types.WindowType._init_from_cpp().
Referenced by synth.LongestPathCollection.drop_non_critical_paths(), and synth.LongestPathCollection.merge().
|
protected |
Initialize instance attributes from a C++ type object.
Reimplemented from esiaccel.types.ESIType.
Definition at line 427 of file types.py.
References esiaccel.types.ListType._init_from_cpp().
Referenced by esiaccel.types.ESIType.__init__(), esiaccel.types.VoidType.__init__(), esiaccel.types.AnyType.__init__(), esiaccel.types.ListType.__init__(), esiaccel.types.ArrayType.__init__(), esiaccel.types.ChannelType.__init__(), esiaccel.types.BitsType.__init__(), esiaccel.types.IntType.__init__(), esiaccel.types.UIntType.__init__(), esiaccel.types.SIntType.__init__(), esiaccel.types.BundleType.__init__(), esiaccel.types.StructType.__init__(), esiaccel.types.UnionType.__init__(), esiaccel.types.TypeAlias.__init__(), esiaccel.types.WindowType.__init__(), and esiaccel.types.ListType._init_from_cpp().
| int esiaccel.types.ListType.bit_width | ( | self | ) |
Size of this type, in bits. Negative for unbounded types.
Reimplemented from esiaccel.types.ESIType.
Definition at line 436 of file types.py.
Referenced by esiaccel.types.UnionType.deserialize(), esiaccel.types.UIntType.is_valid(), esiaccel.types.SIntType.is_valid(), esiaccel.types.ESIType.max_size(), esiaccel.types.UnionType.serialize(), and esiaccel.types.ESIType.supports_host().
| Tuple[object, bytearray] esiaccel.types.ListType.deserialize | ( | self, | |
| bytearray | data | ||
| ) |
Convert a bytearray to a Python object. Return the object and the leftover bytes.
Reimplemented from esiaccel.types.ESIType.
| Tuple[bool, Optional[str]] esiaccel.types.ListType.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 439 of file types.py.
References esiaccel.types.ArrayType.element_type, esiaccel.types.ListType.element_type, and esiaccel.types.ListType.is_valid().
Referenced by esiaccel.types.ListType.is_valid().
| bytearray esiaccel.types.ListType.serialize | ( | self, | |
| obj | |||
| ) |
Convert a Python object to a bytearray.
Reimplemented from esiaccel.types.ESIType.
| Tuple[bool, Optional[str]] esiaccel.types.ListType.supports_host | ( | self | ) |
Does this type support host communication via Python? Returns either '(True, None)' if it is, or '(False, reason)' if it is not.
Reimplemented from esiaccel.types.ESIType.
| esiaccel.types.ListType.element_type |
Definition at line 429 of file types.py.
Referenced by esiaccel.types.ArrayType.bit_width(), esiaccel.types.ArrayType.deserialize(), esiaccel.types.ArrayType.is_valid(), esiaccel.types.ListType.is_valid(), and esiaccel.types.ArrayType.serialize().