DDR Layout
DDR Layout
Application Note
AM62x DDR Board Design and Layout Guidelines
ABSTRACT
The goal of this application report is to describe how to make the AM62x DDR system implementation
straightforward for all designers. The requirements have been distilled down to a set of layout and routing
rules that allow designers to successfully implement a robust design for the topologies TI supports.
Table of Contents
1 Overview..................................................................................................................................................................................3
1.1 Board Designs Supported.................................................................................................................................................. 3
1.2 General Board Layout Guidelines...................................................................................................................................... 3
1.3 PCB Stack-Up.................................................................................................................................................................... 4
1.4 Bypass Capacitors............................................................................................................................................................. 5
1.5 Velocity Compensation.......................................................................................................................................................6
2 DDR4 Board Design and Layout Guidance.......................................................................................................................... 7
2.1 DDR4 Introduction..............................................................................................................................................................7
2.2 DDR4 Device Implementations Supported........................................................................................................................ 7
2.3 DDR4 Interface Schematics...............................................................................................................................................9
2.4 Compatible JEDEC DDR4 Devices..................................................................................................................................13
2.5 Placement........................................................................................................................................................................ 13
2.6 DDR4 Keepout Region.....................................................................................................................................................14
2.7 DBI................................................................................................................................................................................... 14
2.8 VPP.................................................................................................................................................................................. 14
2.9 Net Classes......................................................................................................................................................................14
2.10 DDR4 Signal Termination...............................................................................................................................................15
2.11 VREF Routing.................................................................................................................................................................15
2.12 VTT.................................................................................................................................................................................15
2.13 POD Interconnect...........................................................................................................................................................15
2.14 CK and ADDR_CTRL Topologies and Routing Guidance..............................................................................................15
2.15 Data Group Topologies and Routing Guidance..............................................................................................................19
2.16 CK and ADDR_CTRL Routing Specification..................................................................................................................20
2.17 Data Group Routing Specification..................................................................................................................................22
2.18 Bit Swapping.................................................................................................................................................................. 23
3 LPDDR4 Board Design and Layout Guidance....................................................................................................................24
3.1 LPDDR4 Introduction....................................................................................................................................................... 24
3.2 LPDDR4 Device Implementations Supported.................................................................................................................. 24
3.3 LPDDR4 Interface Schematics........................................................................................................................................ 24
3.4 Compatible JEDEC LPDDR4 Devices............................................................................................................................. 26
3.5 Placement........................................................................................................................................................................ 26
3.6 LPDDR4 Keepout Region................................................................................................................................................ 27
3.7 LPDDR4 DBI.................................................................................................................................................................... 27
3.8 Net Classes......................................................................................................................................................................27
3.9 LPDDR4 Signal Termination............................................................................................................................................ 27
3.10 LPDDR4 VREF Routing................................................................................................................................................. 28
3.11 LPDDR4 VTT..................................................................................................................................................................28
3.12 CK0 and ADDR_CTRL Topologies................................................................................................................................ 28
3.13 Data Group Topologies.................................................................................................................................................. 28
3.14 CK0 and ADDR_CTRL Routing Specification................................................................................................................29
3.15 Data Group Routing Specification..................................................................................................................................30
3.16 Byte and Bit Swapping................................................................................................................................................... 31
4 LPDDR4 Board Design Simulations....................................................................................................................................32
4.1 Board Model Extraction....................................................................................................................................................32
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 1
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
Table of Contents [Link]
2 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] Trademarks
Trademarks
All trademarks are the property of their respective owners.
1 Overview
The AM62x processors support two different types of DDR memories: DDR4 and LPDDR4. This allows customer
board designs to be implemented with the memory type that best meets their target market at the lowest
possible DDR SDRAM cost. This document has generic information that is applicable to both DDR4 and
LPDDR4, as well as separate sections that are specific to each supported DDR memory type.
Note
To facilitate software configuration of the DDRSS, use the DDR Configuration Tool in SysConfig
([Link]
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 3
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
Overview [Link]
(1) Ground reference layers are preferred over power reference layers. Return signal vias need to be near layer transitions. When using
power reference layers, include bypass caps to accommodate reference layer return current, as the trace routes switch routing layers.
(2) No traces should cross reference plane cuts within the DDR routing region. High-speed signal traces crossing reference plane cuts
create large return current paths, which can lead to excessive crosstalk and EMI radiation. Beware of reference plane voids caused by
via antipads, as these also cause discontinuities in the return current path.
(3) Reference planes are to be directly adjacent to the signal layer, to minimize the size of the return current loop.
(4) Z is the nominal singled-ended impedance selected for the PCB specified by PS9 and PS10.
4 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] Overview
(1) These capacitors should be placed near the devices they are bypassing, but preference should be given to the placement of the
high-speed (HS) bypass capacitors and DDR signal routing.
(2) The capacitor recommendations in this guide reflect only the needs of this processor. For determining the appropriate decoupling
capacitor arrangement for the memory device itself, see the memory vendor’s guidelines.
1.4.2 High-Speed Bypass Capacitors
High-speed (HS) bypass capacitors are critical for proper DDR interface operation. It is particularly important to
minimize the parasitic series inductance of the HS bypass capacitors to VDDS_DDR and the associated ground
connections. Table 1-3 contains the specification for the HS bypass capacitors and for the power connections on
the PCB. Generally speaking, TI recommends:
• Fitting as many HS bypass capacitors as possible.
• Minimizing the distance from the bypass capacitor to the pins and balls being bypassed.
• Using the smallest physical sized ceramic capacitors possible with the highest capacitance readily available.
• Connecting the bypass capacitor pads to their vias using the widest traces possible and using the largest via
hole size possible.
• Minimizing via sharing. Note the limits on via sharing shown in Table 1-3.
• Using three-terminal capacitors instead of two terminal capacitors. Three-terminal capacitors provide lower
loop inductance, and one three-terminal capacitor could take the place of multiple two-terminal capacitors,
further optimizing loop inductance.
For any additional SDRAM requirements, see the manufacturer's data sheet.
Table 1-3. High-Speed Bypass Capacitors
Parameter MIN TYP MAX UNIT
HS bypass capacitor package size (1) 0201 0402 Mils
Distance, HS bypass capacitor to processor being bypassed (2) (3) (4) 150 Mils
Processor HS bypass capacitor count and total capacitance per see notes below
VDDS_DDR rail(5)
Number of connection vias for each device power/ground ball 1 Vias
Trace length from processor power/ground ball to connection via (2) 35 70 Mils
Distance, HS bypass capacitor to DDR device being bypassed (6) 150 Mils
DDR device HS bypass capacitor count Refer to DDR manufacturer guidelines
Number of connection vias for each HS capacitor (7) (8) 2 Vias
Trace length from bypass capacitor to connection via (2) (8) 35 100 Mils
Number of connection vias for each DDR device power/ground ball 1 Vias
Trace length from DDR device power/ground ball to connection via (2) 35 60 Mils
(1) LxW, 10-mil units, that is, a 0402 is a 40x20-mil surface-mount capacitor.
(2) Closer/shorter is preferable.
(3) Measured from the nearest processor power or ground ball to the center of the capacitor package.
(4) Three of these capacitors should be located underneath the processor, among the cluster of VDDS_DDR balls.
(5) Decoupling capacitor counts and/or capacitor values should be derived from power aware PCB simulations. It is the responsibility of
the PCB designer to ensure that any design meets the provided PDN targets.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 5
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
Overview [Link]
(6) Measured from the DDR device power or ground ball to the center of the capacitor package. Refer to the guidance from the SDRAM
manufacturer.
(7) An additional HS bypass capacitor can share the connection vias only if it is mounted on the opposite side of the board. No sharing of
vias is permitted on the same side of the board.
(8) An HS bypass capacitor may share a via with a DDR device mounted on the same side of the PCB. A wide trace should be used for
the connection, and the length from the capacitor pad to the DDR device pad should be less than 150 mils.
1.4.3 Return Current Bypass Capacitors
Use additional bypass capacitors if the return current reference plane changes due to DDR signals hopping from
one signal layer to another, resulting in the reference plane changing from VDDS_DDR to VSS. The bypass
capacitor here provides a path for the return current to hop planes along with the signal. Use as many of these
return current bypass capacitors as possible – up to one per signal via. Because these are returns for signal
current, the via size for these bypass capacitors can be the smaller via used for signal routing.
1.5 Velocity Compensation
Because portions of the DDR signal traces are microstrip (top and bottom layers) while the majority of the
trace segment length is stripline (internal layers), and because there is a wide variation in the proportion of
track length routed as microstrip or stripline, the length/delay matching process should include a mechanism
for compensating for the velocity delta between these two types of PCB interconnects. A compensation factor
of 1.1 has been specified for this purpose by JEDEC. All microstrip segment lengths are to be divided by 1.1
before summation into the length matching equation. The resulting compensated length is termed the 'stripline
equivalent length'. While some amount of residual velocity mismatch skew remains in the design, the process is
a substantial improvement over simple length matching.
6 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
Note
These features may not be supported on all devices. Refer to the datasheet and the DDR Subsystem
(DDRSS) chapter in the AM62x Technical Reference Manual for lists of features and not supported
features.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 7
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
Note
ECC is supported on the DDR4 interface. Unlike traditional ECC interfaces which require dedicated
memory pins and devices, ECC is supported inline. The ECC system impact is in interface bandwidth
and overall memory density, as ECC data is stored alongside non-ECC data. Max addressable range
will be reduced if ECC is enabled. See device TRM for more details.
8 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 9
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
DDR0_DQ15 DQ15
8
DDR0_DQ8 DQ8
DDR0_DM1 UDM_n/UDBI_n
DDR0_DQS1 UDQS_t
DDR0_DQS1_n UDQS_c
DDR0_DQ7 DQ7
8
DDR0_DQ0 DQ0
DDR0_DM0 LDM_n/LDBI_n
DDR0_DQS0 LDQS_t
DDR0_DQS0_n LDQS_c
VDDS_DDR
DDR0_CK0 CK_t
DDR0_CK0_n CK_c
Zo
DDR0_A0 A0
14
VTT optional
when using
Zo single package
DDR0_A13 A13 memory devices
DDR0_WE_n WE_n/A14
DDR0_CAS_n CAS_n/A15
DDR0_RAS_n RAS_n/A16
DDR0_ACT_n ACT_n
Zo
DDR0_BA0 BA0
DDR0_BA1 BA1
DDR0_PAR PAR
Zo
DDR0_CS0_n CS_n
DDR0_CS1_n NC
DDR0_ODT0 ODT
DDR0_ODT1 NC Zo
DDR0_CKE0 CKE
DDR0_CKE1 NC
VDDS_DDR
DDR0_ALERT_n ALERT_n
DDR0_RESET0_n RESET_n
1. When designing with VTT regulator (LDO) which can source and sink current, decoupling capacitors
(minimum of one capacitor (1.0uF value) must be used for every two termination resistors) should be used to
minimize the effect of VTT supply noise. Refer to the AM64x GP EVM for reference
2. Zo value for resistors is 30-47ohm. Resistor value should closely match trace impedance.
3. VTT is optional on address/control signals when using single package memory devices, but termination as
shown on CK0/CK0_n is always required
4. DDR_VREF is supplied by the VTT regulator. When VTT is not used, VREFCA needs to be connected to a
voltage divider. Consult the EVM schematic for an example of the voltage divider implementation.
Figure 2-1. 16-Bit, Single-Rank DDR4 Implementation Using x16 SDRAM
10 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 11
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
DDR0_DQ15 DQ7
8
DDR0_DQ8 DQ0
DDR0_DM1 LDM_n/LDBI_n
DDR0_DQS1 LDQS_t
DDR0_DQS1_n LDQS_c
DDR0_DQ7 DQ7
8
DDR0_DQ0 DQ0
DDR0_DM0 LDM_n/LDBI_n
DDR0_DQS0 LDQS_t
DDR0_DQS0_n LDQS_c
VDDS_DDR
DDR0_CK0 CK_t CK_t
DDR0_CK0_n CK_c CK_c
Zo
DDR0_A0 A0 A0
14
VTT optional
when using
Zo
DDR0_A13 A13 A13 single package
memory devices
DDR0_WE_n WE_n/A14 WE_n/A14
DDR0_CAS_n CAS_n/A15 CAS_n/A15
DDR0_RAS_n RAS_n/A16 RAS_n/A16
1. When designing with VTT regulator (LDO) which can source and sink current, decoupling capacitors
(minimum of one capacitor (1.0uF value) must be used for every two termination resistors) should be used to
minimize the effect of VTT supply noise. Refer to the AM64x GP EVM for reference.
2. Zo value for resistors is 30-47ohm. Resistor value should closely match trace impedances.
3. VTT is optional on address/control signals when using single package memory devices, but termination as
shown on CK0/CK0_n is always required.
4. DDR_VREF is supplied by the VTT regulator. When VTT is not used, VREFCA needs to be connected to a
voltage divider. Consult the EVM schematic for an example of the voltage divider implementation.
5. For Single-Rank designs, CS1_n, ODT1, and CKE1 can be left unconnected
6. Single package memories with two x8 dies do not require VTT.
Figure 2-2. 16-Bit, Dual-Rank DDR4 Implementation Using x8 SDRAMs
12 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
(1) For valid DDR4 device configurations and device counts, see DDR4 Interface Schematics.
(2) For supported data rates, see the device-specific data manual.
(3) SDRAMs in faster speed grades can be used provided they are properly configured to operate at the supported data rates. Faster
speed grade SDRAMs may have faster edge rates, which may affect signal integrity. SDRAMs with faster speed grades must be
validated on the target board design.
2.5 Placement
Figure 2-3 shows the required placement for the processor and the DDR4 devices. The dimensions for this
figure are defined in Table 2-3. The placement does not restrict the side of the PCB on which the devices are
mounted. The ultimate purpose of the placement is to limit the maximum trace lengths and allow for proper
routing space.
x1
y1 A1
y3
y2
A1
A1
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 13
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
DDR Keepout
Region
Byte 1
A1
DDR
Controller
Byte 0
A1
A1
2.7 DBI
DBI is recommended to reduce supply/ground noise and to improve the data eye. Therefore the DDR
Subsystem Configuration Tool enables Read DBI as a default for DDR4 configurations.
2.8 VPP
VPP is a new supply input on DDR4 SDRAMs. This supply must provide an average of less than 5 mA in active
and standby modes and 10 to 20 mA during refresh. There is not a constant current draw during refresh. The
VPP power supply and decoupling capacitors must be able to supply short bursts of current up to 60 mA during
this time.
2.9 Net Classes
Routing rules are applied to signals in groups called net classes. Each net class contains signals with the same
routing requirements. This simplifies the implementation and compliance of these routes. Table 2-4 lists the clock
net classes for the DDR4 interface. Table 2-5 lists the signal net classes, and associated clock net classes, for
signals in the DDR4 interface. These net classes are then linked to the termination and routing rules that follow.
Table 2-4. Clock Net Class Definitions
Clock Net Class Processor Pin Names
CK DDR0_CK0 / DDR0_CK0_n
DQS0 DDR0_DQS0 / DDR0_DQS0_n
DQS1 DDR0_DQS1 / DDR0_DQS1_n
14 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 15
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
Note
Fly-by routing is required for DDR4 layouts. Balanced-T routing, previously used for DDR2 layouts, is
not supported.
Section 2.2 discussed that there are multiple possible memory topologies, or implementations, ranging from a
single x16 SDRAM up to a maximum of two x8 SDRAMs. Regardless of the number of SDRAMs implemented,
the routing requirements must be followed. TI recommends that all SDRAMs be implemented on the same side
of the board, preferably on the same side of the board as the processor. It is possible to implement the SDRAMs
on both sides of the board, but the routing complexity and the number of PCB layers required is significantly
increased.
Figure 2-5 shows the topology of the CK net class, and Figure 2-6 shows the topology for the corresponding
ADDR_CTRL net class. The fly-by routes have been broken into segments to simplify the length matching
analysis. Care must be taken to avoid excessive length error accumulation with this method.
Segments A1 and A2 comprise the lead-in section. Segment AT is the track to the termination at the end of the
net. Segments A3 are the routed track between the stubs that branch off to each SDRAM. For topologies with
fewer SDRAMs, remove an A3 segment for each SDRAM not present. Length matching requirements for the
routing segments are detailed in Table 2-6.
SDRAM Differential
CK Input Buffers
+ - + -
AS+
AS+
AS-
AS-
Clock Parallel
Terminator
Rcp VDDS_DDR
A1 A2 A3 AT
+
Processor Routed as Cac
Differential Clock Differential Pair
Output Buffer 0.1uF
-
Rcp
A1 A2 A3 AT
AS
The previous figures show the circuit topology such that the track lengths can be managed and the routed track
length matching rules can be followed. The next two figures again show the routing for the CK and ADDR_CTRL
routing groups depicted from the perspective of tracks routed on the PCB.
16 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
Figure 2-7 shows the CK group routing for two SDRAM devices. The fly-by routing is made clear in this figure.
The DDR0_CK0 and DDR0_CK0_n tracks (the CK routing group) are routed as a differential pair from the
processor to the SDRAM at the end that will contain BYTE0 data. This differential pair routing then proceeds to
the other SDRAM and ends with the AC termination to VDDS_DDR. The routing also includes the routing stubs
for both DDR0_CK0 and DDR0_CK0_n at each SDRAM.
Routed as
Differential
AS+
AS-
= Pair
A1
A1
VDDS_DDR
A2
A2
Rcp
Cac
AT A3
AT A3
0.1uF
Figure 2-8 shows the ADDR_CTRL routing for two SDRAM devices. These are also routed in a fly-by manner
along the same path because the ADDR_CTRL routing group is length-matched to the CK routing group.
AS
=
A1
VTT
A2
Rtt
AT A3
The absolute order is not significant. The fly-by routing that starts at the processor can also route down to
the SDRAM containing the last byte of data (or whichever SDRAM that is opposite in the row from the one
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 17
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
containing the BYTE0 data). The fly-by routing then proceeds to the other SDRAM as discussed above, until it
routes to VTT through the Rtt termination after the BYTE0 SDRAM.
18 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
Minimize layer transitions during routing. If a layer transition is necessary, it is preferable to transition to a
layer using the same reference plane. If this cannot be accommodated, ensure there are nearby stitching vias
to allow the return currents to transition between reference planes when both reference planes are ground or
VDDS_DDR. Alternately, ensure there are nearby bypass capacitors to allow the return currents to transition
between reference planes when one of the reference planes is ground and the other is VDDS_DDR. This
must occur at every reference plane transition. The goal is to minimize the size of the return current path
thus minimizing the inductance in this path. Lack of these stitching vias or capacitors results in impedance
discontinuities in the signal path that increase crosstalk and signal distortion.
2.15 Data Group Topologies and Routing Guidance
Regardless of the number of DDR4 devices implemented, the data line topology is always point-to-point.
Minimize layer transitions during routing. If a layer transition is necessary, it is better to transition to a layer
using the same reference plane. If this cannot be accommodated, ensure there are nearby ground vias to allow
the return currents to transition between reference planes. The goal is to provide a low inductance path for the
return current. Also, to optimize the length matching, TI recommends routing all nets within a single data routing
group on one layer where all have the exact same number of vias and the same via barrel length.
DQSP and DQSN lines are point-to-point signals routed as a differential pair. Figure 2-9 shows the DQS
connection topology.
+ +
Processor DQS+ DDR SDRAM
DQS IO DQS IO
Buffer DQS- Buffer
- -
Routed as
Differential Pair
DQ and DM lines are point-to-point signals routed singled-ended. Figure 2-10 shows the DQ and DM connection
topology.
Similar to the figures above for the CK and ADDR_CTRL routes, Figure 2-11 and Figure 2-12 show an example
of the PCB routes for a DQS routing group and the associated data routing group nets.
The routing example shows DQS0P and DQS0N, which are routed as a differential pair from the processor to
the SDRAM that contains Byte 0. This is implemented as a point-to-point routed differential pair without any
board terminations. There are no stubs allowed on these nets of any kind. All test access probes must be in line
without any branches or stubs. Similar DQS pair routing exists from the processor to each SDRAM for the byte
lanes implemented.
Figure 2-12 shows a routing example for a single net in the Byte 0 routing group. The DQ and DM nets are
routed single-ended and are also point-to-point without any stubs or board terminations. Point-to-point routes
exist for each of the DQ and DM nets implemented.
The DQ and DM nets are routed along the same path as the DQSP and DQSN pair for that byte lane, so that
they can be length matched to the DQS pair.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 19
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
Routed as
Differential
Pair
DQSP
DQSN
DQ/DM
20 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 21
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
DDR4 Board Design and Layout Guidance [Link]
(1) Max value is based upon conservative signal integrity approach. This value could be extended only if detailed signal integrity analysis
of rise time and fall time confirms desired operation.
(2) This is the combined length from the processor to the SDRAM. It must be computed for each SDRAM to ensure that the segment
matching does not result in accumulated error. For the first SDRAM, it is A1 + A2 + AS, computed for each signal. For the 2nd
SDRAM, it is A1 + A2 + A3 + AS, computed for each signal.
(3) While this length can be increased for convenience, its length should be minimized.
(4) ADDR_CTRL net class relative to its CK net class.
(5) Center-to-center spacing is allowed to fall to minimum 2w for up to 500 mils of routed length (only near endpoints).
(6) CK spacing set to ensure proper differential impedance.
(7) The user must control the impedance so that inadvertent impedance mismatches are not created. Generally speaking, center-to-center
spacing should be either 2w or slightly larger than 2w to achieve a differential impedance equal to twice the single-ended impedance,
Zo, on that layer.
(8) Source termination (series resistor at driver) is specifically not allowed.
(9) Termination values should be uniform across the net class.
(10) Via count difference may increase by 1 only if accurate 3-D modeling of the signal flight times – including accurately modeled signal
propagation through vias – has been applied to ensure all segment skew maximums are not exceeded.
(11) Count vias individually from processor to each SDRAM.
(12) PCB track length shown as ps is a normalized representation of length. 1 ps can be equated to 5 mils as a simple transformation. This
is stripline equivalent length where velocity compensation must be used for all segments routed as microstrip track.
2.17 Data Group Routing Specification
Skew within the DQS and DQ/DM net classes directly reduces setup and hold margin for the DQ and DM nets.
Thus, this skew must be controlled. Routed PCB track has a delay proportional to its length. Thus, the length
skew must be managed through matching the lengths of the routed tracks within a defined group of signals. The
only way to practically match lengths on a PCB is to lengthen the shorter traces up to the length of the longest
net in the net class and its associated clock pair, DQSP, and DQSN. Consider Z-axis delays (VIAs) with accurate
stackup information during analysis.
2.17.1 DQLM - DQ Longest Manhattan Distance
As with CK and ADDR_CTRL, a reasonable trace route length is to within a percentage of its Manhattan
distance. DQLMn is defined as DQ Longest Manhattan distance n, where n is the byte number. For a 16-bit
interface, there are two DQLMs, DQLM0 and DQLM1.
Note
It is not required nor recommended to match the lengths across all byte lanes. Length matching is only
required within each byte.
Given the DQS, DQ, and DM pin locations on the processor and the DDR4 memories, the maximum possible
Manhattan distance can be determined given the placement. It is from this distance that and upper limit on the
lengths of the transmission lines for the data bus can be established. Unlike the CACLM, there is no margin
added to the DQLMn limits. These limits are simply the sum of the horizontal and vertical distances for the
longest pin to pin route for that byte group.
22 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] DDR4 Board Design and Layout Guidance
(1) Max value is based upon conservative signal integrity approach. This value could be extended only if detailed signal integrity analysis
of rise time and fall time confirms desired operation.
(2) Length matching is only done within a byte. Length matching across bytes is neither required nor recommended.
(3) Each DQS pair is length matched to its associated byte.
(4) Center-to-center spacing is allowed to fall to minimum 2w for up to 500 mils of routed length (only near endpoints).
(5) Other DDR4 trace spacing means other DDR4 net classes not within the byte.
(6) This applies to spacing within the net classes of a byte.
(7) DQS pair spacing is set to ensure proper differential impedance.
(8) The user must control the impedance so that inadvertent impedance mismatches are not created. Generally speaking, center-to-center
spacing should be either 2w or slightly larger than 2w to achieve a differential impedance equal to twice the single-ended impedance,
Zo, on that layer.
(9) Via count difference may increase by 1 only if accurate 3-D modeling of the signal flight times – including accurately modeled signal
propagation through vias – has been applied to ensure DQn skew and DQSn to DQn skew maximums are not exceeded.
(10) PCB track length shown as ps is a normalized representation of length. 1 ps can be equated to 5 mils as a simple transformation. This
is stripline equivalent length where velocity compensation must be used for all segments routed as microstrip track.
2.18 Bit Swapping
2.18.1 Data Bit Swapping
Data bit swapping is allowed to simplify routing as long as the DQ bits swapped are within the same byte group.
This is only possible when not using CRC. Any DQ bits within a byte group can be swapped. The DM and DQS
bits must not be swapped with any other signals. Data byte swapping is allowed, as long as all of the associated
signals within a byte (DQx, DQSx, and DM) are swapped together. Software configuration changes in the DDR
Configuration Tool ([Link] are not necessary for normal device functionality when swapping
data signals with DDR4
2.18.2 Address and Control Bit Swapping
Bit swapping of the address or control bits is not allowed, as this breaks functionality.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 23
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design and Layout Guidance [Link]
Note
ECC is supported on the LPDDR4 interface. Unlike traditional ECC interfaces which require dedicated
memory pins and devices, ECC is supported inline. The ECC system impact is in interface bandwidth
and overall memory density, as ECC data is stored alongside non-ECC data. Max addressable range
will be reduced if ECC is enabled. See device TRM for more details.
Note
Data bus routing must be point to point between the processor and the memory, and cannot be split
on the board. Thus, dual-rank LPDDR4 designs are only possible when using one channel of an
LPDDR4 dual channel, dual rank device. If more than 2GBytes is needed, consider using DDR4.
24 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design and Layout Guidance
DDR0_DQ15 DQ15_A
8
DDR0_DQ8 DQ8_A
DDR0_DM1 DMI1_A
DDR0_DQS1 DQS1_T_A
DDR0_DQS1_n DQS1_C_A
DDR0_DQ7 DQ7_A
8
DDR0_DQ0 DQ0_A
DDR0_DM0 DMI0_A
DDR0_DQS0 DQS0_T_A
DDR0_DQS0_n DQS0_C_A
DDR0_CK0 CK_T_A
DDR0_CK0_n CK_C_A
DDR0_A0 CA0_A
6
DDR0_A5 CA5_A
DDR0_A6
NC
DDR0_A13
DDR0_WE_n NC
DDR0_CAS_n NC
DDR0_RAS_n NC
DDR0_ACT_n NC
DDR0_BA0 NC
DDR0_BA1 NC
DDR0_BG0 NC
DDR0_BG1 NC
DDR0_PAR NC
VDD2
DDR0_CS0_n CS0_A
DDR0_CS1_n NC
ODT_C_A
DDR0_ODT0 NC
DDR0_ODT1 NC
VDDQ
DDR0_CKE0 CKE0_A
DDR0_CKE1 NC
ZQ
240
DDR0_ALERT_n NC
1%
DDR0_RESET0_n RESET_N
DDR0_CAL0
Memory
240
1%
Processor
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 25
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design and Layout Guidance [Link]
(1) Refer to the device data manual for supported data rates.
(2) SDRAMs in faster speed grades can be used, provided they are properly configured to operate at the supported data rates. Faster
speed grade SDRAMs may have faster edge rates, which may affect signal integrity. SDRAMs with faster speed grades must be
validated on the target board design.
3.5 Placement
Figure 3-2 shows the required placement for the processor and the LPDDR4 device. The dimensions for this
figure are defined in Table 3-3. The placement does not restrict the side of the PCB on which the devices are
mounted. The ultimate purpose of the placement is to limit the maximum trace lengths and allow for proper
routing space.
x1
y1
A1
A1
26 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design and Layout Guidance
DDR Keepout
Region
DDR
Controller
/ PHY
A1
A1
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 27
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design and Layout Guidance [Link]
Routed as
Differential Pair
Minimize layer transitions during routing. If a layer transition is necessary, it is preferable to transition to a
layer using the same reference plane. If this cannot be accommodated, ensure there are nearby stitching vias
to allow the return currents to transition between reference planes when both reference planes are ground or
VDDS_DDR. Alternately, ensure there are nearby bypass capacitors to allow the return currents to transition
between reference planes when one of the reference planes is ground and the other is VDDS_DDR. This
must occur at every reference plane transition. The goal is to minimize the size of the return current path
thus minimizing the inductance in this path. Lack of these stitching vias or capacitors results in impedance
discontinuities in the signal path that increase crosstalk and signal distortion.
There are no stubs or terminations allowed on the nets of the CK0 and ADDR_CTRL routing group topologies.
All test and probe access points must be in line without any branches or stubs.
3.13 Data Group Topologies
The data line topology is always point-to-point for LPDDR4 implementations, and is separated into two different
byte routing groups. Minimize layer transitions during routing. If a layer transition is necessary, it is better to
transition to a layer using the same reference plane. If this cannot be accommodated, ensure there are nearby
ground vias to allow the return currents to transition between reference planes (within ± 250 mils of transition
vias). The goal is to provide a low inductance path for the return current. To optimize the length matching,
TI recommends routing all nets within a single data routing group (ie. DQS/DQ/DM) together on the same
layer(s) where all nets have the exact same number of vias and the same via barrel length. Microstrip routing
can be used to implement DDR routing, but doing so provides lower EMI immunity and signal integrity at high
data rates. The designer should evaluate system requirements carefully to determine that the desired product
28 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design and Layout Guidance
requirements can be met. High-speed DQ and DQS/DQSn routing on microstrip layers requires special care and
DFM consideration because of more variation in signal propagation. Signals from the entire byte group must be
routed together.
DQSP and DQSN lines are point-to-point signals routed as a differential pair. Figure 3-6 illustrates the DQSP/N
connection topology.
+ +
RSD1
Processor LPDDR4 DQS
DQS IO Buffer IO Buffer
RSD1
- -
Routed as
Differential Pair
DQ and DM lines are point-to-point signals routed as single-ended. Figure 3-7 illustrates the DQ and DM
connection topology.
There are no stubs or termination allowed on the nets of the data group topologies. All test and probe access
points must be in line without any branches or stubs.
3.14 CK0 and ADDR_CTRL Routing Specification
Skew within the CK0 and ADDR_CTRL net classes directly reduces setup and hold margin for the ADDR_CTRL
nets. Thus, this skew must be controlled. Per-bit deskew capability within the PHY substantially loosens the
skew tolerance requirements. The skew budgets in Table 3-6 include total delay from SoC die pad to DRAM
pin. (i.e. delay of SOC package + PCB). Package delays are provided in Appendix: AM62x ALW and AMC
Package Delays. The designer is free to length match using smaller tolerance than the values shown in the
table. The routed PCB track has a delay proportional to its length. Thus, the delay skew must be managed
through matching the lengths of the routed tracks within a defined group of signals. The only way to practically
match lengths on a PCB is to lengthen the shorter traces. Consider Z-axis delays (VIAs) with accurate stackup
information during analysis.
Table 3-6 lists the limits for the individual segments that comprise the routing from the processor to the SDRAM.
These segment lengths coincide with the CK0 and ADDR_CTRL topology diagram shown previously in Figure
3-4 and Figure 3-5. By matching the length for the same segments of all signals in a routing group, the signal
delay skews are controlled. Most PCB layout tools can be configured to generate reports to assist with this
validation. If this cannot be generated automatically, this must be generated and verified manually.
Table 3-6. CK0 and ADDR_CTRL Routing Specifications
Number Parameter MIN TYP MAX UNIT
LP4_ACRS1 Propagation delay of net class CK0 450(1) ps
(RSAC1)
LP4_ACRS2 Propagation delay of net class ADDR_CTRL 450(1) ps
(RSAC2)
LP4_ACRS3 Skew within net class CK0 (Skew of DDR0_CK0 and 0.75(2) (3) ps
DDR0_CK0_n)
(RSAC1)
LP4_ACRS6 Skew across ADDR_CTRL and CK0 clock net classes, relative to -312.5(3) 312.5(3) ps
propagation delay of CK0 net class (5) (5)
(RSAC1 - RSAC2)(4)
LP4_ACRS7 Vias per trace 3(1) vias
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 29
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design and Layout Guidance [Link]
(1) Max value is based upon conservative signal integrity approach. FR4 material assumed with Dk ~ 3.7 - 3.9 & Df ~ 0.002. This value
could be extended only if detailed signal integrity analysis of rise time and fall time confirms desired operation.
(2) Recommendation for PCB layout tool design. Required to be verified by simulation(9), confirm JEDEC defined Vix_DQS_ratio (20%)
and Vix_CK_ratio (25%) are satisfied, also confirm good eye margins.
(3) Consider the delays from SOC die pad to the DRAM pin (ie. delays of SOC package + delays of PCB upto the DRAM pin. DRAM
package delays are omitted). Refer to Appendix: AM62x ALW and AMC Package Delays.
(4) Recommend routing net classes CK0 and ADDR_CTRL on same signal layer for better skew control.
(5) Simulation(9) must be performed and the delay report analyzed to ensure delays are within the limit. Delay reports from PCB layout
tools use a simplified calculation based on a constant propagation velocity factor. TI recommends initially delay matching in PCB layout
tool to a target less than 20% of the limit.
(6) Via count difference may increase by 1 only if accurate 3-D modeling of the signal flight times – including accurately modeled signal
propagation through vias – has been applied to ensure all segment skew maximums are not exceeded.
(7) Center-to-center spacing is allowed to fall to minimum 2w for up to 500 mils of routed length (only near endpoints). Spacing minimums
may be relaxed if simulations(9) accurately capture crosstalk between neighboring victim and aggressor traces and show good margin.
Consider also VIA spacing. Signals with adjacent VIAs near SOC should not also have adjacent VIAs near the DRAM.
(8) P to N spacing set to ensure proper differential impedance. The designer must control the impedance so that inadvertent impedance
mismatches are not created. Generally speaking, center-to center spacing should be either 2w or slightly larger than 2w to achieve a
differential impedance equal to twice the single-ended impedance, Zo, on that layer. Refer to impedance targets in Table 1-1
(9) Simulation refers to a power-aware IBIS Signal Integrity (SI) simulation. Simulate across process, voltage, and temperature (PVT).
Refer to LPDDR4 Board Design Simulations
3.15 Data Group Routing Specification
Skew within the Byte signal net class directly reduces the setup and hold margin for the DQ and DM nets. Thus
as with the ADDR_CTRL signal net class and associated CK0 clock net class, this skew must be controlled.
Per-bit deskew capability within the PHY substantially loosens the skew tolerance requirements. The skew
budgets in Table 3-7 include total delay from SoC die pad to DRAM pin. (i.e. delay of SOC package + PCB).
Package delays are provided in Appendix: AM62x ALW and AMC Package Delays. The designer is free to
length match using smaller tolerance than the values shown in the table. The routed PCB track has a delay
proportional to its length. Thus, the length skew must be managed through matching the lengths of the routed
tracks within a defined group of signals. The only way to practically match lengths on a PCB is to lengthen the
shorter traces. Consider Z-axis delays (VIAs) with accurate stackup information during analysis.
Note
It is not required nor recommended to match the lengths across all byte lanes. Length matching is only
required within each byte.
Table 3-7 contains the routing specifications for the Byte0 and Byte1 routing groups. Each signal net class and
its associated clock net class is routed and matched independently.
Table 3-7. Data Group Routing Specifications
Number Parameter MIN TYP MAX UNIT
LP4_DRS1 Propagation delay of net class DQSx (RSD1) 450(1) ps
LP4_DRS2 Propagation delay of net class BYTEx (RSD2) 450(1) ps
LP4_DRS3 Difference in propagation delays of CK0 pair and each DQS pair. 0(3) (4) 3(3) (4) tCK
(RSAC1 - RSD1) (2)
LP4_DRS4 Skew within net class DQSx. 1.5(4) (6) ps
Skew of DDR0_DQSx and DDR0_DQSx_n (RSD1)
LP4_DRS5 Skew across DQSx and BYTEx net classes. 150(3) (4) ps
(Skew of RSD1 and RSD2) (7)
30 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design and Layout Guidance
(RSD2 - RSD1)(8)
LP4_DRS7 Vias Per Trace 2(1) vias
LP4_DRS8 VIA Stub Length 40 Mils
LP4_DRS9 Via Count Difference 0(9) vias
LP4_DRS10 RSD1 center-to-center spacing (between different clock net classes) 5w(10)
LP4_DRS11 RSD1 center-to-center spacing (within clock net class)(11) See note below
LP4_DRS12 RSD2 center-to-center spacing (between different signal net classes/ 5w(10)
bytes)
LP4_DRS13 RSD2 center-to-center spacing (to self or within signal net class) 3w(10)
(1) Max value is based upon conservative signal integrity approach. FR4 material assumed with Dk ~ 3.7 - 3.9 & Df ~ 0.002. This value
could be extended only if detailed signal integrity analysis of rise time and fall time confirms desired operation.
(2) Propagation delay of CK0 pair must be greater than propagation delay of each DQS pair.
(3) Simulation(12) must be performed and the delay report analyzed to ensure delays are within the limit. Delay reports from PCB layout
tools use a simplified calculation based on a constant propagation velocity factor. TI recommends initially delay matching in PCB layout
tool to a target less than 20% of the limit.
(4) Consider the delays from SOC die pad to the DRAM pin (ie. delays of SOC package + delays of PCB upto the DRAM pin. DRAM
package delays are omitted). Refer to Appendix: AM62x ALW and AMC Package Delays.
(5) Recommend that the propagation delay of DQS is shorter than all DQx within a byte. If that is not possible, LP4_DRS6 specifies that a
DQ can be shorter by at most 49ps
(6) Recommendation for PCB layout tool design. Required to be verified by simulation(12), confirm JEDEC defined Vix_DQS_ratio (20%)
and Vix_CK_ratio (25%) are satisfied, also confirm good eye margins.
(7) Skew matching is only done within a byte including DQS. Skew matching across bytes is neither required nor recommended.
(8) Propagation delay of the shortest DQ/DM bit in BYTEx Signal Net Class is recommended to be greater than the the propagation delay
of its respective DQSx.
(9) VIA count difference may increase by 1 only if accurate 3-D modeling of the signal flight times – including accurately modeled signal
propagation through VIAs – has been applied to ensure skew maximums are not exceeded.
(10) Center-to-center spacing is allowed to fall to minimum 2w for up to 500 mils of routed length (only near endpoints). Spacing minimums
may be relaxed if simulations(12) accurately capture crosstalk between neighboring victim and aggressor traces and show good margin.
Consider also VIA spacing. Signals with adjacent VIAs near SOC should not also have adjacent VIAs near the DRAM.
(11) DQS pair spacing is set to ensure proper differential impedance. P to N spacing set to ensure proper differential impedance. The
designer must control the impedance so that inadvertent impedance mismatches are not created. Generally speaking, center-to center
spacing should be either 2w or slightly larger than 2w to achieve a differential impedance equal to twice the single-ended impedance,
Zo, on that layer. Refer to impedance targets in Section 1.3.
(12) Simulation refers to a power-aware IBIS Signal Integrity (SI) simulation. Simulate across process, voltage, and temperature (PVT).
3.16 Byte and Bit Swapping
All address/control signals must be routed from the DDR controller to the LPDDR4 memory as described in the
diagrams in LPDDR4 Interface Schematics. Address/control signals cannot be swapped with other signals. Data
bit (DQx) and Data Mask (DM) swapping within a byte (for example, swapping D2 with D3) is allowed, but data
bit DQx/DM swapping across bytes (for example, swapping D4 and D13) is not allowed.
Swapping byte lanes within a channel (for example, swapping byte 0 and 1) is [Link] swapping bytes, all
of the associated signals of the byte (DQx, DQSx, and DM) must be swapped together.
Use the DDR Subsystem Register Configuration Tool in SysConfig ([Link] to describe how
the bits are swapped. Check the README link in the tool for detailed instructions.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 31
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
The board level extraction guidelines listed below are intended to work in any EDA extraction tool and are not
tool-specific. It is important to follow the steps outlined in Section 4.2 through Section 4.4 immediately after
completing touchstone model extractions. The design should be checked with these steps prior to running IBIS
simulations.
1. For DDR extractions, extract power (VDDS_DDR/VDDQ) and signal nets together in a 3D-EM solver.
2. Use wide-band models. It is recommended to extract from DC to at least until 6x the Nyquist frequency (for
example, for LPDDR4-3733 extract the model at least until 11.2 GHz).
3. Check the board stack-up for accurate layer thickness and material properties.
a. It is recommended to use Djordjevic-Sarkar models for the dielectric material definition.
4. Use accurate etch profiles and surface roughness for the signal traces across all layers in the stack-up.
5. If the board layout is cut prior to extraction (to reduce simulation time), define a cut boundary that is at least
0.25 inch away from the signal and power nets.
6. Check the via padstack definitions.
a. Ensure that the non-functional internal layer pads on signal vias are modeled the same way they would
be fabricated.
b. These non-functional internal layer pads on signal vias are not recommended by TI.
7. Use Spice/S-parameter models (typically available from the vendor) for modeling all passives in the system.
4.2 Board-Model Validation
The extracted board models need to be checked for the following properties:
• Passivity: This ensures that the board model is a passive network and does not generate energy
• Causality: This ensures that the board model obeys the causal relationship (output follows input).
These checks can be performed in any standard EDA simulator or extraction engine.
4.3 S-Parameter Inspection
Once the extracted S-parameters have been verified as causal and passive, the S-parameter plots should be
inspected. It is recommended to check for the following:
• Insertion Loss: The single-ended insertion loss is recommended to stay within 0 to 10 dB up to 3 times
the Nyquist frequency of operation. For example, if the target frequency is 8 Gbps (4GHz Nyquist), the
single-ended insertion loss should stay under 10 dB up to 12 GHz.
• Return Loss: The single-ended return loss is recommended to be less than 15 dB up to 3 times the Nyquist
frequency.
• Near and Far end crosstalk (FEXT/NEXT): The FEXT and NEXT are recommended to be under 25 dB for
frequencies up to 3 times the Nyquist frequency.
The S-Parameter inspection plots are not pass/fail tests, but rather its more of a guide to check if the design has
a reasonable chance of performing a the required level.
32 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design Simulations
As shown in Figure 4-1, the TDR plot highlights impedance discontinuities in the trace from one end to the other.
This method depends on a reflected waveform from the far-end of the trace. The delay in the plot corresponding
to a particular point in the trace actually corresponds to 2 times the distance of that point from the source, owing
to the round trip time. This needs to be factored in for assessing the source of impedance discontinuities.
The TDR plot can be generated by reading in the S-parameter models generated by the extraction tool and
assessing them in “Time-Domain” mode. A standard EDA simulator such as HyperLynx can perform this
function. It is recommended to optimize the design to within a ± 5% deviation from the nominal trace impedance.
The TDR plots are not pass/fail tests, but rather is more of a guide to check if the design has a reasonable
chance of performing a the required level.
4.5 System Level Simulation
The methodology for validating the DDR interface is outlined in this section. LPDDR4 interfaces, as defined in
the JEDEC specification, uses eye masks defined at a target BER (Bit Error Rate) to determine pass or fail
for signal integrity. It is essential to perform channel simulations using IBIS models to generate the signal eye
diagrams at the targeted BER. These are introduced for memory interfaces starting from LPDDR4
4.5.1 Simulation Setup
Set up the system-level schematic in the simulator by connecting the SOC IBIS model, board model, power
supplies, DRAM package model, and DRAM IBIS model. A typical system-level DDR schematic is shown in
Figure 4-2.
Note
Be aware of the DRAM configuration (number of dies in the package, number of ranks, and number of
channels) while setting up the system schematic. Be aware the DRAM configuration may also include
On-Die Decoupling Circuit.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 33
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
• LPDDR4 simulations require power-aware IBIS models for the controller and the memory along with a
simulator that supports channel simulations for DDR interfaces.
• SPICE-based transistor-level simulations cannot be used for generating BER signal eyes. Use a simulator
that can handle power-aware IBIS simulations and can run channel simulations for the DDR interface.
• IBIS models reduce simulation time with minimal loss in accuracy compared with SPICE-based transistor-
level simulations. IBIS models starting from version 5.0 are power-aware models which enables
Simultaneous Switching Output (SSO) noise simulations. The TI IBIS model is a power-aware IBIS model.
• Use SPICE models to accurately model the on-die decoupling capacitance on the DDR supply net for both –
controller and DRAM. This ensures accurate power noise and Power Supply Induced Jitter (PSIJ) estimation
in DDR simulations. The on-die decoupling capacitance information for the DRAM can be obtained from the
DRAM vendor.
• Use SPICE or S-parameter files to model the DRAM package. This can be requested from the DRAM vendor.
EBD models are not recommended.
• Note that inside the SoC IBIS model, there is a section for the package that contains an RLC matrix for all
signal and power nets including DDR. It is recommended to use the SoC IBIS model, not the SOC package
S-parameter model. When using SoC IBIS model, be sure to check the "Package Parasitics" (or equivalent
parameter in your simulation tools) and use the "Package Model" model type which contains fully coupled L/C
information on a per pin basis (denoted in the IBIS file as "[Package Model] am62_pkg").
34 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design Simulations
• AM62x model for the on-die decoupling capacitance on the DDR supply net:
– Data
******************************************
* On-die Decoupling circuit for AM62x (DIE_VDDS_DDR to VSS)
******************************************
* Notes:
* Includes on-die decoupling for all DDR signals
*
* This subcircuit should be added across the AM62x IBIS model's
* DIE_VDDS_DDR and VSS pins
*
******************************************
* x_decouple DIE_VDDS_DDR vss_die AM62x_ondie_decoupling_alldq
******************************************
.SUBCKTAM62x_ondie_decoupling_alldq DIE_VDDS_DDR vss_die
Cvddq_c DIE_VDDS_DDR DIE_VDDS_DDR_c 1.324741e-9
Rvddq_c vss_die DIE_VDDS_DDR_c 25.0036612e-3
.ENDS
– Address/Command
******************************************
* On-die Decoupling circuit for AM62x (DIE_VDDS_DDR to VSS)
******************************************
* Notes:
* Includes on-die decoupling for all DDR signals
*
* This subcircuit should be added across the AM62x IBIS model's
* DIE_VDDS_DDR and VSS pins
*
******************************************
* x_decouple DIE_VDDS_DDR vss_die AM62x_ondie_decoupling_alldq
******************************************
.SUBCKTAM62x_ondie_decoupling_alldq DIE_VDDS_DDR vss_die
Cvddq_c DIE_VDDS_DDR DIE_VDDS_DDR_c 4.335517e-9
Rvddq_c vss_die DIE_VDDS_DDR_c 25.0036612e-3
.ENDS
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 35
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
•
4.5.2 Simulation Parameters
It is important to configure the simulation to exercise the system to real, but worst case parameters.
• Use the worst-case bit pattern to excite the system. The simulator should be able to generate the worst-case
bit pattern based on channel characterization.
• Select the controller and DRAM models (sets the drive strength, ODT, VOH levels, and so forth) from the IBIS
files which work best for the system.
– This is typically an iterative process.
– Every system is unique and the optimal settings for these parameters can vary from system to system.
Table 4-1. Example Data Write ODI/ODT Optimization
Total EH
Total EW Margin
Pkg Byte Board ODI Ω ODT Ω Margin (ps) (mV)B
• Data bus and address bus ODT and drive strength values can be set independently. As an example, the J7
EVM board (which supports LPDDR4 at similar speeds) used 40-Ω ODT for data read/writes and 80-Ω for CA
bus. Drive strength of 40-ohms for data read/write and CA.
– Data READ Controller model - lpddr4_odt_40, lpddr4_odt_40_diff
– Data WRITE Controller model - lpddr4_ocd_40p_40n, lpddr4_ocd_40p_40n_diff
– CA/CLK Controller model - lpddr4_ocd_40p_40n, lpddr4_ocd_40p_40n_diff
• Set up the channel simulation parameters. These typically consists of the data rate, ignore time/bits,
minimum number of bits, bit sampling rate, BER floor, number of bits for display, types of BER eyes (voltage
and/or timing), and target BER.
– To determine the minimum number of bits one can run a series of channel simulations with different
number of bits. The BER signal eye (and margins) tend to converge after a certain minimum number of
bits. This should help determining the minimum number of bits to be used for the system.
– Run channel simulations to generate the eye diagrams at LBER of -16.
• Run channel simulations with non-ideal power settings at different PVT corners. It is recommended to run the
simulations at least at the SSHT and FFLT corners.
36 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design Simulations
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 37
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
Write eye mask TdIVW Rectangular (1) 0.22 UI 0.25 UI (1) (2)
Write eye mask VdIVW Rectangular (1) 140 mV 140 mV (1) (2)
(1) Copied from JEDEC specification: Low Power Double Date Rate 4 (LPDDR4).
(2) For details, contact the DRAM vendor.
38 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design Simulations
Figure 4-4 through Figure 4-6 show the eye mask definitions translated to eye diagrams within captured
waveforms.
Figure 4-4. Example Simulated LPDDR4-4266 Read Eye With Diamond-Shaped Eye Mask
Figure 4-5. Example Simulated LPDDR4-4266 Write Eye With Rectangular JEDEC Eye Mask
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 39
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
Figure 4-6. Example Simulated LPDDR4-4266 CA Eye With Rectangular JEDEC Eye Mask
40 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design Simulations
Table 4-5. Example 12-layer PCB Stackup for LPDDR4 (AM62Ax LP SK EVM)
Layer No Stackup Routing Plan Highest Priorities and Layer
Solder mask
1 TOP - PWR/SIG BGA breakouts, VDD_LPDDR4, GND
2 GND REF
3 PWR/SIG VDDA_1V8, GND, LPDDR (DBG #3/#1, CA T-Branches), LVCMOS escape
4 GND REF
5 SIG/GND GND, LPDDR (DBG #2/#0), LVCMOS escape
6 PWR/GND GND (under LPDDR), VDD_CORE, VDDR_CORE, VDDA_1V8, VDDSHVx
7 PWR DVDD_3V3, DVDD_1V8, VDD1_LPDDR4_1V8
8 PWR VDD_CORE, VDD_LPDDR4, VDDA_x
9 GND REF
10 SIG/GND GND, LPDDR (CA point-to-point, CA Trunks), LVCMOS escape
11 GND REF
12 BOTTOM - SIG/PWR GND, decaps, LVCMOS escape
Solder mask
Table 4-6. Example 12-layer PCB Stackup for LPDDR4 (AM62Px SK EVM)
Layer No Stackup Routing Plan Highest Priorities and Layer
Solder mask
1 TOP - PWR/SIG BGA breakouts, VDD_LPDDR4, GND
2 GND REF
3 PWR/SIG VDDA_1V8, GND, LPDDR (DBG #3/#1, CA T-Branches), LVCMOS escape
4 GND REF
5 SIG/GND GND, LPDDR (DBG #2/#0), LVCMOS escape
6 GND REF
7 PWR VDD_CORE, VDD_LPDDR4, DVDD_3V3
8 PWR/GND VDD1_LPDDR4_1V8, GND, VDDA_x
9 PWR/GND GND, VDDR_CORE, VDDA_1V8, DVDD_3V3, DVDD_1V8
10 SIG/GND GND, LPDDR (CA point-to-point, CA Trunks), LVCMOS escape
11 GND REF
12 BOTTOM - SIG/PWR GND, decaps, LVCMOS escape
Solder mask
Table 4-7 provides simulation results performed on sample designs, showing the impact of the PCB stackup
(material, drill plan, and so forth) on LPDDR4 performance. The results showed that maximum bandwidth could
be achieved on a FR4 solution, but required back-drilling. The higher frequency material could achieve same
performance without back drill. Note the 8 layer design only achieved 3733, but this was due to other design
compromises due to limited layers (solid reference planes, and so forth).
Table 4-7. Example LPDDR4 Performance Impact From J7 EVM Stackup
Maximum LPDDR4
Design Material Layer Count Via Back Drilling Speed (Mbps) (1)
J7 EVM I-Speed 16 Yes 4266
Ref Board I-Speed 10 No 4266
Ref Board 370HR 10 Yes 4266
Ref Board 370HR 8 No 3733
(1) These results are for J7 designs. For maximum supported data rates, see the device-specific data sheet.
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 41
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
4.6.2 Routing
The below examples from a J7 design show the LPDDR4 Clock and CA routing on an example 10-layer
PCB design. The clock is routed differentially with target impedance of 70 Ω. For the T-branch to match
the impedance of the trace, the impedance needs to be doubled. This can create challenges, as the higher
impedances can be difficult to achieve in some PCB stackups. The CA signals are routed targeting 35 Ω, with
the T-branch at two times the source impedance.
On the same 10 layer reference design, the data groups are routed on layers 2 and 4. The upper layers are used
due to the minimum via travel, which minimized the via inductance and via-to-via coupling. Because the data
signals are point-to-point, T-branch routing is not required.
42 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] LPDDR4 Board Design Simulations
For CK and CA signals, the goal is to have the branch segment equal to two times the impedance of the
feed trace. Note its common for the PCB to limit the achievable impedances. Simulations will show you if the
compromises are acceptable.
Table 4-11. Example LPDDR4 Trace Impedance Summary for CA
CA Branch Impedance
Board CA Feed Impedance (Ω) (Ω) CA Branch Target (Ω) Impedance Mismatch (Ω)
Initial Design 49.1 59.6 98 (49x2) 19.3
Final Design 41.1 51.7 82 (41x2) 15.3
The simulation results show the improvement made by closer matching the impedances to their targets.
Table 4-12. Example LPDDR4 Simulation Results From Improved Trace Impedance
Board Total Eye Width Margin (ps) Total Eye Height Margin (ps)
Initial Design 58.00 14.00
Final Design 124.68 48.08
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 43
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
LPDDR4 Board Design Simulations [Link]
Data write simulations need to be verified at both the DRAM BGA pin and the DRAM pad. This includes:
• Vix_CK ration (JEDEC)
• Jitter/noise margins with respect to the eye mask (JEDEC)
• Peak-peak power noise
The simulations results for read includes two sets for data, black and green. The black shows the design failed,
as several bytes failed to meet the eye margins. The green is the simulation results of the same design, but with
back-drilling the via stubs applied.
44 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
[Link] Appendix: AM62x ALW and AMC Package Delays
SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024 AM62x DDR Board Design and Layout Guidelines 45
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
Revision History [Link]
6 Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
Changes from January 1, 2023 to November 2, 2024 (from Revision A (January 2023) to
Revision B (November 2024)) Page
• Specified power aware simulation should be used to determine decoupling capacitor count and total values..5
• Clarified DDR4 supported topologies................................................................................................................. 7
• Updated DDR4 Schematics to include info on VTT and dual rank.....................................................................9
• Updated info on DDR4 Signal Termination.......................................................................................................15
• Updated VTT as optional for point to point designs..........................................................................................15
• Updated CK and ADDR_CTRL Routing Limits and Routing Specifications table............................................ 21
• Updated Data Group Routing Limits and Data Group Routing Specifications tables.......................................23
• Added support for DDR4 data bit swapping and byte swapping...................................................................... 23
• Clarified LPDDR4 supported topologies...........................................................................................................24
• Updated LPDDR4 Data Group Topologies....................................................................................................... 28
• Updated LPDDR4 CK and ADDR_CTRL Routing specifications..................................................................... 29
• Updated LPDDR4 Data Group Routing Specifications.....................................................................................30
• Allowing DQ/DM bit swapping and byte swapping........................................................................................... 31
• Added LPDDR4 Simulation section for AM62x................................................................................................ 32
• Removed Waveform Quality section (ring-back margins)................................................................................ 37
• LPDDR4-3733 Read eye mask VdlVW corrected to 140mV in Table 4-3........................................................ 38
• Add eye masks for LPDDR4-1600................................................................................................................... 38
• Added AM62Px SK EVM stackup into Table 4-6 .............................................................................................40
• Corrected Impedance Mismatch calculation in Table 4-11............................................................................... 43
• Removed Minimum ring-back margins at high/low levels (JEDEC)................................................................. 43
• Added package delay section...........................................................................................................................45
46 AM62x DDR Board Design and Layout Guidelines SPRAD06B – MARCH 2022 – REVISED NOVEMBER 2024
Submit Document Feedback
Copyright © 2024 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on [Link] or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2024, Texas Instruments Incorporated