Texas Instruments TMS320C642x DSP 用户手册

下载
页码 57
www.ti.com
2.7
Address Mapping
Peripheral Architecture
The DDR2 memory controller views external DDR2 SDRAM as one continuous block of memory. This
statement is true regardless of the number of external physical devices mapped to a given chip select
space. The DDR2 memory controller receives DDR2 memory access requests along with a 32-bit logical
address from the rest of the system. In turn, the DDR2 memory controller uses the logical address to
generate a row/page, column, and bank address for the DDR2 SDRAM. The number of column and bank
address bits used is determined by the IBANK and PAGESIZE fields in the SDRAM bank configuration
register (SDBCR) (see
Table 8. Bank Configuration Register Fields for Address Mapping
Bit Field
Bit Value
Bit Description
IBANK
Defines the number of internal banks on the external DDR2 memory.
0
1 bank
1h
2 banks
2h
4 banks
3h
8 banks
PAGESIZE
Defines the page size of each page of the external DDR2 memory.
0
256 words (requires 8 column address bits)
1h
512 words (requires 9 column address bits)
2h
1024 words (requires 10 column address bits)
3h
2048 words (requires 11 column address bits)
As stated in
the IBANK and PAGESIZE fields of SDBCR control the mapping of the logical,
source address of the DDR2 memory controller to the DDR2 SDRAM row, column, and bank address bits.
The DDR2 memory controller logical address always contains 13 row address bits, whereas the number of
column and bank bits are determined by the IBANK and PAGESIZE fields.
and
show
how the logical address bits map to the DDR2 SDRAM row, column, and bank bits for combinations of
IBANK and PAGESIZE values. The same DDR2 memory controller pins provide the row and column
address to the DDR2 SDRAM, thus the DDR2 memory controller appropriately shifts the address during
row and column address selection.
shows how this address-mapping scheme organizes the DDR2 SDRAM rows, columns, and
banks into the device memory map. Note that during a linear access, the DDR2 memory controller
increments the column address as the logical address increments. When the DDR2 memory controller
reaches a page/row boundary, it moves onto the same page/row in the next bank. This movement
continues until the same page has been accessed in all banks. To the DDR2 SDRAM, this process looks
as shown in
By traversing across banks while remaining on the same row/page, the DDR2 memory controller
maximizes the number of activated banks for a linear access. This results in the maximum number of
open pages when performing a linear access being equal to the number of banks. Note that the DDR2
memory controller never opens more than one page per bank.
Ending the current access is not a condition that forces the active DDR2 SDRAM row to be closed. The
DDR2 memory controller leaves the active row open until it becomes necessary to close it. This decreases
the deactivate-reactivate overhead.
22
DDR2 Memory Controller
SPRUEM4A – November 2007