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


ADMXRC2_ConfigureFromFile

Prototype

ADMXRC2_STATUS
ADMXRC2_ConfigureFromFile(
    ADMXRC2_HANDLE Card,
    const char*    Filename);

Arguments

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

Return value

Value Meaning
ADMXRC2_SUCCESS The FPGA was successfully configured
ADMXRC2_FILE_NOT_FOUND The file Filename could not be opened
ADMXRC2_INVALID_FILE The file Filename appears not to be a valid bitstream
ADMXRC2_NO_MEMORY There is not enough free memory to temporarily load the bitstream into memory
ADMXRC2_FPGA_MISMATCH The device targetted by the bitstream file did not match the device fitted to the card
ADMXRC2_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 ADMXRC2_ConfigureFromBuffer or ADMXRC2_ConfigureFromBufferDMA functions should be used instead since ADMXRC2_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