![]() |
xilfpga
Vitis Drivers API Documentation
|
Modules | |
| XilFPGA APIs for Zynq UltraScale+ MPSoC | |
Data Structures | |
| struct | XFpgatag |
| Structure to the XFpga instance. More... | |
Typedefs | |
| typedef struct XFpgatag | XFpga |
| Structure to the XFpga instance. More... | |
Functions | |
| u32 | XFpga_BitStream_Load (XFpga *InstancePtr, UINTPTR BitstreamImageAddr, UINTPTR KeyAddr, u32 Size, u32 Flags) |
| The API is used to load the bitstream file into the PL region. More... | |
| u32 | XFpga_ValidateImage (XFpga *InstancePtr, UINTPTR BitstreamImageAddr, UINTPTR KeyAddr, u32 Size, u32 Flags) |
| This function is used to validate the bitstream image. More... | |
| u32 | XFpga_PL_Preconfig (XFpga *InstancePtr) |
| This function prepares the FPGA to receive configuration data. More... | |
| u32 | XFpga_Write_Pl (XFpga *InstancePtr, UINTPTR BitstreamImageAddr, UINTPTR KeyAddr, u32 Size, u32 Flags) |
| This function writes the count bytes of configuration data into the PL. More... | |
| u32 | XFpga_PL_PostConfig (XFpga *InstancePtr) |
| This function sets the FPGA to the operating state after writing. More... | |
| u32 | XFpga_Initialize (XFpga *InstancePtr) |
| This API, when called, initializes the XFPGA interface with default settings. More... | |
| u32 | XFpga_GetPlConfigData (XFpga *InstancePtr, UINTPTR ReadbackAddr, u32 NumFrames) |
| This function provides functionality to read back the PL configuration data. More... | |
| u32 | XFpga_GetPlConfigReg (XFpga *InstancePtr, UINTPTR ReadbackAddr, u32 ConfigRegAddr) |
| This function provides PL specific configuration register values. More... | |
| u32 | XFpga_InterfaceStatus (XFpga *InstancePtr) |
| This function provides the status of the PL programming interface. More... | |
| u32 XFpga_BitStream_Load | ( | XFpga * | InstancePtr, |
| UINTPTR | BitstreamImageAddr, | ||
| UINTPTR | KeyAddr, | ||
| u32 | Size, | ||
| u32 | Flags | ||
| ) |
The API is used to load the bitstream file into the PL region.
It supports AMD Vivadoâ„¢ Design Suite generated bitstream (*.bit, *.bin) and Bootgen-generated bitstream (*.bin) loading, Passing valid bitstream size(Size) information is mandatory for Vivado Design Suite generated bitstream, For Bootgen-generated bitstreams bitstream size is taken from the bitstream header.
| InstancePtr | Pointer to the XFpga structure. |
| BitstreamImageAddr | Linear memory bitstream image base address |
| KeyAddr | AES key address which is used for decryption. |
| Size | Used to store size of bitstream image. |
| Flags | Flags are used to specify the type of bitstream file.
|
References XFpga_Write::BitstreamAddr, XFpga_Write::Flags, XFpga_Write::KeyAddr, XFpga_Write::Size, XFpgatag::WriteInfo, XFpga_PL_PostConfig(), XFpga_PL_Preconfig(), XFpga_ValidateImage(), and XFpga_Write_Pl().
| u32 XFpga_GetPlConfigData | ( | XFpga * | InstancePtr, |
| UINTPTR | ReadbackAddr, | ||
| u32 | NumFrames | ||
| ) |
This function provides functionality to read back the PL configuration data.
| InstancePtr | Pointer to the XFpga structure |
| ReadbackAddr | Address which is used to store the PL readback data. |
| NumFrames | The number of FPGA configuration frames to read. |
References XFpgatag::ReadInfo, and XFpgatag::XFpga_GetConfigData.
| u32 XFpga_GetPlConfigReg | ( | XFpga * | InstancePtr, |
| UINTPTR | ReadbackAddr, | ||
| u32 | ConfigRegAddr | ||
| ) |
This function provides PL specific configuration register values.
| InstancePtr | Pointer to the XFpga structure |
| ReadbackAddr | Address which is used to store the PL Configuration register data. |
| ConfigRegAddr | Configuration register address as mentioned in the UG570. |
References XFpgatag::ReadInfo, and XFpgatag::XFpga_GetConfigReg.
| u32 XFpga_Initialize | ( | XFpga * | InstancePtr | ) |
This API, when called, initializes the XFPGA interface with default settings.
| InstancePtr | Pointer to the XFpga structure. |
References XFpgatag::XFpga_GetConfigData, XFpgatag::XFpga_GetConfigReg, XFpgatag::XFpga_GetFeatureList, XFpgatag::XFpga_GetInterfaceStatus, XFpgatag::XFpga_PostConfig, XFpgatag::XFpga_PreConfig, XFpgatag::XFpga_ValidateBitstream, and XFpgatag::XFpga_WriteToPl.
Referenced by main().
| u32 XFpga_InterfaceStatus | ( | XFpga * | InstancePtr | ) |
This function provides the status of the PL programming interface.
| InstancePtr | Pointer to the XFpga structure |
References XFpgatag::XFpga_GetInterfaceStatus.
| u32 XFpga_PL_PostConfig | ( | XFpga * | InstancePtr | ) |
This function sets the FPGA to the operating state after writing.
| InstancePtr | Pointer to the XFpga structure |
References XFpgatag::XFpga_PostConfig.
Referenced by XFpga_BitStream_Load().
| u32 XFpga_PL_Preconfig | ( | XFpga * | InstancePtr | ) |
This function prepares the FPGA to receive configuration data.
| InstancePtr | is the pointer to the XFpga. |
References XFpgatag::XFpga_PreConfig.
Referenced by XFpga_BitStream_Load().
| u32 XFpga_ValidateImage | ( | XFpga * | InstancePtr, |
| UINTPTR | BitstreamImageAddr, | ||
| UINTPTR | KeyAddr, | ||
| u32 | Size, | ||
| u32 | Flags | ||
| ) |
This function is used to validate the bitstream image.
| InstancePtr | Pointer to the XFpga structure |
| BitstreamImageAddr | Linear memory bitstream image base address |
| KeyAddr | Aes key address which is used for decryption. |
| Size | Used to store size of bitstream image. |
| Flags | Flags are used to specify the type of bitstream file.
|
References XFpga_Write::BitstreamAddr, XFpga_Write::Flags, XFpga_Write::KeyAddr, XFpga_Write::Size, XFpgatag::WriteInfo, and XFpgatag::XFpga_ValidateBitstream.
Referenced by XFpga_BitStream_Load().
| u32 XFpga_Write_Pl | ( | XFpga * | InstancePtr, |
| UINTPTR | BitstreamImageAddr, | ||
| UINTPTR | KeyAddr, | ||
| u32 | Size, | ||
| u32 | Flags | ||
| ) |
This function writes the count bytes of configuration data into the PL.
| InstancePtr | Pointer to the XFpga structure |
| BitstreamImageAddr | Linear memory bitstream image base address |
| KeyAddr | Aes key address which is used for decryption. |
| Size | Used to store size of bitstream image. |
| Flags | Flags are used to specify the type of bitstream file.
|
References XFpga_Write::BitstreamAddr, XFpga_Write::Flags, XFpga_Write::KeyAddr, XFpga_Write::Size, XFpgatag::WriteInfo, and XFpgatag::XFpga_WriteToPl.
Referenced by XFpga_BitStream_Load().