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:
microblaze_get_pvr()function to populate the PVR data into a pvr_t data structure.
- 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.