ADM-XRC SDK 2.3.0 User Guide (Linux)
© Copyright 2001-2003 Alpha Data
ADMXRC2_BANK_INFO
Declaration
typedef struct _ADMXRC2_BANK_INFO { unsigned long Type; unsigned long Width; unsigned long Size; int Fitted; } ADMXRC2_BANK_INFO;
Description
The ADMXRC2_BANK_INFO structure is returned by ADMXRC2_GetBankInfo and contains information about a bank of memory fitted to a card.
Some applications may require this information in order, for example, to make the correct decisions when programming FPGA registers that deal with memory access. Simpler applications may do nothing more than check that the memory configuration on a card is as expected.
The Fitted member indicates whether devices are physically present on the card. If TRUE, the other three members of the structure are valid. If FALSE, the other three members of the structure are not valid and should be ignored.
The Type member identifies the type of memory comprising the bank. It is a bitmask of flags, and a memory bank may be capable of operating in more than one mode, depending on the devices fitted:
Flag | Meaning |
ADMXRC2_RAM_ZBTFT | The bank is capable of operating in flowthrough ZBT mode |
ADMXRC2_RAM_ZBTP | The bank is capable of operating in pipelined ZBT mode |
The Width member gives the width of the bank, in bits. The bank width can also be inferred from the BoardType member in the ADMXRC2_CARD_INFO structure, as it is constant for a given type of board.
The Size member gives the number of memory locations in the bank, counted in words (not bytes). This value is 2n where n is the number of address lines used by the bank.