ADM-XRC SDK 2.5.0 User Guide (Linux)
© Copyright 2001-2005 Alpha Data


Memtest sample application

Supports models:

The Memtest sample application uses the ZBT sample FPGA design (Verilog, VHDL) to test the SSRAM on an ADM-XRC series card.

Depending on whether the -usedma option or the +usedma option is specified on the command-line, Memtest uses either programmed I/O or DMA to transfer data to and from the SSRAM. DMA is efficient for bulk data transfers. However, because DMA transfers carry a certain set up overhead, programmed I/O is efficient for small data transfers or random access to registers within the FPGA.

Normally, this application uses the ZBT sample FPGA design (Verilog, VHDL). However, if the +64 option is specified on the command line, the ZBT64 sample FPGA design (Verilog, VHDL) is used instead. It is important to note that when the 64-bit version is used, the application does nothing different apart from configuring the FPGA local bus space to operate in 64-bit mode (see ADMXRC2_SetSpaceConfig) and specifying a 64-bit width for the DMA mode (see ADMXRC2_BuildDMAModeWord).

Syntax:

memtest [options ...]

Options:

Option Type Meaning
-banks hexadecimal integer Bitmask of banks to test (default 0xFFFFFFFF)
-card base 10 integer ID of card to open
-index base 10 integer Index of card to open
-lclk real number Local bus clock frequency to use, in MHz (default 33.0)
-repeat base 10 integer Number of times to perform tests (default 1)
-speed   Do not test SSRAM access speed
+speed   Test SSRAM access speed (default)
-usedma   Use programmed I/O for tests
+usedma   Use DMA for tests (default)
-64   Operate local bus in 32 bit mode (default)
+64   Operate local bus in 64 bit mode

 


 Top of page