MicroBlaze PVR access routines and macros - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 English

MicroBlaze processor v5.00.a and later versions have configurable Processor Version Registers (PVRs).

The contents of the PVR are captured using the pvr_t data structure, which is defined as an array of 32-bit words, with each word corresponding to a PVR register on hardware. The number of PVR words is determined by the number of PVRs configured in the hardware. You should not attempt to access PVR registers that are not present in hardware, as the pvr_t data structure is resized to hold only as many PVRs as are present in hardware. To access information in the PVR:

  1. Use the microblaze_get_pvr() function to populate the PVR data into a pvr_t data structure.
  2. In subsequent steps, you can use any one of the PVR access macros list to get individual data stored in the PVR.
  3. pvr.h header file must be included to source to use PVR macros.
Table 1. Quick Function Reference
Type Name Arguments
int microblaze_get_pvr
  • pvr-