MicroBlaze PVR Access Routines and Macros - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
Release Date
2021.1 English

The 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.
    Note: The 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-