Hardware and Layout Design Considerations For DDR2 SDRAM Memory Interfaces
Hardware and Layout Design Considerations For DDR2 SDRAM Memory Interfaces
Rev. 2, 03/2007
Application Note
1          Designer’s Checklist
In the following checklist, some of the items are phrased as question, others as requirements. In all cases,
we recommend that you consider the line item and check it off in the rightmost column of Table 1.
                                            Table 1. DDR2 Designer’s Checklist
Simulation
     1.      Have optimal termination values, signal topology, trace lengths been determined through simulation
             for each signal group in the memory implementation? If on-die termination is used at both the
             memories and the controller, no additional termination is required for the data group.
             These groupings assume a full 72-bit data implementation (64-bit + 8 bit of ECC). Some products
             may only implement 32-bit data and may choose to have less MCS MCKE, and MODT signals.
             Secondly, some products support the optional MAPAR_OUT and MAPAR_ERR for registered
             DIMMs. In such cases, MAPAR_OUT should be treated as part of the ADDR/CMD group and
             MAPAR_ERR can be treated as an asynchronous signal.
     2.      Does the selected termination scheme meet the AC signaling parameters (voltage levels, slew rate,
             overshoot/undershoot) across all memory chips in the design?
Termination Scheme
It is assumed that the designer is using the mainstream termination approach as found in commodity PC motherboards.
Specifically, it is assumed that on-die termination is used for the data groups and that external parallel resistors tied to VTT are
used for the Address/CMD and the control groups. Consequently, differing termination techniques may also prove valid and
useful. However, they are left to the designer to validate through simulation.
     3.      Is the worst case power dissipation for the termination resistors within the manufacturer’s rating for
             the selected devices? See Section 2, “Termination Dissipation”.
     4.      If resistor packs are used, have data lanes been isolated from the other DDR2 signal groups?
             Note: Because on-die termination is the preferred method for DDR2 data signals, external resistors
             for the data group should not be required. This item would only apply if the ODT feature is not used.
     5.      Have VTT resistors been properly placed? The RT terminators should directly tie into the VTT island
             at the end of the memory bus.
     6.      If series damping (RS) terminators are used (not seen as mainstream approach), were they placed
             close to the first memory DIMM?
             For discrete implementations—Placement of the series damping resistor (R S) for the data group is
             left to the board designer. This trade-off is optimal signal integrity for both reads/writes (RS in middle)
             versus ease of layout routing (RS placed closer to memory devices).
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
2                                                                                                            Freescale Semiconductor
                                                                                                          Designer’s Checklist
    7.      For address and command signals, the Micron compensation cap scheme is another optional
            termination method for improving eye apertures for a heavily loaded system (> 18 memory chips).
            For details on this termination scheme refer to DDR533 Memory Design for Two-DIMM Unbuffered
            Systems, located on Micron’s web site. For lightly and medium loaded memory subsystems (4–18
            chips), the compensation cap method is not as beneficial.
            If used, are the CCOMP capacitors placed within 0.5 inch of the first memory bank?
    8.      Is the differential terminator present on the clock lines for discrete memory populations? (DIMM
            modules contain this terminator.) Nominal range => 100-120 Ω.
    9.      Recommend that an optional 5pF cap be placed across each clock diff pair. If DIMM modules are
            used, the cap should be placed as closely as possible to the DIMM connector. If discrete devices
            are used, the cap should be placed as closely as possible to the discrete devices.
    10.     Recommendation—Place 0-Ω resistors on the DDR2 clock lines (near the driver). Such flexibility
            allows the clock lengths to be extended (if needed) during the prototyping phase.
    11.     Has the worst case current for the VTT plane been calculated based on the design termination
            scheme? See Section 2, “Termination Dissipation”.
12. Can the VTT regulator support the steady state and transient current needs of the design?
    13.     Has the VTT island been properly decoupled with high frequency decoupling? At least 1 low ESL
            cap, or 2 standard decoupling caps for each 4-pack resistor network (or every 4 discrete resistors)
            should be used. In addition, at least one 4.7-μF cap should be at each end of the VTT island.
            Note: This recommendation is based on a top-layer VTT surface island (lower inductance). If an
            internal split is used, more capacitors may be needed to handle the transient current demands.
    14.     Has the VTT island been properly decoupled with bulk decoupling? At least 1 bulk cap (100–220 μF)
            capacitor should be at each end of the island.
    15.     Has the VTT island been placed at the end of the memory channel and as closely as possible to the
            last memory bank? Is the VTT regulator placed in close proximity to the island?
