avl_axi._types module
- class avl_axi._types.axi_burst_t(value, width=1, auto_random=False, fmt=None)[source]
- Parameters:
value (Any)
width (int)
auto_random (bool)
fmt (Callable[[...], int])
- FIXED = 0
- INCR = 1
- WRAP = 2
- RESERVED = 3
- __init__(value, width=1, auto_random=False, fmt=None)[source]
- Enumeration for the AXI Burst type
0 : FIXED
1 : INCR
2 : WRAP
3 : RESERVED
- Parameters:
value (Any) – The value to assign to the AXI Burst type.
auto_random (bool) – Whether to use automatic randomization.
fmt (Callable[[...], int]) – The format string for the AXI Burst type.
width (int)
- Returns:
None
- Return type:
None
- class avl_axi._types.axi_resp_t(value, width=1, auto_random=False, fmt=None)[source]
- Parameters:
value (Any)
width (int)
auto_random (bool)
fmt (Callable[[...], int])
- OKAY = 0
- EXOKAY = 1
- SLVERR = 2
- DECERR = 3
- DEFER = 4
- TRANSFAULT = 5
- RESERVED = 6
- UNSUPPORTED = 7
- __init__(value, width=1, auto_random=False, fmt=None)[source]
- Enumeration for the AXI Response type
0 : OKAY
1 : EXOKAY
2 : SLVERR
3 : DECERR
4 : DEFER
5 : TRANSFAULT
6 : RESERVED
7 : UNSUPPORTED
- Parameters:
value (Any) – The value to assign to the AXI Burst type.
auto_random (bool) – Whether to use automatic randomization.
fmt (Callable[[...], int]) – The format string for the AXI Burst type.
width (int)
- Returns:
None
- Return type:
None
- class avl_axi._types.axi_domain_t(value, width=1, auto_random=False, fmt=None)[source]
- Parameters:
value (Any)
width (int)
auto_random (bool)
fmt (Callable[[...], int])
- NON_SHAREABLE = 0
- INNER_SHAREABLE = 1
- OUTER_SHAREABLE = 2
- SYSTEM = 3
- __init__(value, width=1, auto_random=False, fmt=None)[source]
- Enumeration for the AXI domain type
0 : NON_SHAREABLE
1 : SHAREABLE (INNER)
2 : SHAREABLE (OUTER)
3 : SYSTEM
- Parameters:
value (Any) – The value to assign to the AXI domain type.
auto_random (bool) – Whether to use automatic randomization.
fmt (Callable[[...], int]) – The format string for the AXI domain type.
width (int)
- Returns:
None
- Return type:
None
- class avl_axi._types.axi_atomic_t(value, width=1, auto_random=False, fmt=None)[source]
- Parameters:
value (Any)
width (int)
auto_random (bool)
fmt (Callable[[...], int])
- NON_ATOMIC = 0
- STORE_LE_ADD = 16
- STORE_LE_CLR = 17
- STORE_LE_EOR = 18
- STORE_LE_SET = 19
- STORE_LE_SMAX = 20
- STORE_LE_SMIN = 21
- STORE_LE_UMAX = 22
- STORE_LE_UMIN = 23
- LOAD_LE_ADD = 32
- LOAD_LE_CLR = 33
- LOAD_LE_EOR = 34
- LOAD_LE_SET = 35
- LOAD_LE_SMAX = 36
- LOAD_LE_SMIN = 37
- LOAD_LE_UMAX = 38
- LOAD_LE_UMIN = 39
- SWAP = 48
- COMPARE = 49
- STORE_BE_ADD = 24
- STORE_BE_CLR = 25
- STORE_BE_EOR = 26
- STORE_BE_SET = 27
- STORE_BE_SMAX = 28
- STORE_BE_SMIN = 29
- STORE_BE_UMAX = 30
- STORE_BE_UMIN = 31
- LOAD_BE_ADD = 40
- LOAD_BE_CLR = 41
- LOAD_BE_EOR = 42
- LOAD_BE_SET = 43
- LOAD_BE_SMAX = 44
- LOAD_BE_SMIN = 45
- LOAD_BE_UMAX = 46
- LOAD_BE_UMIN = 47
- __init__(value, width=1, auto_random=False, fmt=None)[source]
Enumeration for the AXI Atomic type
- Parameters:
value (Any) – The value to assign to the AXI Burst type.
auto_random (bool) – Whether to use automatic randomization.
fmt (Callable[[...], int]) – The format string for the AXI Burst type.
width (int)
- Returns:
None
- Return type:
None
- fmt(value)[source]
Custom format
- Parameters:
value (int) – The value to format.
- Returns:
The formatted string.
- Return type:
str
- values()[source]
Return a dictionary of types
:return dict :rtype: dict[str, int]
- Return type:
dict[str, int]
- class avl_axi._types.axi_secsid_t(value, width=1, auto_random=False, fmt=None)[source]
- Parameters:
value (Any)
width (int)
auto_random (bool)
fmt (Callable[[...], int])
- NON_SECURE = 0
- SECURE = 1
- REALM = 2
- RESERVED = 3
- __init__(value, width=1, auto_random=False, fmt=None)[source]
- Enumeration for the AXI secure stream identifier type
0 : NON_SECURE
1 : SECURE
2 : REALM
3 : RESERVED
- Parameters:
value (Any) – The value to assign to the AXI domain type.
auto_random (bool) – Whether to use automatic randomization.
fmt (Callable[[...], int]) – The format string for the AXI domain type.
width (int)
- Returns:
None
- Return type:
None
- avl_axi._types.signal_to_type(signal)[source]
Converts a signal string to the corresponding type class instance.
- Parameters:
signal (str) – The signal string to convert.
type_class – The type class to use for conversion.
- Returns:
An instance of the type class corresponding to the signal.
- Return type:
Any