ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data
Prototype
void ADMXRC_ReverseBytes( ADMXRC_IMAGE Image, ULONG Offset, ULONG Length);
Arguments
Argument | Type | Purpose |
Image | In/out | The bitstream image containing the SelectMap data to reverse |
Offset | In | The position within Image at which the SelectMap data is located |
Length | In | The length of the SelectMap data within Image |
Return value
This function has no return value.Description
This function reverses the bit order of the bytes that comprise a bitstream. The Xilinx bitgen program outputs a file whose bytes are logically flipped with respect to what is required by a Virtex FPGA's SelectMap port.
The Image parameter should be a variable of type ADMXRC_IMAGE, obtained from an earlier call to ADMXRC_LoadFpgaFile.
The Offset parameter should be the offset value returned by an earlier call to ADMXRC_FindImageOffset.
The Length parameter should be the length of the SelectMap data, returned by the call to ADMXRC_FindImageOffset.