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 |
For a full list of features supported by this IP, please refer TRM
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.
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. |
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.
Xilinx Zynq MP First Stage Boot Loader Release 2020.1 May 7 2020 - 14:17:34 Successfully ran AXI Performance Monitor Polled Example |
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 |