VIO python interface.
More...
|
namespace | arm_vio |
| Documentation for VIO peripherals module.
|
|
|
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.
|
|
|
logging | verbosity = logging.ERROR |
| Set verbosity level verbosity = logging.DEBUG.
|
|
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.
◆ init()
◆ rdSignal()
Read Signal.
- Parameters
-
mask | bit mask of signals to read |
- Returns
- signal signal value read
◆ wrSignal()
def wrSignal |
( |
|
mask, |
|
|
|
signal |
|
) |
| |
Write Signal.
- Parameters
-
mask | bit mask of signals to write |
signal | signal value to write |
- Returns
- None
◆ rdValue()
Read Value.
- Parameters
-
index | value index (zero based) |
- Returns
- value value read (32-bit)
◆ wrValue()
def wrValue |
( |
|
index, |
|
|
|
value |
|
) |
| |
Write Value.
- Parameters
-
index | value index (zero based) |
value | value to write (32-bit) |
- Returns
- None