An520 DDR3 SDRAM Memory Interface Termination and Layout Guidelines
An520 DDR3 SDRAM Memory Interface Termination and Layout Guidelines
An520 DDR3 SDRAM Memory Interface Termination and Layout Guidelines
Comparing The following sections review the differences between DDR2 and DDR3
SDRAM and the changes in the features that were made to DDR3
DDR3 and DDR2 SDRAM. Understanding these differences will make the design process
for your DDR3 SDRAM memory interface easier.
Altera Corporation 1
AN-520-1.0
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 1. DDR3 DIMM Fly-By Topology Requiring Write Leveling Note (1)
Command, Address, Clock in
“Flyby” topology in DDR3 DIMM
VTT
Data Skew Calibrated Out at Power Up with Write Leveling Data Skew
Note to Figure 1:
(1) Source: Consumer Electronics are Changing the Face of DRAMs, By Jody Defazio, Chip Design Magazine, June 29, 2007.
The flight-time skew due to the flyby topology, led the JEDEC committee
to introduce the Write Leveling feature on the DDR3 SDRAM memories,
thus enabling controllers to compensate for this skew by adjusting the
timing per byte lane.
2 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
During the read operation, the memory controller must compensate for
the delays introduced by the flyby memory topology. In Stratix® III/IV
FPGAs, there are alignment and synchronization registers built in the
Input Output Element (IOE) to properly capture the data. Figure 2 shows
two DQS groups returning from the DIMM for the same read command.
f For information about the IOE block in Stratix III devices, refer to the
External Memory Interfaces in Stratix III Devices chapter in volume 1 of the
Stratix III Device Handbook.
For information about the IOE block in Stratix IV devices, refer to the
External Memory Interfaces in Stratix IV Devices chapter in volume 1 of the
Stratix IV Device Handbook.
Altera Corporation 3
4
FPGA Fabric
Half Data Rate Registers
Alignment & Synchronization Registers
Double Data Rate Input Registers 0 To Core (rdata0)
D Q 1
D Q D Q D Q
D Q DFF
DFF DFF DFF D Q
DQ
Input Reg A I To Core
DFF (rdata1) dataoutbypass
DFF
D Q D Q
neg_reg_out
D Q D Q
DFF
DFF
DFF
DFF
Differential
Input Input Reg B Input Reg C
DQS I I 0 To Core (rdata2)
Buffer
D Q 1
DQSn D Q D Q
0 DFF
CQn
1 D Q
DFF DFF
D Q To Core
(rdata3)
DFF
D Q D Q
DFF
Resynchronization
Clock DFF
DFF
(resync_clk_2x)
Altera Corporation
D Q DFF
DFF DFF DFF D Q
DQ
Input Reg A I To Core
DFF (rdata1) dataoutbypass
DFF
D Q D Q
neg_reg_out
D Q D Q
DFF
DFF
DFF
DFF
Differential
Input Input Reg B Input Reg C
DQS I I 0 To Core (rdata2)
Buffer
D Q 1
DQSn D Q D Q
0 DFF
CQn
1 D Q
DFF DFF
D Q To Core
(rdata3)
DFF
D Q D Q
DFF
Resynchronization
Clock DFF
DFF
(resync_clk_2x)
Altera Corporation 5
Dynamic ODT
6
Figure 3. Dynamic ODT: Behavior with ODT Asserted Before and After the Write Note (1)
Altera Corporation
Note to Figure 3:
(1) Source: TN-41-04 DDR3 Dynamic On-Die Termination, Micron.
In the two-DIMM DDR3 SDRAM configuration, the Dynamic ODT feature helps reduce the jitter at the
module being accessed, and minimizes reflections from any secondary modules.
f For more information about using the Dynamic ODT on DDR3 SDRAM, refer to the application note by
Micron, TN-41-04 DDR3 Dynamic On-Die Termination.
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Dynamic OCT in Stratix III/IV devices support on-off dynamic series and parallel
termination for a bi-directional I/O in all I/O banks. Dynamic OCT is a
Stratix III/IV new feature in Stratix III/IV FPGA devices. Dynamic parallel termination
FPGA Devices is enabled only when the bi-directional I/O acts as a receiver and is
disabled when it acts as a driver. Similarly, dynamic series termination is
enabled only when the bi-directional I/O acts as a driver and is disabled
when it acts as a receiver.
Driver Driver
100 W
R S = 15 Ω
50 Ω
3" Trace Length
VREF = 0.75 V VREF = 0.75 V
100 W Receiver
Receiver
Driver Driver
100 Ω
R S = 15 Ω
50 Ω
3" Trace Length
VREF = 0.75 V VREF = 0.75 V
100 Ω Receiver
Receiver
Altera Corporation 7
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Termination for The following sections describe the correct way to terminate a DDR3
SDRAM memory interface together with Altera® Stratix III/IV FPGA
Single DDR3 devices.
SDRAM DIMM
DDR3 SDRAM DIMM
The most common implementation of the DDR3 SDRAM memory
interface is the unbuffered DIMM. Unbuffered DDR3 SDRAM DIMMs
can be found in many applications, especially in personal computer (PC)
applications. A DDR3 SDRAM unbuffered DIMM memory interface can
be implemented in several permutations, such as single DIMM or
multiple DIMMs, using either single-ranked or dual-ranked unbuffered
DIMMs. In addition to the unbuffered DIMMs form factor, these
termination recommendations are also valid for small-outline (SO)
DIMMs and MicroDIMMs.
8 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Table 1. DDR3 SDRAM ODT Matrix for Writes Notes (1), (2), (3)
Notes to Table 1:
(1) SR – Single-ranked DIMM.
(2) DR – Dual-ranked DIMM.
(3) These recommendations are taken from the DDR3 ODT and Dynamic ODT session of the JEDEC DDR3 2007
Conference, Oct 3-4, San Jose, CA.
(4) The controller in this case is the FPGA.
(5) Dynamic ODT is required. For example, the ODT of Slot 2 is set to the lower ODT value of 40 Ω when the memory
controller is writing to Slot 1, resulting in termination and thus minimizing any reflection from Slot 2. Without
Dynamic ODT, Slot 2 will not be terminated.
Altera Corporation 9
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Table 2. DDR3 SDRAM ODT Matrix for Reads Notes (1), (2), (3)
Notes to Table 2:
(1) SR – Single-ranked DIMM.
(2) DR – Dual-ranked DIMM.
(3) These recommendations are taken from the DDR3 ODT and Dynamic ODT session of the JEDEC DDR3 2007
Conference, Oct 3-4, San Jose, CA.
(4) The controller in this case is the FPGA. The recommendation of 60 Ω is based on the typical motherboard trace
impedance of 60 Ω. Altera recommends using a 50-Ω parallel OCT when reading from the memory.
10 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 5. DQ and DQS Net Structure for 64-Bit DDR3 SDRAM Unbuffered DIMM Note (1)
(2)
(2)
Notes to Figure 5:
(1) Source: PC3-6400/PC3-8500/PC3-10600/PC3-12800 DDR3 SDRAM Unbuffered DIMM Design Specification, July 2007,
JEDEC Solid State Technology Association.
(2) For clarity of the signal connections in the illustration, the same SDRAM is drawn as two separate SDRAMs.
Altera Corporation 11
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 6. Simulated Write-Eye Diagram of a DDR3 SDRAM DIMM Using a 120- Ω ODT Setting
12 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 7. Simulated Write-Eye Diagram of a DDR3 SDRAM DIMM Using a 60-Ω ODT Setting
Table 3 compares the effects of the ODT setting on the eye diagram at the
DDR3 SDRAM memory (receiver) when the Stratix III/IV FPGA is
writing to memory.
Altera Corporation 13
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Although both 120-Ω and 60-Ω ODT settings result in excellent signal
quality and acceptable eye opening, using 120 Ω results in a larger eye
height because of over-termination, yet it has a minimal effect on eye
width. Because the use of 60-Ω ODT results in less ringing, the 60-Ω ODT
setting is used on the remaining DDR3 SDRAM DIMM testing featured in
this document. The measured write-eye diagram using Altera’s
Stratix III/IV memory board is shown in Figure 8.
Figure 8. Measured Write-Eye Diagram of a DDR3 SDRAM DIMM Using the 60-Ω ODT Setting
The measured eye diagram correlates well with the simulation. The faint
line in the middle of the eye diagram is the effect of the refresh operation
during a regular operation. Because these simulations and measurements
are based on a narrow set of constraints, you must perform your own
board-level simulation to ensure that the chosen ODT setting is right for
your setup.
14 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 9. Clock Net Structure for a 64-Bit DDR3 SDRAM Unbuffered DIMM Note (1)
Note to Figure 9:
(1) Source: PC3-6400/PC3-8500/PC3-10600/PC3-12800 DDR3 SDRAM Unbuffered DIMM Design Specification, July 2007,
JEDEC Solid State Technology Association.
From Figure 9, you can see that the DDR3 SDRAM clocks are routed in a
fly-by topology, as mentioned in “Write and Read Leveling” on page 2,
resulting in the need for write-and-read leveling. Figure 10 shows the
HyperLynx simulation of the differential clock seen at the first and last
DDR3 SDRAM component on the unbuffered DIMM using the 50-Ω OCT
setting on the output driver of the Stratix III/IV FPGA.
Altera Corporation 15
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 10. Differential Memory Clock of a DDR3 SDRAM DIMM at the First and Last Component on the DIMM
Figure 10 shows that the memory clock seen at the first DDR3 SDRAM
component (the yellow signal) leads the memory clock seen at the last
DDR3 SDRAM component (the green signal) by 1.3 ns, which is about
0.69 tCK for a 533 MHz operation.
16 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 11. Command and Address Net Structure for a 64-Bit DDR3 SDRAM Unbuffered DIMM Note (1)
In Figure 11, you can see that the DDR3 SDRAM command and address
signals are routed in a fly-by topology, as mentioned in “Write and Read
Leveling” on page 2, resulting in the need for write-and-read leveling.
Figure 12. Command and Address Eye Diagram of a DDR3 SDRAM DIMM at the First and Last DDR3 SDRAM
Component at 533 MHz Note (1)
Altera Corporation 17
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 12 shows that the command and address signal seen at the first
DDR3 SDRAM component (the green signal) leads the command and
address signals seen at the last DDR3 SDRAM component (the red signal)
by 1.2 ns, which is 0.64 tCK for a 533-MHz operation.
18 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 13. DDR3 SDRAM Device Driving the Stratix III/IV FPGA Device with Parallel 50-Ω OCT Turned On
Figure 14 shows the simulation of a read from the DDR3 SDRAM DIMM
with a 50-Ω parallel OCT setting on the Stratix III/IV FPGA device.
Figure 14. Read-Eye Diagram of a DDR3 SDRAM DIMM at the Stratix III/IV FPGA Using a Parallel 50-Ω
OCT Setting
Use of the Stratix III/IV parallel 50-Ω OCT feature matches receiver
impedance with the transmission line characteristic impedance. This
eliminates any reflection that causes ringing, and results in a clean eye
diagram at the Stratix III/IV FPGA.
Altera Corporation 19
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Summary
This section discusses terminations used for implementing the DDR3
SDRAM memory interface using the single-ranked, single unbuffered
DIMM. Terminations for unidirectional signals, such as memory clocks
and addresses and commands, are placed on the DIMM, thus eliminating
the need to place terminations on the board. In addition, using the ODT
feature on the DDR3 SDRAM and the Dynamic OCT feature of
Stratix III/IV FPGA devices completely eliminates any external
termination resistors, thus simplifying the layout for the DDR3 SDRAM
memory interface when compared to that of the DDR2 SDRAM memory
interface.
Termination for In addition to using DDR3 SDRAM DIMM to implement your DDR3
SDRAM memory interface, you can also use DDR3 SDRAM devices.
DDR3 SDRAM Using these devices does not offer as much flexibility as using a DIMM
Devices because the devices are soldered onto the PCB and are not easily
changeable in the event of a memory failure. However, for applications
that have limited board real estate, using DDR3 SDRAM devices reduces
the need for a DIMM connector and places devices closer, resulting in
denser layouts.
20 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Altera Corporation 21
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
When you are using DDR3 SDRAM devices, there are no DIMM
connectors. This minimizes any impedance discontinuity, resulting in
better signal integrity. Figure 16 shows the simulated write-eye diagram
at the DQ0 of a DDR3 SDRAM device using the 120-Ω ODT setting, and
driven by a Stratix III/IV FPGA using a calibrated series 50-Ω OCT
setting.
Figure 16. Write-Eye Diagram of a DDR3 SDRAM Device Using a 120-Ω ODT Setting
22 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 17. Write-Eye Diagram of a DDR3 SDRAM Device Using a 60-Ω ODT Setting
Table 4 compares the effects of the series stub resistor on the eye diagram
at the DDR3 SDRAM memory (receiver) when the Stratix III/IV FPGA is
writing to memory.
Without the 15-Ω stub series resistor to dampen the signal arriving at the
receiver of the DDR3 SDRAM device, the signal at the receiver of that
device is larger than the signal at the receiver of a DIMM (Figure 6 and
Figure 7).
Altera Corporation 23
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 18. Differential Memory Clock of a DDR3 SDRAM Device without the Compensation Capacitor at the
First and Last Component Using a Flyby Topology on a Board
24 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 19. Differential Memory Clock of a DDR3 SDRAM DIMM Terminated with 100 Ω at the First and Last
Component Using a Flyby Topology on a Board
Altera Corporation 25
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 20. Command and Address Eye Diagram of a DDR3 SDRAM Device Using Flyby Topology on a Board
at the First and Last DDR3 SDRAM Component at 533 MHz, Terminated with 60 Ω
As with memory clocks, you must consider the trace length of the
command and address signals so that they match the flight-time skew of
the memory clocks.
26 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 21. DDR3 SDRAM Device Driving the Stratix III/IV FPGA Device with Parallel 50-Ω OCT Turned On
Altera Corporation 27
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Figure 22. Read-Eye Diagram of a DDR3 SDRAM Device at the Stratix III/IV FPGA Using a Parallel 50-Ω
OCT Setting
Table 5 compares the effects of the series stub resistor on the eye diagram
at the Stratix III/IV FPGA (receiver) when the Stratix III/IV FPGA is
reading from the memory.
Table 5. Read-Eye Diagram with and without RS Using 50-Ω Parallel OCT
Without the 15-Ω stub series resistor to dampen the signal, the signal at
the receiver of the Stratix III/IV FPGA driven by the DDR3 SDRAM
discrete device will be larger than the signal at the receiver of the
Stratix III/IV FPGA driven by DDR3 SDRAM DIMM (Figure 13), and
similar to the write-eye diagram in “DQS, DQ, and DM for DDR3
SDRAM Devices” on page 21.
28 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Summary
This section discusses terminations used to achieve optimum
performance for designing the DDR3 SDRAM memory interface using
discrete DDR3 SDRAM devices. Though you must include termination
for unidirectional signals, the overall layout for the DDR3 SDRAM
memory interface using discrete DDR3 SDRAM devices is easier
compared to DDR2 SDRAM memory interfaces using discrete DDR2
SDRAM devices, because of the fly-by daisy chain topology. To simplify
your design processes, utilize the DDR3 SDRAM unbuffered DIMM
specification provided by JEDEC as your guideline, because the trace
length and termination values used in the DIMM configuration provide
excellent signal quality.
Layout This section discusses general layout guidelines for designing your DDR3
SDRAM memory interface. These layout guidelines help you plan your
Considerations board layout, but are not meant as strict rules that must be adhered to.
Altera recommends that you perform your own board-level simulations
to ensure that the layout you choose for your board will allow you to
achieve your desired performance.
Altera Corporation 29
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Trace Impedance
The layout of single-ended signal traces are to be 50 Ω and the differential
signal traces are to be 100 Ω with a ± 10% tolerance. Remove unused via
pads as these cause unwanted capacitance.
Decoupling
To minimize inductance, use 0.1 µF in 0402 size or smaller capacitors.
Keep VTT voltage decoupling is close to the DDR3 SDRAM devices and
pull-up resistors. Connect decoupling capacitors between VTT and
ground using a 0.1 µF capacitor for every other VTT pin. For VDD and
VDDQ, use 0.1 µF and 0.01 µF capacitors for every VDD and VDDQ pin.
Power
Route the ground, 1.5 V, and 0.75 V as planes. Route VCCIO for memories
in a single-split plane with at least a 20-mil (0.508 mm) gap of separation.
Route VTT as islands or 250-mil (6.35 mm) power traces. Route oscillators
and PLL power as islands or 100-mil (2.54 mm) power traces.
30 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Altera Corporation 31
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Maintain all other signals to a spacing that is based on its parallelism with
other nets:
Termination
As shown in the previous sections, use the combination of DDR3 SDRAM
ODT and Stratix III/IV Dynamic OCT for DQS, DQS#, DQ, and DM. This
reduces the need for external termination, and thus reduces both BOM
cost and PCB size.
Conclusion By using the new features of DDR3 SDRAM memory and the
Stratix III/IV FPGA, you simplify your design process for DDR3
SDRAM. Using the fly-by daisy chain topology increases the complexity
of the datapath and controller design to achieve leveling, but also greatly
improves performance and eases board layout for DDR3 SDRAM. Finally,
by using the Stratix III/IV FPGA and Altera’s DDR3 SDRAM
ALTMEMPHY megafunction, you simplify the datapath design and take
advantage of higher DDR3 SDRAM performance and straightforward
board design.
32 Altera Corporation
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Documents ■ Consumer Electronics are Changing the Face of DRAMs, Jody Defazio,
Chip Design Magazine, June 29, 2007
■ DDR3 ODT and Dynamic ODT, JEDEC DDR3 2007 Conference,
Oct 3-4, San Jose, CA.
■ External Memory Interfaces in Stratix III Devices chapter in volume 1 of
the Stratix III Device Handbook
■ External Memory Interfaces in Stratix IV Devices chapter in volume 1 of
the Stratix IV Device Handbook
■ I/O Features in Stratix IV Devices chapter in volume 1 of the Stratix IV
Device Handbook
■ JEDEC Organization (www.JEDEC.org)
■ PC3-6400/PC3-8500/PC3-10600/PC3-12800 DDR3 SDRAM Unbuffered
DIMM Design Specification, July 2007, JEDEC Solid State Technology
Association
■ Stratix III Device I/O Features chapter in volume 1 of the Stratix III
Device Handbook
■ TN-41-02 DDR3 ZQ Calibration, Micron
■ TN-41-04 DDR3 Dynamic On-Die Termination, Micron
Altera Corporation 33
Application Note 520: DDR3 Memory Interface Termination and Layout Guidelines
Document Table 6 shows the revision history for this application note.
Revision History
Table 6. Document Revision History
Date and
Changes Made Summary of Changes
Document Version
June 2008, v1.0 Initial release. —
Copyright © 2008 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company,
the stylized Altera logo, specific device designations, and all other words and logos that are identified as
trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera
Corporation in the U.S. and other countries. All other product or service names are the property of their re-
spective holders. Altera products are protected under numerous U.S. and foreign patents and pending
101 Innovation Drive applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products
San Jose, CA 95134 to current specifications in accordance with Altera's standard warranty, but reserves the right to make chang-
www.altera.com es to any products and services at any time without notice. Altera assumes no responsibility or liability
arising out of the application or use of any information, product, or service described
Technical Support: herein except as expressly agreed to in writing by Altera Corporation. Altera customers
www.altera.com/support are advised to obtain the latest version of device specifications before relying on any pub-
Literature Services: lished information and before placing orders for products or services.
34 Altera Corporation