avl._core.uint module
- class avl._core.uint.Uint(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>, width: int = 32)[source]
- __init__(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>, width: int = 32) None[source]
Initialize an instance of the class.
- Parameters:
name (str) – The name of the instance.
value (int) – The value to be assigned to the instance.
auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.
fmt (function, optional) – The format to be used, defaults to str.
width (int, optional) – The width of the variable in bits, defaults to 32.
- Raises:
ValueError – If the width is not a positive integer.
- class avl._core.uint.Uint8(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>)[source]
- __init__(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>) None[source]
Initialize an instance of the class.
- Parameters:
name (str) – The name of the instance.
value (int) – The value to be assigned to the instance.
auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.
fmt (function, optional) – The format to be used, defaults to str.
- class avl._core.uint.Uint16(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>)[source]
- __init__(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>) None[source]
Initialize an instance of the class.
- Parameters:
name (str) – The name of the instance.
value (int) – The value to be assigned to the instance.
auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.
fmt (function, optional) – The format to be used, defaults to str.
- class avl._core.uint.Uint32(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>)[source]
- __init__(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>) None[source]
Initialize an instance of the class.
- Parameters:
name (str) – The name of the instance.
value (int) – The value to be assigned to the instance.
auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.
fmt (function, optional) – The format to be used, defaults to str.
- class avl._core.uint.Uint64(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>)[source]
- __init__(name: str, value: int, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], int] = <class 'str'>) None[source]
Initialize an instance of the class.
- Parameters:
name (str) – The name of the instance.
value (int) – The value to be assigned to the instance.
auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.
fmt (function, optional) – The format to be used, defaults to str.