Technical Note: DDR4 Point-to-Point Design Guide
Technical Note: DDR4 Point-to-Point Design Guide
Introduction
Technical Note
DDR4 Point-to-Point Design Guide
Introduction
DDR4 memory systems are quite similar to DDR3 memory systems. However, there are
several noticeable and important changes required by DDR4 that directly affect the
board’s design:
• New V PP supply
• Removed V REFDQ reference input
• Changed I/O buffer interface from midpoint terminated SSTL to V DD terminated
pseudo open-drain (POD)
• Added ACT_n control
DDR4 added over 30 new features with a significant number of them offering improved
signaling or debug capabilities: CA parity, multipurpose register, programmable write
preamble, programmable read preamble, read preamble training, write CRC, read DBI,
write DBI, V REFDQ calibration, and per DRAM addressability. It is beyond the scope of
this document to provide an in-depth explanation of these features; however, a success-
ful DDR4 high-speed design will require the use of these new features and they should
not be overlooked. The Micron DDR4 data sheet provides in-depth explanation of these
features.
As the DRAM’s operating clock rates have steadily increased, doubling with each DDR
technology increment, DRAM training/calibration has gone from being a luxury in DDR
to being an absolute necessity with DDR4. For example, if the required V REFDQ calibra-
tion and data bus write training were not correctly performed, DDR4 timing specifica-
tions would have to be severely derated; but the issue is moot since the specifications
require V REFDQ calibration and data bus write training.
The first section of this document highlights some new DDR4 features that can help en-
able a successful board operation and debug. These features offer the potential for im-
proved system performance and increased bandwidth over DDR3 devices for system
designers who are able to properly design around the timing constraints introduced by
this technology. The second section outlines a set of board design rules, providing a
starting point for a board design. And the third section details the calculation process
for determining the portion of the total timing budget allotted to the board intercon-
nect. The intent is that board designers will use the first section to develop a set of gen-
eral rules and then, through simulation, verify their designs in the intended environ-
ment.
The suggestions provided in this technical note mitigating tRC, tRRD, tFAW, tCCD, and
tWTR can help system designers optimize DDR4 for their memory subsystems. For sys-
tem designers who find the increases offered by DDR4 are not enough to provide relief
in their networking subsystems, Micron offers a comprehensive line of memory prod-
ucts specifically designed for the networking space. Contact your Micron representative
for more information on these products.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 1 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
Products and specifications discussed herein are for evaluation and reference purposes only and are subject to change by
Micron without notice. Products are only warranted by Micron to meet Micron's production data sheet specifications. All
information discussed herein is provided on an "as is" basis, without warranties of any kind.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
DDR4 Overview
DDR4 SDRAM is a high-speed dynamic random-access memory internally configured
as an 8-bank DRAM for the x16 configuration and as a 16-bank DRAM for the x4 and x8
configurations. The device uses an 8n-prefetch architecture to achieve high-speed oper-
ation. The 8n-prefetch architecture is combined with an interface designed to transfer
two data words per clock cycle at the I/O pins.
A single READ or WRITE operation consists of a single 8n-bit wide, four-clock data
transfer at the internal DRAM core and two corresponding n-bit wide, one-half-clock-
cycle data transfers at the I/O pins.
This section describes the key features of DDR4, beginning with Table 1, which com-
pares the clock and data rates, density, burst length, and number of banks for the five
standard DRAM products offered by Micron.The maximum clock rate and minimum
data rate are the operating conditions with DLL enabled or normal operation.
Density
The JEDEC® standard for DDR4 SDRAM defines densities ranging from 2–16Gb; howev-
er, the industry started production for DDR4 at 4Gb density parts. These higher-density
devices enable system designers to take advantage of more available memory with the
same number of placements, which can help to increase the bandwidth or supported
feature set of a system. It can also enable designers to maintain the same density with
fewer placements, which helps to reduce costs.
Prefetch
As shown in Table 1, prefetch (burst length) doubled from one DRAM family to the next.
With DDR4, however, burst length remains the same as DDR3 (8). (Doubling the burst
length to 16 would result in a x16 device transferring 32 bytes of data on each access,
which is good for transferring large chunks of data but inefficient for transferring small-
er chunks of data.)
Like DDR3, DDR4 offers a burst chop 4 mode (BC4), which is a psuedo-burst length of
four. Write-to-read or read-to-write transitions get a small timing advantage from using
BC4 compared to data masking on the last four bits of a burst length of 8
(BL = 8) access; however, other access patterns do not gain any timing advantage from
this mode.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 2 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Frequency
The JEDEC DDR4 standard defines clock rates up to 1600 MHz, with data rates up to
3200 Mb/s. Higher clock frequencies translate into the possibility of higher peak band-
width. However, unless the timing constraints decrease at the same percentage as the
clock rate increases, the system may not be able to take advantage of all possible band-
widths. See DRAM Timing Constraints for more information
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 3 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Data Data
Compare
CRC
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 4 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Command/address Command/address
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 5 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Read Write
If more than four bits of a byte lane are LOW: If DBI_n input is LOW, write data is inverted
– Invert output data – Invert data internally before storage
– Drive DBI_n pin LOW
If four or less bits of a byte lane are LOW: If DBI_n input is HIGH, write data is not inverted
– Do not invert output data
– Drive DBI_n pin HIGH
No DBI
Controller Data Bus Memory
DQ0 0 1 0 0 1 1 0 1 0 1 0 0
DQ1 1 1 0 0 0 1 0 1 1 1 0 0
DQ2 0 0 0 0 1 0 0 1 0 0 0 0
DQ3 0 1 1 0 1 1 1 1 0 1 1 0
DQ4 0 1 0 0 1 1 0 1 0 1 0 0
Minimum zeros DBI
DQ5 1 0 1 0 0 0 1 1 1 0 1 0
DQ6 1 1 1 0 0 1 1 1 1 1 1 0
DQ7 0 0 1 0 1 0 1 1 0 0 1 0
DBI_n 0 1 1 0
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 6 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Local I/O gating Local I/O gating Local I/O gating Local I/O gating
Data I/O
Data I/O
Bank accesses to a different bank group require less time delay between accesses than
bank accesses within the same bank group. Bank accesses to different bank group can
use the short timing specification between commands, while bank accesses within the
same bank group must use the long timing specifications.
Different timing requirements are supported for accesses within the same bank group
and those between different bank groups:
• Long timings (tCCD_L, tRRD_L, and tWTR_L): bank accesses within the same bank
group
• Short timings (tCCD_S, tRRD_S, tWTR_S ): bank accesses between different bank
groups
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 7 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Long timings
Short timings
Bank 0 Bank 1
The tables below summarize the differences between DDR3 and DDR4 short and long
bank-to-bank access timings tCCD, tRRD, and tWTR for DDR4-1600 through
DDR4-2400. Refer to the DDR4 data sheet for timings above DDR4-2400. It is recom-
mended the memory system utilize a tCCD_L of 5.8ns; system performance impact is
likely to be negligible, if any. Accommodating a tCCD_L of 5.8ns enables the system to
be backward-compatible as well as facilitate future DRAM timing adjustments.
To maximize system performance, it is important that bank-to-bank accesses are to dif-
ferent bank groups. If bank accessing is not controlled properly, it is possible to get less
performance with a DDR4-based system versus a DDR3-based system.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 8 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Manufacturing Features
DDR4 has three features that help with manufacturing: Post package repair, multi-
plexed address pins and connectivity test mode.
Post Package Repair (PPR): The Micron DDR4 SDRAM has one additional row available
for repair per bank (16 per x4/x8, eight per x16) even though JEDEC only requires one
additional row be available for repair per bank group (four per x4/x8, two per x16). PPR
enables the end user to replace one suspect row in each bank with one good spare row.
Multiplexed Command Pins: To support higher density devices without adding addi-
tional address pins, DDR4 defined a method to multiplex addresses on the command
pins (RAS, CAS, and WE). The state of the newly-defined command pin (ACT_n) deter-
mines how the pins are used during an ACTIVATE command. High-level multiplexed
command/address pin functions include:
• ACT_n along with CS_n LOW = the input pins RAS_n/A16, CAS_n/A15, and WE_n/A14
used as address pins A16, A15, and A14, respectfully.
• ACT_n HIGH along with CS_n LOW = the input pins RAS_n/A16, CAS_n/A15, and
WE_n/A14 used as command pins RAS_n, CAS_n, and WE_n, respectfully for READ,
WRITE and other commands defined in the command truth table.
Connectivity Test Mode: Connectivity test (CT) mode is similar to boundary scan test-
ing, but is designed to significantly speed up testing of the electrical continuity of pin
interconnections between the DDR4 device and the memory controller on a printed cir-
cuit board.
Designed to work seamlessly with any boundary scan device, CT mode is supported on
all x4, x8, and x16 Micron DDR4 devices. JEDEC specifies CT mode for x4 and x8 devices
and as an optional feature on 8Gb and above devices.
Contrary to other conventional shift register-based boundary scan testing, where test
patterns are shifted in and out of the memory devices serially during each clock, the
DDR4 CT mode allows test patterns to be entered on the test input pins in parallel and
the test results to be extracted from the test output pins of the device in parallel. This
significantly increases the speed of the connectivity check.
When placed in CT mode, the device appears as an asynchronous device to the external
controlling agent. After the input test pattern is applied, the connectivity test results are
available for extraction in parallel at the test output pins after a fixed propagation delay
time
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 9 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Overview
Logic Equations
Test input and output pins are related to the following equations, where INV denotes a
logical inversion operation and XOR a logical exclusive OR operation.
MT0 = XOR (A1, A6, PAR)
MT1 = XOR (A8, ALERT_n, A9)
MT2 = XOR (A2, A5, A13)
MT3 = XOR (A0, A7, A11)
MT4 = XOR (CK_c, ODT, CAS_n/A15)
MT5 = XOR (CKE, RAS_n,/A16, A10/AP)
MT6 = XOR (ACT_n, A4, BA1)
MT7 = x16: XOR (DMU_n / DBIU_n , DML_n / DBIL_n, CK_t)
........ = x8: XOR (BG1, DML_n / DBIL_n, CK_t)
....... = x4: XOR (BG1, CK_t)
MT8 = XOR (WE_n / A14, A12 / BC, BA0)
MT9 = XOR (BG0, A3, RESET_n, TEN)
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 10 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Key Changes
VPP Supply
The V PP supply was added, which is a 2.5V supply that powers the internal word line.
Adding the V PP supply facilitated the V DD transition from 1.5V to 1.2V as well as provi-
ded additional power savings, approximately 10%. Although JEDEC does not state IDD
and IPP current limits, initial DDR4 parts have demonstrated IPP current usage in the
ranges of a) 2mA to 3mA when in standby mode, b) 3mA to 4mA when in the active
mode, and c) 10mA to 20mA during refresh mode. It is worth keeping in mind these IPP
values are average currents and actual current draw will be narrow pulses in nature, in
the range of 20mA to 60mA. Failure to provide sufficient power to V PP will prevent the
DRAM from operating correctly.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 11 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Key Changes
VREFDQ Calibration
The V REFDQ reference input supply was removed from the package interface and V REFDQ
is now internally generated by the DRAM. This means the V REFDQ can be set to any value
over a wide range; there is no specific value defined. This means the DRAM controller
must set the DRAM’s V REFDQ settings to the proper value; thus, the need for V REFDQ cali-
bration.
JEDEC does not provide a specific routine on how to perform V REFDQ calibration; how-
ever, JEDEC states allowed commands and how to enter and exit the mode. Each system
will need to determine the routine to implement that provides it the best performance.
Although not to be construed as a detailed explanation of V REFDQ calibration process
and the most optimum methodology to employ when implementing V REFDQ calibra-
tion, a general overview of how to look at the process is provided as a preview to a de-
tailed studying of the DDR4 device specifications.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 12 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Key Changes
VREFDQ Calibration Settings: The V REFDQ can be set to either range 1 (between 60% and
92.5% of V DDQ) or range 2 (between 40% and 77.5% of V DDQ). Range 1 was defined with
the intent of providing the choice range for module-based systems, while range 2 was
defined with the intent of providing the choice range for point-to-point-based systems.
Once the range is set, the internal V REF can be adjusted in 0.65% V DDQ ticks. Although
there are specifications on tolerance of range settings, in reality these are of minimal in-
terest when performing V REFDQ calibration, as a specific value is not what is sought but
rather the setting that provides the most optimum performance. Additionally, when us-
ing per DRAM addressability each DRAM may have a unique setting for its internal
VREFDQ.
VREFDQ Calibration Script: The following script is a reasonable platform to develop a
VREFDQ calibration routine around:
• Entering V REFDQ calibration
• If range 1 then MR6 [7:6] 10* MR6 [5:0] XXXXXXX
• If range 2 then MR6 [7:6] 11* MR6 [5:0] XXXXXXX
– Legal commands while in V REFDQ calibration mode: ACT, WR, WRA, RD, RDA, PRE,
DES, and MRS ** to set V REFDQ values and exit V REFDQ calibration mode
– Subsequent V REFDQ cal MR commands are MR6 [7:6] 10/1* MR6 [5:0] VVVVVV
• To exit V REFDQ calibration, the last two V REFDQ calibration MR commands are:
– MR6 [7:6] 10/1* MR6 [5:0] VVVVVV’ note VVVVV’ = desired value for V REFDQ
– MR6 [7:6] 00/1* MR6 [5:0] VVVVVV’ note exit V REFDQ DRAM must be in idle state
when exiting
*Range may only be set/changed when entering V REFDQ calibration mode; changing
range while in or exiting V REFDQ calibration mode is illegal.
VREFDQ Calibration Requirements: The goal is to find the best V REFDQ setting that sets
the internal V REFDQ level to be the same as the DRAM’s V CENT_DQ(pin mid) level. Essential-
ly, this requires the calibration process to determine what setting provides the largest
optimal level for a DQ and lowest optimal level for a DQ for a given DRAM and use the
setting half-way in between, as shown below.
VCENTDQx VCENTDQz
VCENTDQ,midpoint
VCENTDQy
VREF variation
(component)
VREFDQ Calibration Discussion: The following example is not to construe that there is a
possible relaxation of the requirement that V REFDQ calibration must be performed on
each DRAM; rather, to show how much error can be induced if V REFDQ calibration is not
performed for each DRAM individually.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 13 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Key Changes
The first step is to determine the theoretical ideal V CENT_DQ. This is based on the
DRAM’s ODT termination value used and the DRAM controller’s driver impedance.
Let's assume V DDQ = 1.2V, the controller’s RON = 34W, and the DRAM’s ODT = 60W. This
would make a LOW at 434mV and thereby want the internal V REF set half way, which is
434mV+(1.2V - 434mV)/2 or 816mV, and is achieved setting the V REFDQ setting at 0.68
VDDQ, as shown below.
VDDQ = 1.2V
RON = 34Ω ODT
ODT = 64Ω
Initial MR6 setting = 0.68 VDDQ
= 816mV RXer
Vx
RON VREFDQ
(internal)
At this point, if the V REFDQ register is set to 0.68 × V DDQ, then the V REF internal input is
set to 816mV; however, V CENT_DQ(pin mid) is left undefined. That is, without full calibra-
tion, V CENT_DQ(pin mid) is not the same as the programmed value for V REFDQ. Although
undefined in the JEDEC specifications (since the condition is not allowed), setting the
VREFDQ setting at its theoretical ideal setting alone will only have the V REFDQ program-
med value within about ±7.5% of the correct V CENT_DQ(pin mid) setting.
If subsequent reads and writes are performed to a rank of DRAMs at the same time
when determining the largest and smallest V CENT_DQ values, the final V REFDQ program-
med value will be within about ±4.0% of the correct V CENT_DQ(pin mid) setting. However, if
subsequent reads and writes are performed to a specific DRAM when determining the
largest and smallest V CENT_DQ values, the final V REFDQ programmed value will then be
the correct V CENT_DQ(pin mid) setting.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 14 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Key Changes
1100
1000
900
±7.5% ±4%
mV 800 error error
700
600
500
400
60Ω 60Ω 60Ω
ODT setting ODT setting ODT setting
ACT_n Control
To help alleviate the demand for allocating pins after adding so many new features,
DDR4 has for the first time multiplexed some of its address pins. The ACT_n determines
whether RAS_n/A16, CAS_n/A15, and WE_n/A14 are to be treated as control pins or as
address pins. As the nomenclature might suggest, ACT_n is an Active control when reg-
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 15 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Command Bus and Address Bus Options
istered LOW; Activates are for latching the row address, which means when ACT_n is
LOW, the three inputs RAS_n/A16, CAS_n/A15, and WE_n/A14 are treated as A16, A15,
and A14, respectively. Conversely, when ACT_n is HIGH, the three inputs RAS_n/A16,
CAS_n/A15, and WE_n/A14 are treated as RAS_n, CAS_n, and WE_n, respectively.
For more details about command and address bus, see the DDR3 Point-to-Point Design
Support technical note (TN 41-13) available on micron.com.
Decoupling
Micron DRAM has on-die capacitance for the core as well as the I/O. It is not necessary
to allocate a capacitor for every pin pair (VDD:VSS, V DDQ:VSSQ); however, basic decou-
pling is imperative.
Decoupling prevents the voltage supply from dropping when the DRAM core requires
current, as with a refresh, read, or write. It also provides current during reads for the
output drivers. The core requirements tend to be lower frequency. The output drivers
tend to have higher frequency demands. This means that the DRAM core requires the
decoupling to have larger values, and the output drivers want low inductance in the de-
coupling path but not a significant amount of capacitance.
One recommendation is to place enough capacitance around the DRAM device to sup-
ply the core and to place capacitance near the output drivers for the I/O. This is accom-
plished by placing four capacitors around the device on each corner of the package.
Place one of the capacitors centered in each quarter of the ball grid, or as close as possi-
ble (see Decoupling Placement Recommendations Figure 12). Place these capacitors as
close to the device as practical with the vias located to the device side of the capacitor.
For these applications, the capacitors placed on both sides of the card in the I/O area
may be optimized for specific purposes. The larger value primarily supports the DRAM
core, and a smaller value with lower inductance primarily supports I/O. The smaller val-
ue should be sized to provide maximum benefit near the maximum data frequency.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 16 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Layout and Design Considerations
Pin Description
VDD 25uF of capacitance can be provided for each DRAM device placement. Small-value capacitors with more place-
ments are preferred because they can be placed physically closer to the DRAM device, therefore, decoupling
more of the routing. Additionally, smaller capacitors contain lower ESL/inductance and do not counteract the de-
sired high-pass filter as with some larger capacitors. Capacitors can be shared between device placements, mean-
ing that the capacitors between the devices can be counted as total decoupling for the device on either side of
the capacitor. These guidelines can apply to SDP, DDP, and 3DS DRAM packages.
VPP 3uF of capacitance can be provided for each DRAM device placement. Small 1.0uF capacitors placed near the VPP
pins of the device may be sufficient to satisfy high-frequency current requirements.
VTT A minimum of one 1.0uF capacitor must be used for every two termination resistors on the CA bus.
VREFCA One 0.1uF capacitor per DRAM device may be connected between VREFCA and ground or VDD depending on
CMD/ADR/CTRL/CK reference. VREFCA is referenced to VDD on DRAM modules designed to JEDEC specifications.
VREFCA does not consume power, so these capacitors provide AC decoupling rather than bulk decoupling.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 17 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Layout and Design Considerations
noise off of the I/O drivers. It is good practice, but not an absolute requirement, to use
separate vias for V SS and V SSQ as well as for V DD and V DDQ.
There is a compromise position. Where a via connects to a V SS ball on one side of the
card and a V SSQ ball on the other side of the card, the actual path being shared is mini-
mized.
The path from the planes to the DRAM balls is important. Providing good, low induc-
tance paths provides the best margin. Therefore, separate vias where possible and pro-
vide as wide of a trace from the via to the DRAM ball as the design permits.
Where there is concern and sufficient room, multiple vias are a possibility. This is gener-
ally applied at the decoupling cap to make a low impedance connection to the planes.
Return Path
If anything is overlooked, it will be the current return path. This is most important for
terminated signals (parallel termination) since the current flowing through the termina-
tion and back to the source involves higher currents. No board-level (2D) simulators
take this into account. They assume perfect return paths. Most simulators interpret that
an adjacent layer described as a plane is the perfect return path whether it is related to
the signal or not. Some board simulators take into account plane boundaries and gaps
in the plane to a degree. A 3D simulator is required to take into account the correct re-
turn path. These are generally not appropriate for most applications.
Most of the issues with the return path are discovered with visual inspection. The cur-
rent return path is the path of least resistance. This may vary with frequency, so resist-
ance alone may be a good indicator.
Address
For the address, the design will likely use a tree topology with branching. Making the
branches uneven causes some signal integrity issues. For this reason, make all related
branches match to within 1mm within each net. Different nets may have different
branch lengths as long as they are matched within a branch. This is somewhat arbitrary,
but there are many cases to consider, and 1mm should be adequate for all cases. There
may be some exceptions.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 18 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Layout and Design Considerations
Data Bus
For DQ, the topology is point-to-point or point-to-two-points where the two points are
close together. For the data bus, the bit rate is the period of interest; that is, 625ps for an
800 MHz clock. Because 1% of this interval is 6.25ps, if the matching is held to a range of
1% (±0.5%), then ±0.5mm is the limit. Again, this is arbitrary.
Other factors to account for are vias, differences in propagation time for routing on in-
ner layers versus outer layers, and load differences.
Propagation Delay
Propagation delay for inner layers and outer layers is different because the effective die-
lectric constant is different. The dielectric constant for the inner layer is defined by the
glass and resin of the PCB. Outer layers have a mix of materials with different dielectric
constants. Generally, the materials are the glass and resin of the PCB, the solder mask
that is on the surface, and the air that is above the solder mask. This defines the effec-
tive dielectric for the outer layers and usually amounts to a 10% decrease in propaga-
tion delay for traces on the outer layers. For the design of JEDEC UDIMMs, a 10% differ-
ence accounts for the differences in propagation of the inner layers versus the outer lay-
ers. If all traces that need to match are routed with the same percentage on the outer
layers versus the inner layers, this difference may be ignored for the purpose of match-
ing timing. Otherwise, this difference should be accounted for in any delay or matching
calculations.
For inner layer propagation, velocity is about 6.5 ps/mm. To match all traces within
10ps, traces must be held within a range of 1.5mm, 60 mils. In most cases, this can be
easily achieved. Most designs tolerate a much greater variation and still have significant
margin. The engineer must decide how much of the timing budget is allocated to trace
matching.
Vias
In most cases, the number of vias in matched lines should be the same. If this is not the
case, the degree of mismatch should be held to a minimum. Vias represent additional
length in the Z direction. The actual length of a via depends on the starting and ending
layers of the current flow. Because all vias are not the same, one value of delay for all
vias is not possible. Inductance and capacitance cause additional delay beyond the de-
lay associated with the length of the via. The inductance and capacitance vary depend-
ing on the starting and ending layers. This is either complex or labor-intensive and is
the reason for trying to match the number of vias across all matched lines. Vias can be
ignored if they are all the same. A maximum value for delay through a via to consider is
20ps. This number includes a delay based on the Z axis and time allocated to the LC de-
lay. Use a more refined number if available; this generally requires a 3D solver.
Timing Budget
Suggested practice is to look at the design from a timing budget standpoint to provide
flexibility in the routing portion of the design, if there is suitable margin. This starts with
simulation. By referencing the eye diagrams in this document, a setup and hold time
can be established. From here, the parameters not included in the simulation must be
added.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 19 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Layout and Design Considerations
Typical routing for DDR4 components requires two internal signal layers, two surface
signal layers, and four other layers ( 2 V DD and 2 V SS) as solid reference planes.
DDR4 memories have V DD and V DDQ pins, which are both typically tied to the PCB V DD
plane. Likewise, component V SS and V SSQ pins are tied to the PCB V SS plane. Each plane
provides a low-impedance path to the memory devices to deliver V SSQ. Sharing a single
plane for both power and ground does not provide strong signal referencing. With care-
ful design, it is possible for a split-plane design to work adequately:
• Designs should continuously reference data bus signals to V SS.
• CA bus and clock may reference either V DD or V SS and should be continuous.
• Signals should never reference V PP.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 20 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
DDR4 Layout and Design Considerations
Signal Optimization
• If the PCB is designed with multiple power planes on the same layer of the PCB, avoid
routing traces on adjacent layers across the splits on the voltage plane.
• Source DRAM power from a separate power supply rather than sharing power rails
with other sub-systems of the design. This will limit the number of outputs on a sup-
ply and reduce the potential for ground bounce and other signal integrity issues
caused by simultaneously switching outputs (SSO).
• Add low-pass V REFCA filtering on the controller to improve noise margin.
• Minimize V REF noise using spacing techniques like those recommended for signals
implementing V REFCA. Maintain a single reference (either ground or V DD) between the
decoupling capacitor and the DRAM V REFCA pin. Do not reference some V REFCA pins
to V DD and others to ground. JEDEC Raw Card designs decouple to V DD.
• Minimize inter-symbol interference (ISI or unwanted signal distortion) by matching
driver impedance with trace impedance.
• Minimize crosstalk by isolating sensitive bits, such as strobes, by maintaining the
same reference plane along the signal path for effective current return. Avoid discon-
tinuous or broken reference planes. Provide adequate spacing adjacent to the sensi-
tive signal paths.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 21 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Simulations
Simulations
For a new or revised design, Micron strongly recommends simulating I/O performance
at regular intervals (pre- and post- layout for example). Optimizing an interface through
simulation can help decrease noise and increase timing margins before building proto-
types. Issues are often resolved more easily when found in simulation, as opposed to
those found later that require expensive and time-consuming board redesigns or facto-
ry recalls.
Micron has created many types of simulation models to match the different tools in use.
Component simulation models currently on micron.com include IBIS, Verilog, and
Hspice. Verifying all simulated conditions is impractical, but there are a few key areas to
focus on: DC levels, signal slew rates, undershoot, overshoot, ringing, and waveform
shape.
Also, it is extremely important to verify that the design has sufficient signal-eye open-
ings to meet both timing and AC input voltage levels. For additional general informa-
tion on the simulation process see the DDR4 SDRAM Point-to-Point Simulation Process
technical note (TN 46-11) available on micron.com.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 22 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Simulations
Typical Configuration
Figure 13: Typical 2GB x 4 Configuration
DDR4 DDR4
4Gb x 8 4Gb x 8
SoC
DDR4 DDR4
4Gb x 8 4Gb x 8
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 23 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Simulations
Figure 14: Data Bus – ~4 DQ Channels of x8 per Component (1 Rank [CS] per Channel)
SoC DDR4 SDP
PCB Stackup
Signal (microstrips) 1
0V plane 2
Power plane 3
Power plane 6
0V plane
7
Signal (microstrips) 8
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 24 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Eye Diagrams With DRAM RON = 48Ω, Controller ODT = 120Ω
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 25 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Eye Diagrams With DRAM RON = 48Ω, Controller ODT = 120Ω
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 26 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Eye Diagrams With DRAM RON = 48Ω, Controller ODT = 120Ω
Table 11: Recommendations- DRAM Driver Impedance and Controller ODT Settings
Notes: 1. Passing criteria: Aperture DC >= 70%; Voltage margin >= 100mV; Overshoot <= 200mV.
2. Based on simulation optimum signal integrity is achieved with controller ODT of 34Ω,
40Ω, 48Ω, 60Ω, or 80Ω.
3. Controller ODT of 120Ω, 240Ω, or Off yields acceptable signal integrity with recommen-
ded drive strength; therefore, these controllers are recommended in case the weaker
ODT is beneficial, such as in the need to minimize power consumption.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 27 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
4-Layer Design Recommendations
Signal (microstrips) 1
OV plane 2
Power plane 3
Signal (microstrips) 4
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 28 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Pin Connection Guidance
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 29 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Pin Connection Guidance
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 30 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Pin Connection Guidance
Note: 1. Series resistors on DQ and DQS are meant to dampen reflections due to channel stubs.
• If a single DRAM device is on a DQ, no series resistor is required.
• If two DRAM devices are mounted in alignment with balls facing each other on oppo-
site sides of a PCB, the via is adjacent to the DQ pin and the mirrored DQ pin of the
secondary side. A series resistor may not be required.
• If two devices are adjacent on the same side of a PCB, the DQ should be a T topology
where the length from "T" to the via at the DRAM pin is matched to each side. A ser-
ies resistor may not be required because the stub should be relatively short.
– If the stubs from the split are long or of different length, simulations must be per-
formed to quantify data eyes at the controller and DRAM device in order to deter-
mine the necessity of termination and the values of the resistors.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 31 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
JEDEC DDP – Single Rank x16
Figure 23: Device Performance – Two ×8s in a Board Space of One ×16
Byte 1
(×× Meg ×8, ×16 Banks)
Byte 0
(×× Meg ×8, ×16 Banks)
CS_n CK_t
UDM_n/ UZQ RAS_n/A16 BG[1:0] CK_c LZQ LDM_n/
UDBI_n CAS_n/A15 BA[1:0] CKE LDBI_n
WE_n/A14 A[13:0] ODT
UDQ[7:0] ACT_n TEN LDQ[7:0]
UDQS_t PAR RESET_n LDQS_t
UDQS_c VREFCA ALERT_n LDQS_c
DDP and SDP Symbols DDP and SDP Symbols DDP Symbols (x16) SDP Symbols (x16)
Pin 1 2 3 4 5 6 Pin 7 8 9 7 8 9
A VDDQ VSSQ UDQ0 – – – A UDQS_c VSSQ VDDQ UDQS_c VSSQ VDDQ
B VPP VSS VDD – – – B UDQS_t UDQ1 VDD UDQS_t DQ9 VDD
C VDDQ UDQ4 UDQ2 – – – C UDQ3 UDQ5 VSSQ DQ11 DQ13 VSSQ
D VDD VSSQ UDQ6 – – – D UDQ7 VSSQ VDDQ DQ15 VSSQ VDDQ
E VSS UDM_n/ VSSQ – – – E LDM_n/ VSSQ UZQ LDM_n/ VSSQ VSS
UDBI_n LDBI_n LDBI_n
F VSSQ VDDQ LDQS_c – – – F LDQ1 VDDQ LZQ DQ1 VDDQ ZQ
G VDDQ LDQ0 LDQS_t – – – G VDD VSS VDDQ VDD VSS VDDQ
H VSSQ LDQ4 LDQ2 – – – H LDQ3 LDQ5 VSSQ DQ3 DQ5 VSSQ
J VDDDLL VDDQ LDQ6 – – – J LDQ7 VDDQ VDD DQ7 VDDQ VDD
K VSS CKE ODT – – – K CK_t CK_c VSS CK_t CK_c VSS
L VDD WE_n/ ACT_n – – – L CS_n RAS_n/ VDD CS_n RAS_n/ VDD
A14 A16 A16
M VREFCA BG0 A10/AP – – – M A12/ CAS_n/ BG1 A12/ CAS_n/ VSS
BC_n A15 BC_n A15
N VSS BA0 A4 – – – N A3 BA1 TEN A3 BA1 TEN
P RESET_n A6 A0 – – – P A1 A5 ALERT_n A1 A5 ALERT_n
R VDD A8 A2 – – – R A9 A7 VPP A9 A7 VPP
T VSS A11 PAR – – – T VSS A13 VDD NC A13 VDD
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 32 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
JEDEC DDP – Single Rank x16
Figure 24: Optimum Layout – DDP ×16 and SDP ×16 Compatibility
Controller
Optimum
BG1
E9 L1 Re9 L1
SDP x16 DDP x16 SDP x16 DDP x16
E9 VSS UZQ Re9 Re9 0 480
M9 VSS BG1 L3 Rm9 open 0
M9 Rm9b 0 open
Rm9
L2 0 resistors should be low ESL
BG1 should be approx 5ps shorter
L1 Rm9b L1
L1 < 0.1mm
L2 < 0.25mm
Rm9b L3 < 2mm
Note: 1. Mitigates VSS offset; Parallel resistors when connecting to VSS reduces inductance.
Figure 25: Alternate One Layout – DDP ×16 and SDP ×16 Compatibility
Controller
Alternate 1
BG1
E9
SDP x16 DDP x16 Re9 SDP x16 DDP x16
E9 VSS UZQ Re9 0 240
M9 VSS BG1 L3 Rm9 open 0
M9 Rm9b 0 open
Rm9
L2 0 resistors should be low ESL
BG1 should be approx 5ps shorter
L1 Rm9b L1
L1 < 0.1mm
L2 < 0.25mm
Rm9b L3 < 2mm
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 33 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.
TN-40-40: DDR4 Point-to-Point Design Guide
Schematic Checklist
Schematic Checklist
The following checklist outlines the basic things to verify and consider when complet-
ing a schematic review:
1. Ensure that the ZQ pin is connected to a 240Ω ±1% resistor.
2. Verify that the differential clock signals are terminated. Simulations should be
used to determine the method and exact component values. See Table 12 for more
information.
3. Check the remaining pin connections between the controller and the DRAM de-
vice following the guidance provided in Table 12.
4. Ensure adequate decoupling methodology has been implemented. Refer to Table
9.
5. RESET_n requires a pull-down circuit. Ensure the pull-down circuit is adequate
for the number of loads.
6. If TEN is not used, ensure it is connected directly to ground. If TEN is used, it re-
quires a pull-down circuit; ensure the pull-down circuit is adequate for the num-
ber of loads.
7. Micron highly recommends that V REFCA tracks at V DD/2 by using a voltage divider
on V DD rather than a fixed 0.6V V REFCA supply.
8. Determine the maximum clock speed of the memory bus. Timing margins de-
crease as frequency increases. Ensure adequate margins are designed for through
proper routing and termination.
9. If the following features are being used, ensure the mode registers are properly
configured:
a. Cyclic redundancy cycle (CRC) for the data bus
b. Parity checking of command/address bus
c. Data bus inversion
10. Carefully consider the host's workload, use cases, and environment. A controller
that can strategically pull in and postpone REFRESH commands and/or utilize
temperature-controlled refresh mode can increase the efficiency of the data bus,
which improves throughput.
11. Consider using post package repair, which can be useful in increasing the reliabili-
ty and longevity of systems with soldered-down DRAM devices because they can-
not be replaced like a DRAM module can.
CCMTD-1725822587-10240
tn4040_ddr4_point_to_point_design_guide.pdf - Rev. H 08/2020 EN 34 Micron Technology, Inc. reserves the right to change products or specifications without notice.
© 2020 Micron Technology, Inc. All rights reserved.