avl_ral._ral module
- class avl_ral._ral.RAL(*args, **kwargs)[source]
- Parameters:
name (str)
parent (Component | None)
- __init__(name, parent)[source]
Initialize the example environment with a simple memory model and an x86 QEMU agent.
- Parameters:
name (str) – The name of the environment.
parent (avl.Component) – The parent component in the AVL hierarchy.
- Returns:
None
- Return type:
None
- load_definition(path)[source]
Load the RAL definition from a file
- Parameters:
path (str) – The path to the RAL definition file
- Returns:
None
- Return type:
None
- find_by_name(addrmaps=None, name='*', types=None)[source]
Find a node by name
- Parameters:
addrmaps (list[Addrmap]) – The address maps to search
name (str) – The name to search for
types (tuple[type]) – The types to search for
- Returns:
The found node
- Return type:
list[RegNode | FieldNode]
- find_by_address(addrmaps=None, address=0, types=None)[source]
Find a node by Address
- Parameters:
addrmaps (list[Addrmap]) – The address maps to search
address (int) – The address to search for
types (tuple[type]) – The types to search for
- Returns:
The found node
- Return type:
list[RegNode | FieldNode]