Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »



Introduction
This page gives an overview of axi performance monitor driver which is available as part of the Xilinx Vivado and SDK distribution.

Driver Sources

The source code for the driver is included with the Vitis Unified Software Platform installation, as well as being available in the Xilinx Github repository. 

Driver Name

Path in Vitis

Path in Github

ospipsv

<Vitis Install Directory>/data/embedded/XilinxProcessorIPLib/drivers/axipmon

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/axipmon

Note: To view the sources for a particular release, use the rel-version tag in github.  For example, for the 2020.1 release, the proper version of the code is: https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/axipmon


The driver source code is organized into different folders.  The table below shows the ospipsv driver source organization. 

DirectoryDescription

doc

Provides the API and data structure details

data

Driver .tcl and .mdd file

examples

Example applications that show how to use the driver features

src

Driver source files

Driver Implementation

For a full list of features supported by this IP, please refer TRM

Features

  1. Software triggered IO mode (STIG) up to 8-bytes of data transfers.
  2. Indirect DMA reads.
  3. Local SRAM to reduce AHB overhead.
  4. Supports SDR and DDR protocols.
  5. Programmable master mode clock frequencies.
  6. Programmable peripheral selects (chip select).
  7. Support for Single and Octal instructions.
  8. Interrupts and polled based operations.

Known Issues and Limitations

  • Macronix flash works only up to 150MHz.


Example Applications

Refer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications.  These example applications can be imported into the Vitis IDE from the Board Support Package  settings tab. 

Links to Examples

Examples Path:
https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/axipmon/examples



Test Name

Example Source

Description
APM Polled mode example

xaxipmon_polled_example.c

This examples does basic APM reads  in Polled mode.
APM Interrupt mode example

xaxipmon_intr_example.c


This examples does basic APM read in Interrupt mode.
OCM Polled mode example

xaxipmon_ocm_example.c


This examples does monitors the ocm interface Polled mode.

Example Application Usage



Test cases

APM interrupt example
APM is used in the interrupt mode example can be tested by selecting xaxipmon_intr_example.c
Refer to https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/axipmon/examples/readme.txtfor more information.
Xilinx Zynq MP First Stage Boot Loader
Release 2021.1 May 4 2021 - 08:06:56
PMU-FW is not running, certain applications may not be supported.
PMU Firmware 2021.1 May 4 2021 08:06:56
PMU_ROM Version: xpbr-v8.1.0-0
Successfully ran AXI Performance Monitor Interrupt Example

This examples does basic read and write test from the flash device in Interrupt mode.



APM polled example
APM polled example can be tested by selecting xaxipmon_polled_example.c from the driver.
Refer to https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/axipmon/examples/readme.txtfor more information.
Xilinx Zynq MP First Stage Boot Loader
Release 2020.1 May 7 2020 - 14:17:34
Successfully ran AXI Performance Monitor Polled Example



APM ocm example
APM ocm example can be tested by selecting xaxipmon_ocm_example.c from the driver.
Expected Output
Xilinx Zynq MP First Stage Boot Loader
Release 2020.1 May 7 2020 - 14:17:34
OCM APM Monitor results
Write Transaction Count : 1
Write Byte Count : 4
Read Transaction Count : 1
Read Byte Count : 16
Successfully ran AXI Performance Monitor OCM Example

Refer to https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/axipmon/examples/readme.txtfor more information.
  • No labels