Download SDK User Manual

Transcript
ADM-XRC SDK User Guide - Common Memory Ports
The order of the fields within rc is always the same; only the field widths may differ from one model to another.
3. The rd_width parameter is the number of physical DQ wires making up the data bus of the DDR SDRAM bank. This
memory port transfers two words of data on the DQ wires for each command entered via the ce signal. Accordingly, the
d_width parameter, which is the width of d and q, is typically specified by the user application as being twice rd_width.
However, other values can be passed for d_width:
❍
❍
❍
If d_width > (2 * rd_width), then the memory port simply truncates d internally so that its width is (2 *
rd_width). Data read from the memory devices is zero-extended so that its width is d_width before being
returned on q.
d_width = (2 * rd_width) is the optimal usage case.
If d_width < (2 * rd_width), then the memory port zero-extends d internally so that its width is (2 *
rd_width).
4. The a_width parameter is the width of the logical address bus, a. Generally, it must be sufficiently wide to be able to
address all of the memory in a DDR SDRAM bank. Hence, the required value of a_width depends on what memory
devices are actually in use. As an example, consider two physical banks of DDR SDRAM devices that use 13 row bits,
10 column bits and 2 internal bank address bits. The number of address bits is:
13 (row address bits) +
10 (column address bits) +
2 (internal bank address bits) +
1 (2 physical banks / CS# pins) =
26
We must now subtract 1, because "logical" memory locations are twice as wide as the physical memory locations, due
to transferring two words on the DQ pins for every command entered on ce. Hence a_width for this configuration should
be at least 25. When a_width is larger than actually required, the top few unused bits of a are ignored by the memory
port. In practice, one should determine the value of a_width assuming that the largest possible memory devices are in
use.
Signals
The signals of this interface to and from the user application are as follows:
Signal
11
Type
Function
Note