An5724 Guidelines For DDR Memory Routing On Stm32mp2 Mpus Stmicroelectronics
An5724 Guidelines For DDR Memory Routing On Stm32mp2 Mpus Stmicroelectronics
Application note
Introduction
This application note guides the user on how to implement a DDR3L, DDR4, and LPDDR4 memory interface on application
boards of the STM32MP2 MPUs. It provides interface schematics, layout implementation rules, and best practices.
1 General information
The STM32MP2 MPU devices embed an Arm® Cortex®-M0+ core, an Arm® Cortex®-M33 core and a dual Arm®
Cortex®-A35 core[See 1 in the Table 2. Reference documents], with a 16/32 bits DDR interface.
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 the STM32MP2 MPU devices can address different types of memory:
• DDR3L with a data rate of 2133 MT/s, voltage at 1.35 V. More information on DDR3L SDRAM can be found
on the JEDEC DDR3 SDRAM Standard JESD79-3F.
• DDR4 with a data rate of 2400 MT/s, voltage at 1.2 V. More information on DDR4 can be found on the
JEDEC DDR4 Standard JESD79-4B.
• LPDDR4 with a data rate of 2400 MT/s, voltage at 1.1 V. More information on LPDDR4 can be found on the
JEDEC LPDDR4 SDRAM Standard JESD209-4D.
Low-voltage and high data-rate speed narrow the tolerances in terms of eye diagram, 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 and stobes 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 STM32MP2 MPU 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 DDR interface is different depending on the package. They can be connected to one or two DDR3L, one or
two DDR4, or one LPDDR4 with different ways of connection:
LPDDR4
Addresses/Commands
DT71812V2
Memory
STM32MP25X
VTT
DDR3L/
DDR4
DDR3L/
DDR4
DT71813V1
3.3 16-bit LPDDR4 interface
For the 16-bit LPDDR4 interface, one 16-bit LPDDR4 is used in point-to-point connection.
With this configuration it can drive up to 2 Gbyte memory.
LPDDR4
Byte1 Byte0
Memory
Addresses/Commands
STM32MP25X
DT71814V1
VTT
DDR3L/
DDR4
Byte1 Byte0
Resistors
Memory
Addresses/Commands
DT71815V1
STM32MP25x
Another possibility to connect one DDR3L/4 if termination resistors are not used: connect a serial resistor on each
address/command line, close to the device. This solution depends of layout and frequency used and requires
signal integrity simulation.
DDR3L/
DDR4
Byte1 Byte0
Resistors
Memory
Addresses/Commands
DT71816V1
STM32MP25X
The last possibility is to connect each line to one DDR3L/4 directly, if termination resistors or serial resistors are
not used on address/command lines..
This solution depends of layout and frequency used and requires signal integrity simulation.
DDR3L/
DDR4
Byte1 Byte0
Memory
Addresses/Commands
DT71817V1
STM32MP25X
This reference voltage is required by the DDR3L/4 devices in order to properly sample A/C (DDR3L/4) and data
signals (DDR3L). Its noise level must remain very low, as described in the JEDEC standard. The DDR_VREF pin
on the STM32MP2 MPU device is floating.
There are two possibilities:
• Independent VREF generators (VREFCA, VREFDQ) for DDR3L, (VREFCA) for DDR4.
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 DDR3L/4.
The VREF generator from an external device is delivered to DDR3L/4 with a local 100 nF decoupling
capacitor. The STPMIC25 [See 2 in the Table 2. Reference documents] can deliver VREF.
This power supply is used exclusively in DDR3L/4 interfaces. This is the termination voltage for address and
control (A/C) signals.
An external VTT voltage generator is recommended. The STPMIC25 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.35 V (1.28-1.45 V) for DDR3L and 1.2 V (1.14-1.26 V) for
DDR4.
This plane requires mandatory decoupling capacitors relative to the ground plane, with bulk and HF capacitors.
These capacitors must be close to the power supply pins for STM32MP2 MPU and DDR devices.
This power supply is used exclusively in DDR4 interface. The STPMIC25 can deliver VPP_DDR.
This is the LPDDR4 interface power supply. It is equal to 1.1 V (1.06-1.17 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 STM32MP2 MPU and LPDDR4.
This is the core power supply of LPDDR4. 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. This is a non-
exhaustive list of good practices to follow for sensitive-signal designs.
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 STM32MP2 MPU 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 on
Examples of DDR memory routing on STM32MP2 MPUs, available on www.st.com
6.3 Impedance
In general, 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 DDR3L/4 and LPDDR4 interfaces, STMicroelectronics recommends the following impedances:
• for single-ended signals: 55 Ω ±10%.
• for differential signals: 100 Ω differential ±10%.
Figure 9. Example of DDR3L A/C signal layout and corresponding power plane
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.
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 practice rules to be applied by signal type on memory interfaces. These
recommendations are based on the basic PCB design rules.
Revision history
Table 4. Document revision history
Contents
1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Design interface constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Memory architecture options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.1 32-bit LPDDR4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 32-bit DDR3L/4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.3 16-bit LPDDR4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.4 16-bit DDR3L/4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 DDR3L/DDR4 schematic implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1 Single DDR3L/4 connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.2 Cost-optimized point-to-point topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.3 Standard fly-by topology with two DDR3L/4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.4 Miscellaneous signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.5 Power supplies and reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5 LPDDR4 schematic implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
5.1 Point-to-point topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5.2 Miscellaneous signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5.3 Power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
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 TFBGA361 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.6 VDD_DDR power plane specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
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 32-bit memory interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.2 Data signal rules for 16-bit memory interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.3 Address and control (A/C) signal rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.4 DDR_ZQ signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
List of tables
Table 1. Terms and acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Table 2. Reference documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Table 3. Package summary of STM32MP2 MPUs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Table 4. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
List of figures
Figure 1. 32-bit LPDDR4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 2. 32-bit DDR3L/4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 3. 16-bit LPDDR4 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 4. 16-bit DDR3L/4 connection with termination resistors on address/command lines . . . . . . . . . . . . . . . . . . . . . . 6
Figure 5. 16-bit DDR3L/4 connection with serial resistors on address/command lines . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 6. 16-bit DDR3L/4 connection without resistors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 7. S-3S isolation rule illustration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 8. Length equalization patterns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 9. Example of DDR3L A/C signal layout and corresponding power plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 10. Use of layer change capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 11. Placement of an HF capacitor on the top layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 12. HF capacitor on bottom layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 13. Placement of an HF capacitor on the bottom layer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 14. Layout of VTT power plane island . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Disclaimer