XFpga_PL_ValidateImage - 2021.1 English

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

Document ID
UG643
Release Date
2021-06-16
Version
2021.1 English

This function is used to validate the bitstream image.

Note:
  • This API will be deprecated in the 2022.1 release. Use the updated ' XFpga_ValidateImage() ' API to perform the same functionality.

Prototype

u32 XFpga_PL_ValidateImage(XFpga *InstancePtr, UINTPTR BitstreamImageAddr, UINTPTR AddrPtr_Size, u32 Flags);

Parameters

The following table lists the XFpga_PL_ValidateImage function arguments.

Table 1. XFpga_PL_ValidateImage Arguments
Type Name Description
XFpga * InstancePtr Pointer to the XFpga structure
UINTPTR BitstreamImageAddr Linear memory bitstream image base address
UINTPTR AddrPtr_Size Aes key address which is used for decryption (or) In none secure bitstream used it is used store size of bitstream image.
u32 Flags Flags are used to specify the type of bitstream file.
  • BIT(0) - bitstream type
    • 0 - Full bitstream
    • 1 - Partial bitstream
  • BIT(1) - Authentication using DDR
    • 1 - Enable
    • 0 - Disable
  • BIT(2) - Authentication using OCM
    • 1 - Enable
    • 0 - Disable
  • BIT(3) - User-key Encryption
    • 1 - Enable
    • 0 - Disable
  • BIT(4) - Device-key Encryption
    • 1 - Enable
    • 0 - Disable

Returns

Codes as mentioned in xilfpga.h