The API is used to load the bitstream file into the PL region.
It supports the Vivado-generated bitstream(*.bit, *.bin) and Bootgen-generated bitstream(*.bin) loading, Passing valid bitstream size(Size) information is mandatory for Vivado-generated bitstream, For Bootgen-generated bitstreams bitstream size is taken from the bitstream header.
Note:
-
This API will be deprecated in the 2022.1 release. Use the updated '
XFpga_BitStream_Load()
' API to perform the same functionality.
Prototype
u32 XFpga_PL_BitStream_Load(XFpga *InstancePtr, UINTPTR BitstreamImageAddr, UINTPTR AddrPtr_Size, u32 Flags);
Parameters
The following table lists the XFpga_PL_BitStream_Load
function 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.
|
Returns
- XFPGA_SUCCESS on success
- Error code on failure.
- XFPGA_VALIDATE_ERROR.
- XFPGA_PRE_CONFIG_ERROR.
- XFPGA_WRITE_BITSTREAM_ERROR.
- XFPGA_POST_CONFIG_ERROR.