an5692-ddr-memory-routing-guidelines-for-stm32mp13x-product-lines--stmicroelectronics
an5692-ddr-memory-routing-guidelines-for-stm32mp13x-product-lines--stmicroelectronics
Application note
Introduction
This application note applies to the STM32MP13x product lines (STM32MP131, STM32MP133, and STM32MP135).
This application note provides guidance on how to implement a DDR3, DDR3L, LPDDR2, and LPDDR3 memory interface
on the application boards of the STM32MP13x product lines.
This document provides interface schematics, layout implementation rules, and best practices.
1 General information
The devices of the STM32MP13x product lines are STM32 32-bit devices based on Arm® Cortex® processors
with a 16-bit DDR interface [1].
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
The following table presents a non-exhaustive list of terms and acronyms used in this document.
Acronym Definition
Document
Title
number
The external DDR interface of STM32MP13x devices can address different types of memory:
• DDR3 and DDR3L with a data rate of 1066 MT/s, voltage at 1.5 V for DDR3 and 1.35 V for DDR3L.
More information on DDR3 SDRAM can be found on JEDEC DDR3 SDRAM Standard JESD79-3F.
• LPDDR2 and LPDDR3 with a data rate of 1066 MT/s, voltage at 1.2 V. More information on LPDDR2
and LPDDR3 can be found on JEDEC LPDDR2 Standard JESD209-2F, and JEDEC LPDDR3 Standard
JESD209-3C.
Low-voltage and high data-rate speed narrow the tolerances in terms of read eye opening, and contribute to
a higher risk of system instability. As a result, there are many constraints and design sensitivities to consider when
working with memory interfaces. For example:
• Most signals are single-ended: only the clocks are differential signals.
• Signals can be connected either point-to-point or in fly-by topology.
Continuous board size reductions usually impose performance limitations on the interfaces, and increase
challenges when designing a DDR interface.
Given that DDR connections on both the STM32MP13x device and the memory device interface are fixed, the
physical layout has very limited flexibility:
• There is a minimum amount of signal routing required, which cannot be reduced further.
• There are impedance constraints to be managed.
To ensure correct signal and power integrity, basic design rules regarding trace isolation, length equalization,
power distribution and decoupling, and impedance matching must be respected.
This document lists the rules that must be applied in order to implement a state-of-the-art memory interface in 4-
or 6-layer boards.
STMicroelectronics highly recommends reusing the layout of the STM32 device reference designs. These layouts
have been tested and have been proven stable.
The three packages of STM32MP13x devices offer a 16-bit interface. They can be connected to one LPDDR2/3,
one or two DDR3/3L with different ways of connection:
16-bit interface X X X
VTT
DDR3/DDR3L
Byte0 Byte1
Resistors DT68875V1
Memory
Addresses/commands
STM32MP13x
Another possibility to connect one DDR3/3L if termination resistors are not used, is to connect a serial resistor
on each address/command line, close to the device.
DDR3/DDR3L
Byte0 Byte1
Resistors
DT68876V1
Memory
Addresses/commands STM32MP13x
The last possibility is to connect directly each line to one DDR3/3L, if termination resistors or serial resistors are
not used on address/command lines. This type of connection requires that the device and the DDR3/3L are very
close.
DDR3/DDR3L
Byte0 Byte1
DT68877V1
Memory
Addresses/commands
STM32MP13x
VTT
DDR3/DDR3L
DDR3/DDR3L
DT68878V1
Memory
Addresses/commands
STM32MP13x
LPDDR2/LPDDR3
Byte0 Byte1
DT68879V1
Memory
Addresses/commands
STM32MP13x
This reference voltage is required by the STM32MP13x and DDR3/3L devices in order to properly sample A/C
and data signals. Its noise level must remain very low, as described in the JEDEC standard.
There are two possibilities:
• independent VREF generators (VREFCA, VREFDQ) for STM32MP13x and DDR3/3L
Each VREF generator is based on a resistance bridge with two 1 kΩ (±1%) resistors from VDD_DDR, plus a
local 100 nF decoupling capacitor. VREF must be generated as close as possible to its corresponding ball.
• a common VREF for STM32MP13x and DDR3/3L
The VREF generator from an external device is delivered to STM32MP13x and DDR3/3L with a local
100 nF decoupling capacitor. The STPMIC1x [2] can deliver VREF.
This power supply is used exclusively in DDR3/3L interfaces. This is the termination voltage for address and
control (A/C) signals.
An external VTT voltage generator is recommended. The STPMIC1x [2] can deliver VTT. A strong VTT decoupling
is required. It must be as close as possible to the termination resistors.
This is the DDR interface power supply. It is equal to 1.5 V (1.425-1.575 V) for DDR3, or equal to 1.35 V
(1.283-1.45 V) for DDR3L.
This plane requires mandatory decoupling capacitors relative to ground plane, with bulk and HF capacitors. These
capacitors must be close to the power supply pins for STM32MP13x and DDR devices.
An LPDDR2/3 implementation must comprise the following elements (detailed later in this section):
• a point-to-point topology
• miscellaneous signals
• power supplies and reference voltage
VREF is required by STM32MP13x and LPDDR2/3 to properly sample A/C and data signals. Its noise level must
remain very low, as described in the JEDEC standard.
Two options are possible:
• Independent VREF generators (VREFCA, VREFDQ) for STM32MP13x and LPDDR2/3.
Each VREF generator is based on a resistance bridge with two 1 kΩ (±1%) resistors from VDD_DDR, plus a
local 100 nF decoupling capacitor.
VREF must be generated as close as possible to its corresponding ball.
• A common VREF for STM32MP13x and LPDDR2/3.
The VREF generator from an external device is delivered to STM32MP13x and LPDDR2/3 with a local
100 nF decoupling capacitor.
The STPMIC1x [2] can deliver VREF.
This is the LPDDR2/3 interface power supply. It is equal to 1.2 V (1.14-1.30 V).
This plane requires mandatory decoupling capacitors relative to ground plane, with bulk capacitors.
The HF capacitors must be close to the power supply pins for both STM32MP13x and LPDDR2/3.
This is the core power supply of LPDDR2/3. It is equal to 1.8 V (1.7-1.95 V).
The basic PCB design considerations to take into account are detailed in the following sections.
3xS 3xS
Layer 1
S
Layer 2
Dielectric
Top traces
Layer 3 Ground
DT68880V1
S PWR
Layer 4 Bottom traces
3xS 3xS
In other words, S-3S is the minimum isolation spacing rule. If more space between traces is available, it must be
used to separate signals as much as possible (such as S-4S or S-10S).The more space there is between traces,
the better the signal isolation and noise immunity is.
The S-3S rule is not applicable below BGA devices (memory and STM32MP13x devices) because of fan-out
constraints. When the S-3S rule is not applicable, the length of the segments that are in conflict with the rule must
be minimized.
Layouts using an S-1S spacing must be avoided as often as possible. If the S-3S rule is not applicable,
maximizing the distance between traces as much as possible (S-2S rule) is preferable, instead of using an S-1S
layout.
The S-3S isolation rule must also be applied within the equalization pattern, meaning that the minimum distance
between sections of the same trace should be greater or equal to S-3S.
In the case of differential signals:
• Intra-pair length equalization is not allowed.
• The spacing between N and P must be constant.
• The mean value length of N and P signals that must be considered for a differential pair, is given by:
Lsig = (LsigN + LsigP) / 2.
The STMicroelectronics templates and the length equalization tables can be used to simplify the task of
equalizing signal trace lengths. These tables include the trace lengths of the packages and can be obtained
from the DDR memory routing examples for STM32MP13x product lines, available on www.st.com.
6.3 Impedance
The driver impedance (ZDRV) is usually 34 Ω or 40 Ω, while the on-die termination impedance (ZODT) is usually
60 Ω.
The board impedance must be controlled in order to guarantee proper transmission line setup, in accordance with
the trace geometry (width and spacing), and the stack-up of the board.
For DDR3/3L and LPDDR2/3 interfaces, STMicroelectronics recommends the following impedances:
• for single-ended signals: 55 Ω ±10%.
• for differential signals: 100 Ω differential ±10%.
The internal layer 3 must be a unified VDD_DDR (VDD2_DDR for LPDDR2/3) power plane, which fully overlaps the
memory bottom-layer signals, in order to avoid any impedance breaks due to traces referenced to multiple power
planes.
Figure 8. Example of DDR3L A/C signal layout and corresponding power plane
This design requirement is absolutely necessary in order to provide an HF return current reference path to the
signal. The capacitor can be placed on either the bottom or top layer (as shown in the figure below).
When multiple signals are changing layers in the same area of the board (such as in the case of A/C bus
distribution), it may become impossible to place a single capacitor close to each via. The solution in this case is
to add a single capacitor for a group of vias. The number of capacitors must be as high as needed for the specific
board design, and they must be placed as close as possible to the via area.
Putting capacitors on the top layer can provide far better decoupling efficiency than placement on the bottom
layer.
However, the location of these capacitors can be constrained by BGA fan-out. This section provides best
practices for capacitor placement in order to minimize connection inductance, and to improve decoupling
efficiency, for both top and bottom layers.
When placing HF capacitors on the bottom layer, aim to have the shortest possible connections, and a good via
placement directly below the BGA, as shown in the figure below.
This section presents a code of best practices rules to be applied by signal type on memory interfaces. These
recommendations are based on the basic PCB design rules.
Revision history
Table 5. Document revision history
Contents
1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Design interface constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Memory architecture options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.1 16-bit DDR3/DDR3L interface with one memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 16-bit DDR3/DDR3L interface with two memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.3 16-bit LPDDR2/LPDDR3 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 DDR3/DDR3L schematic implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.1 Single DDR3/3L connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.2 Cost-optimized point-to-point topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.3 Standard fly-by topology with two DDR3/3L. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.4 Miscellaneous signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.5 Power supplies and reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 LPDDR2/LPDDR3 schematic implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1 Point-to-point topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.2 Miscellaneous signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.3 Power supplies and reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6 PCB design considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
6.1 Trace isolation distance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.2 Length equalization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.3 Impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.4 Layer allocation for 4-layer boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.5 Layer allocation for 6-layer boards with TFBGA289 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.6 VDD_DDR power plane specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.7 Layer change capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.8 Types of decoupling capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.9 Minimizing connection inductance with HF capacitors as decoupling capacitors . . . . . . . . . 15
6.9.1 Placing capacitors on the top layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.9.2 Placing capacitors on the bottom layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
7 Memory layout rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
7.1 Data signal rules for 16-bit memory interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.2 Address and control (A/C) signal rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.3 DDR_ZQ signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.4 Power plane rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.4.1 VDD_DDR (VDD2_DDR for LPDDR2/3) power plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
List of tables
Table 1. Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2. Terms and acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Table 3. Reference documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Table 4. Package summary of STM32MP13 product lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Table 5. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
List of figures
Figure 1. 16-bit DDR3/3L connection with termination resistors on address/command lines . . . . . . . . . . . . . . . . . . . . . . 4
Figure 2. 16-bit DDR3/3L connection with serial resistors on address/command lines . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 3. 16-bit DDR3/3L connection without resistors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 4. Two 8-bit DDR3/3L connection in fly-by topology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 5. 16-bit LPDDR2/3 point to point connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 6. S-3S isolation rule illustration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 7. Length equalization patterns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 8. Example of DDR3L A/C signal layout and corresponding power plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. Use of layer change capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 10. Placement of an HF capacitor on the top layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 11. HF capacitor on bottom layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 12. Placement of an HF capacitor on the bottom layer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 13. Layout of VTT power plane island . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20