ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 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 ZBT SSRAM, capable of operating in flowthrough mode.
ADMXRC2_RAM_ZBTP The bank is ZBT SSRAM, capable of operating in pipelined mode.
ADMXRC2_RAM_SDRAM_SDR The bank is SDR SDRAM.
ADMXRC2_RAM_SDRAM_DDR The bank is DDR SDRAM.
ADMXRC2_RAM_SRAM_DDR2 The bank is DDR-II SSRAM.
ADMXRC2_RAM_SDRAM_DDR2 The bank is DDR-II SRAM.

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. For DDR memory types, the width is given in logical bits, where one physical wire carries two logical data bits on each clock cycle. For example, a DDR memory that is 64 physical bits wide is treated logically as a 128-bit wide memory.

The Size member gives the number of logical 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.

 


 Top of page