Beruflich Dokumente
Kultur Dokumente
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or
service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2009.
Introduction
►As such, more and more FSL products are supporting DDR3
moving forward.
►In this session we will look at key distinctions between DDR3 vs.
DDR1 & DDR2, with key emphasis placed on elements that are
important to hardware / board design engineers.
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 2
Overview of Presentation
► DDR3 Signaling.
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 3
DDR3 – Same players
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 4
Cross-over Point
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 5
DDR SDRAM Highlights and Comparison
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 6
DDR SDRAM Highlights and Comparison (cont.)
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 7
Typical Freescale DDR2/3 Controller Highlights
►Interface speed
• DDR2 - up to 800 MHz
• DDR3 - up to 800 MHz today (MPC8572, MPC8526)
Evaluating higher speeds 1066 MHz and up to 1600 MHz
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 8
Typical Freescale DDR2/3 Controller Highlights (cont’d)
► Read-Modify-Write support for Atomic Inc, Dec, Set, Clear, and sub-double
word writes
► All timing parameters are under SW control
► Automatic Data Initialization (easy ECC support)
► Differential data strobes
► Dedicated Open Row Table for each sub-bank
• Up to 32 simultaneous open rows with 4 chip selects
► Up to six diff clock pairs
• Eliminates the need for any external clock PLLs
► ODT support (both internally and externally)
► On-chip ZQ driver calibration
► SSTL-1.8, and SSTL-1.5 compatible IOs
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 9
Memory Controller Block Diagram
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 10
Key DDR3 Memory Improvements and Additions
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 11
DDR3 Signaling – Example SSTL-1.5
VOH(MIN)
0.925V
VIHAC
0.850V VIH DC
VREF + AC Noise
0.765V VREF + DC Error
0.750V
0.735V
VREF - DC Error
VREF - AC Noise
0.650V VILDC
0.575V VIL AC
VOL (MAX) Receiver
VSSQ
Transmitter
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 12
Lower Power
►Supply voltage reduced from 1.8V to 1.5V
• ~ 30% power reduction (Micron claim)
• ~ 25% is JEDEC’s official claim
Compared to DDR2 at same frequency bin
DDR3
Estimated
1600
DDR3
DDR2 1333
800 DDR3
DDR2 DDR3 1067
667 800
DDR2
533
Source: Micron
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 13
Improved Pinout
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 14
Fly By Routing Topology
DDR2 DIMM
Controller
DDR3 DIMM
Controller
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 15
Fly By Routing Improved SI
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 16
Fly By Skew Across All receivers
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 17
The need for write-leveling….
►tDQSS requirement:
• DQS/DQS# rising edge to CK/CK# rising edge
• Clock to Strobe should be within a certain range for proper write operation to
DDR3 SDRAMs
►tDQSS spec: +/- 0.25*tck
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 18
Write-Leveling… How it works
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 19
Read Adjustment
• Automatic CAS to preamble
calibration
• Data strobe to data skew
adjustment
Address,
Command
Freescale
Chip & Clock Bus
Data Lanes
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 20
Dynamic ODT – System Motivation
Without Dynamic ODT
Example of termination scheme in application
Write to slot 1
With Dynamic ODT
Write to slot 2
Significant improvement
of write signal integrity
with DDR3 dynamic ODT
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 21
New DDR3 Pins
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 22
New DDR3 Pins… cont’d
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 23
NEW DDR3 pins – ZQ Calibration Pin
► The RZQ resistor is connected between the DDR3 memory and ground
• Value = 240 Ohm +/- 1%
• Permits driver and ODT calibration over process, voltage, and temperatures
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 24
Freescale Controller Driver Calibration
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 25
DIMM Mirroring…
Non-Mirrored Mirrored
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 26
NEW DDR3 pins – TDQS/TDQS#
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 27
Layout Example – CTS8536
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 28
DDR3-800Mhz In the Lab
120 Ohm / Half Driver / 1 DIMM
Required
Tsu = 95 ps
Th = 170 ps
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 29
Common Design Pitfalls
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 30
Design Pitfalls Summary
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 31
Design Pitfalls Summary (Continued)
►Pitfall 10 Slew Rate: Must account for de-rated slew rate for system
timing (See JEDEC Table)
►Pitfall 11 Testability: Insure there is test and measurement access to
DDR signals
►Some other noteworthy pitfalls
• Not using ECC
Highly Recommended for first prototypes. De-pop for production
• Missing pull-up on MAPAR_ERR (registered DIMMs) and MAPAR_OUT
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 32
Design Pitfalls
Backup Slides
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 33
Pitfall 1 – Noisy VREF
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 34
Pitfall 1 – Measuring VREF
VREF at
VREF on
Decoupling cap
device
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 35
Pitfall 1 – Protecting VREF
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 36
Pitfall 2 – Wimpy VREF source
0.75
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 37
Pitfall 3 – Reference Plane discontinuities
►Contiguous reference plane Gnd stitching via
• GND – Data
• Pwr - Address / Cmd
►Use stitching vias if switching layers
Plane Void
►Keep away from plane voids Long Trace Routes
►Avoid crossing plane splits
►Avoid trace over anti-pad
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 38
Pitfall 4 – Data Tuning
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 39
Pitfall 5 – Forgetting Termination
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 40
Pitfall 6 – POR config selection
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 41
Pitfall 7 – Expandability
Signal Pin Signal Type Function
Name Nomenclature
A13 NC No connection to internal die. Used on x4/x8 512 Mb and 1 Gb devices
Okay to run trace to PCB pad. and all configurations of the 2 Gb or 4Gb.
A14 NC No connection to internal die. Used on x4/x8 2 Gb devices and all 4 Gb
Okay to run trace to PCB pad. configurations.
A15 NC No connection to internal die. Used on 4 Gb (x4/x8).
Okay to run trace to PCB pad.
BA2 NC No connection to internal die. Used on all configurations of the 1 Gb,
Okay to run trace to PCB pad. 2 Gb, and 4 Gb.
Rule of thumb:
For DDR3 - Every address (A0-A15), and all three bank address (BA0-BA2) line from our
controllers should be connected to the memory subsystem.
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 42
Pitfall 8 – Not using proven JEDEC topologies
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 43
Pitfall 9 – Separate VDDQ/VDDIO
PowerQUICC®
Controller
VDD
(ddr pwr)
VDDQ
(io pwr)
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 44
Pitfall 10– Slew Rate De-rating (setup & hold)
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 45
Pitfall 11 – No debug or testability on BGA devices
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 46
Power up and Initialization Sequence
Backup Slides
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 47
DDR3 Initialization Flow
Power-up
DRAMs Mode Register
Initialized Commands Issued
Asserted at
least 200us
DDR
DDR3’s ZQ ZQCL Issued (512 clocks)
Reset
Conduct Also DLL lock time is occuring
Precharge
Calibration
Need at
least 500us
from reset
deassertion DDR Chip selects
to the CTRL enabled and Write Automatically handled
controller DDR clocks By the controller
being INIT Leveling
begin
enabled.
MEM_EN =1 Init
Controller Ready for User accesses
Complete
Started
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 48
DDR2 Initialization Flow
Power-up Precharge Issued by controller
All
Chip selects
DDR enabled and
CTRL DRAMs Mode Registers Programmed
DDR clocks
INIT begin Initialized Issued by controller
Read
Stable CKE = HIGH DQStDLL
Adjust Wait tDLL = 512 clocks
CLKS Adjust
Read
Init
200 us DQS
Calibration Ready for User accesses
Complete
Adjust
MEM_EN =1
Controller
Started
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 49
Burst Length
Read Read
D D D D D D D D D D D D D D D D BL8
D D D D D D D D D D D D D D D D Burst Chop 4
A12 = High
bubble bubble
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 50
Power-up : Power Rails
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 51
Power-up : Power Rails cont’d
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 52
Reset
►Reset should be done after the power supply voltage level(s) are
properly up and stabilized
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 53
Stable clocks
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 54
DRAMs Initialized
►Once clocks are stabilized, the next step should be to set the Mode
Register.
• Mode Registers set the operational mode of the DDR3 DRAMs
• Order of programming
MR2 -> MR3 -> MR1 -> MR0
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 55
Mode Register Set 0
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 56
Mode Register Set 1
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 57
Mode Register Set 2
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 58
Driver Calibration
Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks TM
of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2007. 59
TM