Arm Virtual Hardware  Version 2.1.0
AVH FVP Models
 
Loading...
Searching...
No Matches
VIO Python interface

VIO python interface. More...

Namespaces

namespace  arm_vio
 Documentation for VIO peripherals module.
 

Functions

def init ()
 Initialize.
 
def rdSignal (mask)
 Read Signal.
 
def wrSignal (mask, signal)
 Write Signal.
 
def rdValue (index)
 Read Value.
 
def wrValue (index, value)
 Write Value.
 

Variables

logging verbosity = logging.ERROR
 Set verbosity level verbosity = logging.DEBUG.
 

Description

VIO python interface.

The Python interface described in this section triggers upon peripheral register accesses of the VIO API.

The path to the python script implementing the interface shall be provided to the target in the model configuration paramater v_path that depending on the model is part of the mps2_board, mps3_board or mps4_board component. Section Running User Applications in CLI gives an example.

Function Documentation

◆ init()

def init ( )

Initialize.

Returns
None

◆ rdSignal()

def rdSignal (   mask)

Read Signal.

Parameters
maskbit mask of signals to read
Returns
signal signal value read

◆ wrSignal()

def wrSignal (   mask,
  signal 
)

Write Signal.

Parameters
maskbit mask of signals to write
signalsignal value to write
Returns
None

◆ rdValue()

def rdValue (   index)

Read Value.

Parameters
indexvalue index (zero based)
Returns
value value read (32-bit)

◆ wrValue()

def wrValue (   index,
  value 
)

Write Value.

Parameters
indexvalue index (zero based)
valuevalue to write (32-bit)
Returns
None