6.8 Instantiating a DMADhrystone example

This section describes how to instantiate two different Exported Virtual Subsystems (EVSs).

The Direct Memory Access (DMA) example EVS comprises the processor, the application memory, and the DMA transfer source memory, while the SystemC side includes a simple PV DMA model, associated destination memory and a pseudomaster to receive end of transfer interrupts from the EVS. The processor is used to program a transfer, and wait for it to complete, using an interrupt signaled by the PV DMA model from the SystemC side.

Procedure

  1. Build the EVS_DMADhrystone example system.
    Option Description
    Linux
    > cd $PVLIB_HOME/examples/SystemCExport/EVS_Platforms/EVS_DMADhrystone/Build_Cortex-R5x1-A15x1
    > ./build.sh
    Microsoft Windows
    > cd %PVLIB_HOME%\examples\SystemCExport\EVS_Platforms\EVS_DMADhrystone\Build_Cortex-R5x1-A15x1
    > build.bat
  2. Run the example.
    Option Description
    Linux
    > ./run.sh
    Microsoft Windows
    > run.bat
    The Dhrystone image to load onto the simulation executable is part of the TPIP package. The location is $PVLIB_HOME/images/dhrystone.axf. The provided run script uses the location automatically.
The DMA output and the Dhrystone output appear for 1000000 iterations.
Non-ConfidentialPDF file icon PDF version100964_1142_00_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.