Texas Instruments TMS320DM643 사용자 설명서

다운로드
페이지 56
www.ti.com
3.2.4
Configuring DDR PHY Control Register (DDRPHYCR)
4
DDR2 Memory Controller Registers
DDR2 Memory Controller Registers
The DDR PHY control register (DDRPHYCR) contains a read latency (READLAT) field that helps the
DDR2 memory controller determine when to sample read data. The READLAT field should be
programmed to a value equal to CAS latency plus round trip board delay minus 1. The minimum
READLAT value is CAS latency plus 1 and the maximum READLAT value is CAS latency plus 3 (again,
the READLAT field would be programmed to these values minus 1).
When calculating round trip board delay the signals of primary concern are the differential clock signals
(DDR_CLK and DDR_CLK) and data strobe signals (DDR_DQS). For these signals, calculate the round
trip board delay from the DDR2 memory controller to the memory and then choose the maximum delay to
determine the READLAT value. In this example we will assume the round trip board delay is 1 DDR_CLK
cycle, therefore READLAT can be calculated as follows:
READLAT = CAS latency + round trip board delay – 1 = 4 + 1 – 1 = 4
Table 21. DDR PHY Control Register (DDRPHYCR) Configuration
Register Field Name
Description
Register Value
DLLRESET
Programmed to remove the DDR2 memory controller DLL from
0
reset.
DLLPWRDN
Programmed to power up the DDR2 memory controller DLL.
0
READLAT
Read latency is equal to CAS latency plus round trip board delay
4
for data minus 1.
,
, and
list the memory-mapped registers related to the DDR2 memory
controller. See the device-specific data manual for the memory addresses of these registers.
The DDR2 memory controller peripheral interfaces to the CPU using a 64-bit data bus and operates in
little-endian mode (see
for more information regarding endianness considerations).
The DDR2 memory controller memory-mapped registers are 32-bit registers, and when accessing them
via the 64-bit interface, two 32-bit registers are accessed in each cycle. Therefore, for example, when
accessing the SDRAM bank configuration register (SDBCR) and the SDRAM refresh control register
(SDRCR), the following data is obtained:
D63-32
D31-0
SDRAM refresh control register (SDRCR)
SDRAM bank configuration register (SDBCR)
DDR2 Memory Controller
40
SPRU986B – November 2007