avl_axi._interface module
- class avl_axi._interface.Interface(hdl)[source]
- Parameters:
hdl (<MagicMock name='mock.HierarchyObject' id='124065942498544'>)
- __init__(hdl)[source]
Create an interface Work around simulator specific issues with accessing signals inside generates.
- Parameters:
hdl (HierarchyObject) – The handle to the interface
- Returns:
None
- Return type:
None
- set(name, value, idx=None)[source]
Set the value of a signal (if signal exists)
- Parameters:
name (str) – The name of the signal
value (int) – The value to set
idx (int) – The index if array
- Returns:
None
- Return type:
None
- get(name, idx=None, default=None)[source]
Get the value of a signal (if signal exists)
- Parameters:
name (str) – The name of the signal
idx (int) – The index if array
default (Any) – The default value to return if signal does not exist
- Returns:
The value of the signal or the default value
- Return type:
int