User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 313
UG585 (v1.11) September 27, 2016
Chapter 10: DDR Memory Controller
10.6.7 DRAM Output Impedance (R
ON
) Calibration
DRAM device MR/EMR registers are controlled via the ddrc.DRAM_EMR_MR_reg and
ddrc.DRAM_EMR_reg registers. MR/EMR encodings can be found in DRAM device data sheets or
JEDEC specifications.
The output impedance control feature is available in DDR2, DDR3/DDR3L and LPDDR2 devices.
In DDR2 devices, the value is controlled via the mode register EMR, and can be set to full
strength or reduced strength.
In DDR3/DDR3L devices, the value is controlled via the mode register MR1, and can be set to
one of the following values: 40
or 35.
In LPDDR2 devices, the value is controlled via MR3, and can be set between 34
and 120
(default value is 40
).
Calibration
In DDR3/DDR3L and LPDDR2 devices, the output impedance is calibrated by the same ZQCL/ZQCS
commands discussed above.
In DDR2 devices, the DDR2 external calibration procedure (OCD for off-chip driver calibration) is not
supported by the DDRC.
10.6.8 DRAM Training
DRAM training includes three steps, executed in the following order:
1. Write leveling
2. Read DQS gate training
3. Read data eye training
Not all DRAM types support all three steps, as detailed below. Each step can be enabled or disabled
independently.
If a training step is enabled, the user must provide an initial delay value as a starting point of the
automatic training procedure. The value is a rough estimate of the expected delay or skew (see
details below) on the system board, minus some margin.
If a training step is disabled, the user must provide a delay value to be used to compensate for the
board delay or skew.
There are several possible reasons why the user might choose to disable a training step.
The step is not supported by the particular DRAM type. For example, write leveling is not
supported by DDR2 and LPDDR2.
Board delays are well-known and operating conditions are such that timing variance is minimal,
and training is not required.
Delay settings are known from previous training events.