axipmon
Vitis Drivers API Documentation
|
This file contains a design example showing how to use the driver APIs of the AXI Performance Monitor driver in poll mode.
Global Clock Counter and Metric Counters are enabled. The Application for which Metrics need to be computed should be run and then the Metrics collected.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a bss 02/29/12 First release 2.00a bss 06/23/12 Updated to support v2_00a version of IP. 3.00a bss 09/03/12 Deleted XAxiPmon_SetAgent API to support v2_01a version of IP. 3.01a bss 10/25/12 Deleted XAxiPmon_EnableCountersData API to support new version of IP. 6.5 ms 01/23/17 Modified xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028. 6.10 ht 06/23/23 Added support for system device-tree flow.
Functions | |
int | AxiPmonPolledExample (u16 AxiPmonDeviceId, u32 *Metrics, u32 *ClkCntHigh, u32 *ClkCntLow) |
This function runs a test on the AXI Performance Monitor device using the driver APIs. More... | |
int | main (void) |
Main function that invokes the example in this file. More... | |
int AxiPmonPolledExample | ( | u16 | AxiPmonDeviceId, |
u32 * | Metrics, | ||
u32 * | ClkCntHigh, | ||
u32 * | ClkCntLow | ||
) |
This function runs a test on the AXI Performance Monitor device using the driver APIs.
This function does the following tasks:
AxiPmonDeviceId | is the XPAR_<AXIPMON_instance>_DEVICE_ID value from xparameters.h. |
Metrics | is an user referece variable in which computed metrics will be filled |
ClkCntHigh | is an user referece variable in which Higher 64 bits of Global Clock Counter are filled |
ClkCntLow | is an user referece variable in which Lower 64 bits of Global Clock Counter are filled |
References XAxiPmon_Config::BaseAddress, XAPM_INCREMENTER_0, XAPM_METRIC_COUNTER_0, XAPM_METRIC_SET_0, XAxiPmon_CfgInitialize(), XAxiPmon_DisableGlobalClkCounter, XAxiPmon_DisableMetricsCounter(), XAxiPmon_EnableGlobalClkCounter, XAxiPmon_EnableMetricsCounter(), XAxiPmon_GetGlobalClkCounter(), XAxiPmon_GetMetricCounter(), XAxiPmon_LookupConfig(), XAxiPmon_SelfTest(), XAxiPmon_SetIncrementerRange(), and XAxiPmon_SetMetrics().
Referenced by main().
int main | ( | void | ) |
Main function that invokes the example in this file.
None. |
References AxiPmonPolledExample().