16. Is a wide surface trace (~150 mils) used for the VTT island trace?
17. If a sense pin is present on the VTT regulator, is it attached in the middle of the island?
VREF
18. Is VREF routed with a wide trace? (Minimum of 20–25 mil recommended.)
    19.     Is VREF isolated from noisy aggressors? In addition, maintain at least a 20–25 mil clearance from
            VREF to other traces. If possible, isolate VREF with adjacent ground traces.
    20.     Is VREF properly decoupled? Specifically, decouple the source and each destination pin with 0.1uf
            caps.
    21.     Does the VREF source track variations in VDDQ, temperature, and noise as required by the JEDEC
            specification?
22. Does the VREF source supply the minimal current required by the system (memories + processor)?
    23.     If a resistor divider network is used to generate VREF, are both resistors the same value and 1%
            tolerance?
Routing
              Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                                     3
Designer’s Checklist
     26.     When routing the data lanes, route the outermost (that is, longest lane first) because this determines
             the amount of trace length to add on the inner data lanes.
27. Are the clock pair assignments optimized to allow break-out of all pairs on a single critical layer?
     28.     The DDR2 data bus consists of 9 data byte lanes (assuming ECC is used). All signals within a given
             byte lane should be routed on the same critical layer with the same via count.
             Note: Some product implementations may only implement a 32-bit wide interface.
             Byte Lane 0—MDQ(7:0), MDM(0), MDQS(0), MDQS(0)
             Byte Lane 1—MDQ(15:8), MDM(1), MDQS(1), MDQS(1)
             Byte Lane 2—MDQ(23:16), MDM(2), MDQS(2), MDQS(2)
             Byte Lane 3—MDQ(31:24), MDM(3), MDQS(3), MDQS(3)
             Byte Lane 4—MDQ(39:32), MDM(4), MDQS(4), MDQS(4)
             Byte Lane 5—MDQ(47:40), MDM(5), MDQS(5), MDQS(5)
             Byte Lane 6—MDQ(55:48), MDM(6), MDQS(6), MDQS(6)
             Byte Lane 7—MDQ(63:56), MDM(7), MDQS(7), MDQS(7)
             Byte Lane 8—MECC(7:0), MDM(8), MDQS(8), MDQS(8)
             To facilitate fan-out of the DDR2 data lanes (if needed), alternate adjacent data lanes onto different
             critical layers? See Figure 1 and Figure 2.
             Note: If the device supports ECC, Freescale highly recommends that the user implement ECC on
             the initial hardware prototypes.
30. Across all DDR2 data lanes, are all the data lanes matched to within 0.5 inch?
     31.     Is each data lane properly trace matched to within 20 mils of its respective differential data strobe?
             (Assumes highest frequency operation.)
     32.     When adding trace lengths to any of the DDR2 signal groups, ensure that there is at least 25 mils
             between serpentine loops that are in parallel.
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
4                                                                                                       Freescale Semiconductor
                                                                                                              Designer’s Checklist
    36.     Are the DDR2 signal groups tuned to the clock reference? Because this is loading and topology
            dependent, the variance around the clock should be determined by simulation.
            Secondly, in multi-bank systems, are the address and command signals loaded more heavily than
            the control signals (CS, ODT, CKE)?
            Specifically:
             • Are the setup/hold optimized for the addr/cmd group?
             • Are the steup/hold optimized for the control group (CS, ODT, CKE)?
             • Is the write data delay window met (tDQSS)? This is the relationship between the data strobes and
               clocks as specified by the JEDEC DDR2 specification.
38. Are all clock pairs routed on the same critical layer (one referenced to a solid ground plane)?
39. Are all clock pairs properly trace matched to within 25 mils of each other?
              Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                                         5
Designer’s Checklist
     40.     The space from one differential pair to any other trace (this includes other differential pairs) should
             be at least 25 mils.
41. If unbuffered DIMM modules are used, are all three required clock pairs per DIMM slot connected?
     42.     If the optional 0-Ω resistors are used (as noted in item 10), use ground stitching vias near the
             resistors.
     44.     Is MDIC0 connected to ground via an 18.2-Ω precision 1% resistor? Is MDIC1 connected to DDR
             power via an 18.2-Ω precision 1% resistor?
Miscellaneous Items
     45.     Keep the memory channel (area between controller and the memory) free of noisy and high
             frequency components (ideal case is to place only memory terminators and decoupling within this
             area).
     46.     Are the power-on reset config pins properly set for the correct DDR type?
             Note: Not all Freescale products support external power-on reset configuration pins for selecting
             the DDR type. Therefore, this item does not apply to all Freescale products.
     47.     For memory implementations that use registered DIMM modules, the board designer should attach
             a reset signal to the DIMM sockets. This reset signal should be derived from a ‘power good’ monitor
             status circuit.
     48.     Though registered DIMMs require only a single clock per bank, all DDR2 clock pairs at the DIMM
             connector should be attached (analogous to unbuffered DIMMs) so the design can also support
             unbuffered DIMMs with minimal changes.
     49.     If the controller supports the optional MAPAR_OUT and MAPAR_ERR signals, ensure that they are
             hooked up as follows:
             MAPAR_OUT (from the controller) => PAR_IN (at the RDIMM).
             ERR_OUT (from the RDIMM) => MAPAR_ERR (at the controller).
     50.     MAPAR_ERR is an open drain output from registered DIMMs. Ensure that a 4.7K pull-up to 1.8 V is
             present on this signal.
