Axi Performance Monitor standalone
This page gives an overview of the bare-metal driver support for the Xilinx® LogiCORE ™ IP AXI Performance Monitor (axi_perf_mon) soft IP
Table of Contents
AXI Performance Monitor has the capability to measure major performance metrics (for AXI4, AXI4-Lite or AXI4-Stream based systems) such as bus latency for specific master/slave, amount of memory traffic for specific duration etc.
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 |
---|---|---|
axipmon | <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 axipmon driver source organization.
Directory | Description |
---|---|
doc | Provides the API and data structure details |
data | Driver .tcl , .mdd and .yaml files |
examples | Example applications that show how to use the driver features |
src | Driver source files make and cmakelists file |
Note: AMD Xilinx embeddedsw build flow is changed from 2023.2 release to adapt to the new system device tree based flow. For further information, refer to the wiki page Porting embeddedsw components to system device tree (SDT) based flow - Xilinx Wiki - Confluence (atlassian.net).
The .yaml(in data folder) and CMakeLists.txt(in src folder) files are needed for the System Device Tree based flow. The Driver .tcl and .mdd files are for the older build flow which will be deprecated in the future.
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
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.
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
2024.1
2023.2
2023.1
- None
2022.2
- None
2022.2
- None
2021.2
- None
2021.1
- None
2020.2
2020.1
- None
2019.2
- None
2019.1
- None
2018.3
© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy