avl._core.logic module

class avl._core.logic.Logic(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <built-in function hex>, width: int = 32)[source]
__init__(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <built-in function hex>, width: int = 32) None[source]

Initialize an instance of the class.

Parameters:
  • value (any) – The initial value of the variable.

  • auto_random (bool, optional) – Indicates if the variable should be automatically randomized, defaults to True.

  • fmt (type, optional) – The format of the variable, defaults to hex.

  • width (int, optional) – The width of the variable in bits, defaults to 32.

Raises:

ValueError – If the width is not a positive integer.