Discrete Memory Topologies (All items above still apply with exception of registered DIMM items)
     51.     Construct the signal routing topologies for the groups like those found on unbuffered DIMM modules
             (that is, proven JEDEC topologies).
     52.     When placing components, optimize placement of the discretes to favor the data bus (analogous to
             DIMM topologies).
             Optional: Pin-swap within a given byte lane to optimize the data bus routes further.
             Caution: Do not swap individual data bits across different byte lanes.
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
6                                                                                                        Freescale Semiconductor
                                                                                                               Termination Dissipation
     53.     If a single bank of x16 devices is used, let the DDR2 clocks be point-to-point. Place the series
             damping resistor (RS) close to the source and the differential terminator (R DIFF) at the input pins of
             the discretes.
             If more than 5 discretes are used, construct the clocks like those on unbuffered DIMM modules.
             Alternatively, place an external PLL between the controller and the memory to generate the
             additional clocks.
     54.     If multiple physical banks are needed, double stack (top and bottom) the banks to prevent lengthy
             and undesirable address/cmd topologies.
     55.     Properly decouple the DDR2 chips per manufacturer recommendations. Typically, five low ESL
             capacitors per device are sufficient. For further information, see article entitled Decoupling
             Capacitor Calculation for a DDR Memory Channel, located on Micron’s web site.
     56.     To support expandability into larger devices, ensure that extra NC pins (future address pins) are
             connected.
     57.     Ensure access/test points are available for signal integrity probing. This is especially critical if using
             blind and buried vias within the memory channel. If through-hole vias are used under the BGA
             devices, then generally these sites can be used for probing.
2          Termination Dissipation
Sink and source currents flow through the parallel RT resistors on the address and control groups. The
worst case power dissipation for these resistors is as follows:
           Power = I2 * RT = (18.6 mA)2 * (47 Ω) = 16.3 mW.
Small compact 4-pin resistor packages (16 mm × 32 mm) that provide dissipation up to 1/16 watt (62.5
mW) are ideal. See Section 4, “VTT Voltage Rail” for assumptions made for current calculations.
3          VREF
The current requirements for VREF are relatively small, at less than 3 mA. This reference provides a DC
bias of 0.9V (VDD/2) for the differential receivers at both the controller interface and the DDR devices.
Noise or deviation in the VREF voltage can lead to potential timing errors, unwanted jitter, and erratic
behavior on the memory bus. To avoid these problems, VREF noise must be kept within the JEDEC
specification. As such, VREF and the VTT cannot be the same plane because of the DRAM VREF buffer
sensitivity to the termination plane noise. However, both VREF and VTT must share a common source
supply to ensure that both are derived from the same voltage plane. Proper decoupling at each VREF pin (at
the controller, at each DIMM/discrete, and at the VREF source) along with the adhering to the simple layout
considerations enumerated in the checklist prevents potential problems.
Numerous off-the-shelf power solutions can provide both the VREF and VTT from a common circuit.
Regardless of the generation technique, VREF must track variations in VDDQ over voltage, temperature, and
noise margins as required by the JEDEC specifications.
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                                             7
VTT Voltage Rail
The driver would source (VTT plane would sink) the following based on this termination scheme:
       (VDD_max – VTT_min)/(RT + RDRVR) = (1.9 V – 0.842 V)/(47 + 10) = 18.6 mA
