ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


ADMXRC_ConfigureFromFile

Prototype

ADMXRC_STATUS
ADMXRC_ConfigureFromFile(
    ADMXRC_HANDLE Card,
    char*         Filename);

Arguments

Argument Type Purpose
Card In Handle of card to configure
Filename In Name of .BIT file

Return value

Value Meaning
ADMXRC_SUCCESS The FPGA was successfully configured
ADMXRC_FILE_NOT_FOUND The file Filename could not be opened
ADMXRC_INVALID_FILE The file Filename appears not to be a valid bitstream
ADMXRC_NO_MEMORY There is not enough free memory to temporarily load the bitstream into memory
ADMXRC_FPGA_MISMATCH The device targetted by the bitstream file did not match the device fitted to the card
ADMXRC_INVALID_HANDLE Card is not a valid handle to a card

Description

This function is used to configure the FPGA on a card from a Xilinx bitstream file (.BIT), using programmed I/O. If deterministic runtime is required, the ADMXRC_ConfigureFromBuffer or ADMXRC_ConfigureFromBufferDMA functions should be used instead since ADMXRC_ConfigureFromFile performs file I/O in order to load the bitstream into memory.

The card to be configured is specified by the Card parameter.

The bitstream file to load into the FPGA is specified by the Filename parameter.

 


 Top of page