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.
Directory | Description |
---|---|
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
- Software triggered IO mode (STIG) up to 8-bytes of data transfers.
- Indirect DMA reads.
- Local SRAM to reduce AHB overhead.
- Supports SDR and DDR protocols.
- Programmable master mode clock frequencies.
- Programmable peripheral selects (chip select).
- Support for Single and Octal instructions.
- 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 | This examples does basic APM reads in Polled mode. | |
APM Interrupt mode example | This examples does basic APM read in Interrupt mode. | |
OCM Polled mode example | This examples does monitors the ocm interface Polled mode. |
Example Application Usage
Test cases
APM interrupt exampleAPM 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.
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.
Known Issues/Limitations
- None
Change log
2021.1
- None
2020.2
2020.1
- None
2019.2
- None
2019.1
- None