The driver would sink (VTT plane would source) the following based on this termination scheme:
       (VTT_max – VOL / (RT + RS + RDRVR) = (0.958 V – 0 V)/(47+ 10) = 16.8 mA
A bus with balanced number of high and low signals places no real demand on the VTT supply. However,
a bus with all DDR address/command/control signals low (~ 28 signals) causes a transient current demand
of approximately 500 mA on the VTT rail. The VTT regulator must provide a relatively tight voltage
regulation of the rail per the JEDEC specification. Besides a tight tolerance, the regulator must also allow
VTT along with VREF (if driven from a common IC), to track variations in VDDQ over voltage, temperature,
and noise margins.
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
8                                                                                            Freescale Semiconductor
                                                                             Layout Guidelines for the Signal Groups
                                                     NOTE
                When routing, each row (that is the 11-bit signal group) must be treated as
                a trace-matched group.
             Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                           9
Layout Guidelines for the Signal Groups
Data Lane 7
Data Lane 5
Data Lane 3
Data Lane 1
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
10                                                                                      Freescale Semiconductor
                                                                           Layout Guidelines for the Signal Groups
Data Group 6
Data Group 4
Data Group 8
Data Group 2
Data Group 0
             Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                        11
Simulation
6        Simulation
This application note provides general hardware and layout considerations for hardware engineers imple-
menting a DDR2 memory subsystem.The rules and recommendations in this document can serve as an
initial baseline for board designers to begin their specific implementations. Numerous memory topolo-
gies and interface frequencies are possible from the DDR2 interface, so Freescale highly recommends
that the board designer verify that all aspects (signal integrity, electrical timings, and so on) are addressed
through simulation before board fabrication.
In tandem with memory vendors, Freescale provides IBIS models for simulation. The board designer can
realize a key advantage in the form of extra noise and timing margins by taking the following actions:
     • Optimizing the clock to signal group relationships to maximize setup and hold times.
     • Optimizing termination values. During board simulation, verify that all aspects of the signal eye
         are satisfied, which includes at a minimum the following:
         — A sufficient signal eye opening meeting both timing and AC input voltage levels
         — Vswing max not exceeded (or alternatively max overshoot/max undershoot)
         — Signal slew rate within specifications
7        Further Reading
     •   DDR2 chapter of the MPC8548 PowerQUICC™ III Integrated Communications Processor
         Reference Manual
     •   Micron web site: http://www.micron.com. Lots of good application notes and DDR2 publications.
         Examples include:
         — DDR2 Package Sizes and Layout Basics
         — DDR SDRAM Simulation Process
         — Calculating Memory System Power for DDR2 SDRAM
         — DDR533 Memory Design for Two-DIMM Unbuffered Systems
         — Decoupling Capacitor Calculation for a DDR Memory Channel
              Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
12                                                                                      Freescale Semiconductor
                                                                                                  Revision History
8       Revision History
Table 4 provides a revision history for this application note.
                                        Table 4. Document Revision History
         Rev.
                     Date                                    Substantive Change(s)
        Number
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                        13
Revision History
               Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
14                                                                                      Freescale Semiconductor
                                                                                              Revision History
             Hardware and Layout Design Considerations for DDR2 SDRAM Memory Interfaces, Rev. 2
Freescale Semiconductor                                                                                    15
How to Reach Us:
Home Page:
www.freescale.com
email:
support@freescale.com
USA/Europe or Locations Not Listed:
Freescale Semiconductor
Technical Information Center, CH370
1300 N. Alma School Road
Chandler, Arizona 85224                  Information in this document is provided solely to enable system and software
1-800-521-6274                           implementers to use Freescale Semiconductor products. There are no express or
480-768-2130                             implied copyright licenses granted hereunder to design or fabricate any integrated
support@freescale.com
                                         circuits or integrated circuits based on the information in this document.
Europe, Middle East, and Africa:
                                         Freescale Semiconductor reserves the right to make changes without further notice to
Freescale Halbleiter Deutschland GmbH
Technical Information Center             any products herein. Freescale Semiconductor makes no warranty, representation or
Schatzbogen 7                            guarantee regarding the suitability of its products for any particular purpose, nor does
81829 Muenchen, Germany                  Freescale Semiconductor assume any liability arising out of the application or use of
+44 1296 380 456 (English)
                                         any product or circuit, and specifically disclaims any and all liability, including without
+46 8 52200080 (English)
+49 89 92103 559 (German)                limitation consequential or incidental damages. “Typical” parameters which may be
+33 1 69 35 48 48 (French)               provided in Freescale Semiconductor data sheets and/or specifications can and do
support@freescale.com                    vary in different applications and actual performance may vary over time. All operating
Japan:                                   parameters, including “Typicals” must be validated for each customer application by
Freescale Semiconductor Japan Ltd.       customer’s technical experts. Freescale Semiconductor does not convey any license
Headquarters
                                         under its patent rights nor the rights of others. Freescale Semiconductor products are
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku           not designed, intended, or authorized for use as components in systems intended for
Tokyo 153-0064, Japan                    surgical implant into the body, or other applications intended to support or sustain life,
0120 191014                              or for any other application in which the failure of the Freescale Semiconductor product
+81 3 5437 9125
                                         could create a situation where personal injury or death may occur. Should Buyer
support.japan@freescale.com
                                         purchase or use Freescale Semiconductor products for any such unintended or
Asia/Pacific:
                                         unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor
Freescale Semiconductor Hong Kong Ltd.
Technical Information Center             and its officers, employees, subsidiaries, affiliates, and distributors harmless against all
2 Dai King Street                        claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
Tai Po Industrial Estate,                directly or indirectly, any claim of personal injury or death associated with such
Tai Po, N.T., Hong Kong
+800 2666 8080                           unintended or unauthorized use, even if such claim alleges that Freescale
support.asia@freescale.com               Semiconductor was negligent regarding the design or manufacture of the part.