DDR Basics Frescale
DDR Basics Frescale
DDR Basics Frescale
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.
Agenda
Basic
DDR SDRAM
Power
Power
Power
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
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.
TM
1 => Vcc
0 => Gnd
D
precharged to Vcc/2
Cbit
Ccol
Vcc/2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
1 => Vcc
0 => Gnd
precharged to Vcc/2
Cbit
Storage
Capacitor
Ccol
Vcc/2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
1 => Vcc
0 => Gnd
D
precharged to Vcc/2
Cbit
Storage
Capacitor
Ccol
Vcc/2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
1 => Vcc
0 => Gnd
D
precharged to Vcc/2
Cbit
Storage
Capacitor
Ccol
Parasitic Line
Capacitance
Vcc/2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
Memory Arrays
B0
B1
B2
B3
B4
B5
B6
B7
W0
W1
W2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
Memory Arrays
B0
B1
B2
B3
B4
B5
B6
B7
W0
W1
W2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
Memory Arrays
B0
B1
B2
B3
B4
B5
B6
B7
W0
W1
W2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
10
Concurrency
Can be opening or precharging a row in one bank while accessing another bank
May
Bank 1
Bank 2
Bank 3
Row 0
Row 1
Row 2
Row 3
Row
Row
Buffers
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
11
Memory Access
Bank 0
Row
Row
Row
Row
Row
Bank 1
Bank 2
Bank 3
0
1
2
3
Row
Buffers
READs
Row
Row
Row
Row
Row
0
1
2
3
Row
Buffers
The
Row
Row
Row
Row
Row
0
1
2
3
Row
Buffers
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
12
HYB18T256800AF or
Micron MT47H32M8
32M
x 8 (8M x 8 x 4 banks)
256 Mb total
13-bit row address
8K rows
10-bit column address
1K bits/row (8K total when you take
into account the x8 width)
2-bit bank address
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
13
HYS72T3200HU or
Micron MT9HTF3272A
/CSn
ODTn
32M x 8
A[12:0]
DQ[7:0]
BA[1:0]
DQS
/DQS
/RAS
DM
/CAS
/WE
CK
/CK
ODT
/CS
32M x 8
A[12:0]
DQ[7:0]
BA[1:0]
DQS
/DQS
/RAS
DM
/CAS
/WE
CKE
CK
/CK
ODT
/CS
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
14
Command
/CS
/RAS
/CAS
/WE
ADDR
NOP
NOP
ACTIVE
BA, Row
READ
BA, Col
WRITE
BA, Col
PRECHARGE
BA
PRECHARGE ALL
A[10]
REFRESH
Bank,
OpCode
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
15
READ
ACTIVE
Trcd (ACTTORW ) = 4 clk
READ
Tccd = 2 clk
PRECHARGE
/CS
/RAS
/CAS
/WE
Address
BA, ROW
BA, COL
BA, COL
BA
CASLAT = 4 clk
DQS
DQ
Freescale Semiconductor Confidential and Proprietary Information. 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.
D0
D1
D2
D3
D0
D1
D2
D3
TM
16
ACTIVE
PRECHARGE
WRITE
Trcd (ACTTORW ) = 4 clk
/CS
/RAS
/CAS
/WE
Address
BA, ROW
BA, COL
BA
DQS
DQ
D0
D1
D2
D3
DM
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
17
DDR1/DDR2/DDR3 Comparison
Feature
DDR1
DDR2
DDR3
Package
TSOP
BGA only
BGA only
Voltages
Densities
64Mb-1Gb
256Mb-4Gb
256Mb-8Gb
Internal Banks
4 or 8
266-400 Mbps
400800 Mbps
8001600 Mbps
2, 2.5, 3 Clk
3, 4, 5 + AL Clk
5, 6, 7+ AL Clk
READ Latency - 1
SSTL_2
SSTL_18
SSTL_15
Termination
Parallel termination to
VTT for all signals
On-die termination
for data, address,
command, and
control
Data Strobes
Single Ended
Single or Differential
Differential
Data Rate
CAS / READ Latency
WRITE Latency
I/O Signaling
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
18
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.
TM
19
most JEDEC standard x8, x16, x32 DDR1 & 2 & 3 devices
Memory device densities from 64Mb through 4Gb
Data rates up to: 333 Mb/s for DDR1, 800 Mb/s for DDR2 and DDR3
Devices with 12-16 row address bits, 8-11 column address bits, 2-3
logical bank address bits
Data mask signals for sub-doubleword writes
Up to four physical banks (chip selects)
Physical bank sizes up to 4GB, total memory up to 16GB per
controller
Physical bank interleaving between 2 or 4 chip selects
Memory controller interleaving when more than 2 controllers are
available
Unbuffered or registered DIMMs
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
20
to 32 open pages
Auto-precharge,
Self-refresh
Up
to 8 posted refreshes
Automatic or software controlled memory device initialization
ECC: 1-bit error correction, 2-bit error detection, detection of all
errors within a nibble
ECC error injection
Read-modify-write for sub-doubleword writes when using ECC
Automatic data initialization for ECC
Dynamic power management
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
21
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
22
of Fly-by architecture
DDR2 DIMM
Controller
Fly by routing of clk, command and ctrl
DDR3 DIMM
VTT
Controller
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
23
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
24
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
25
Read Adjustment
Automatic CAS to preamble
calibration
Data strobe to data skew
adjustment
Address,
Command
& Clock Bus
Freescale
Chip
Data Lanes
Instead of JEDECs MPR method, Freescale controllers use a proprietary method of read
adjust method. Auto CPO will provide the expected arrival time of preamble for each strobe line
of each byte lane during the read cycle to adjust for the delays cased by the fly-by topology.
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
26
Write Adjustment
Write leveling used to add delay
to each strobe/data line.
Address,
Command
& Clock Bus
Freescale
Chip
Data Lanes
Write leveling sequence during the initialization process will determine the
appropriate delays to each strobe/data byte lane and add this delay for every write
cycle.
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
27
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.
TM
28
DRAMs
Initialized
Mode Register
Commands Issued
DDR3s
Conduct
Precharge
ZQ
Calibration
Chip selects
enabled and
DDR clocks
begin
Write
Leveling
CKE = HIGH
Read
Adjust
Asserted at
least 200us
DDR
Reset
Need at
least 500us
from reset
deassertion
to the
controller
being
enabled.
Timed loop
may be
needed.
DDR
CTRL
INIT
Stable
CLKS
Controller
Started
MEM_EN =1
Automatically handled
By the controller
Automatic CAS-to-Preamble
(aka Read Leveling).
Plus Data-to-Strobe adjustment
Init
Complete
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
29
DDR
CTRL
INIT
Chip selects
enabled and
DDR clocks
begin
Stable
CLKS
CKE = HIGH
Issued by controller
DRAMs
Initialized
Read
DQStDLL
Adjust Wait
Adjust
Read
Init
DQS
Calibration
Complete
Adjust
200 us
Controller
Started
Precharge
All
MEM_EN =1
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
30
Register configuration
Two
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
31
CLK_ADJUST
2) WR_DATA_DELAY
3) CPO
4) 2T_EN, 3T_EN
5) WRLVL_EN
6) Burst chop mode
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
32
MemClk (CLK_ADJUST = 0)
CLK_ADJUST = 1/2
Cmd/Addr Bus
WRITE
WR_LAT = (CASL + AL -1 ) = 3
DQS (WR_DATA_DELAY = 0)
DQ (WR_DATA_DELAY = 0)
Tdqss = 1/4 cycle
WR_DATA_DELAY = 1/2
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
33
Use
eye.
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
34
Eye Diagrams
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
35
Eye Diagrams
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
36
Eye Diagrams
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
37
Eye Diagrams
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
38
Eye Diagrams
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
39
Verify
via TIMING_CFG_2[WR_DATA_DELAY]
using a scope
Erroneous
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
40
via TIMING_CFG_2[CPO]
application note AN2583 section 4.2 to calculate
Must
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
41
2T/3T Timing
Puts
to use?
Typically
When
not to use?
Registered DIMMs
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
42
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.
TM
43
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
44
ERR_DETECT
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
45
Programming
When
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
46
DLL
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
47
TIMING_CFG_1[WRTORD] (twtr)
TIMING_CFG_1[ACTTOACT] (trrd)
TIMING_CFG_2[RD_TO_PRE] (trtp)
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
48
s for DDR2 and 512 us for DDR3 must pass between stable
clocks and CKE assertion
Clocks
CKE
Software
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
49
References
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.
TM
50
Useful References
Books:
DRAM Circuit Design: A Tutorial, Brent Keeth and R. Jacob Baker, IEEE Press, 2001
Freescale AppNotes:
AN2582 Hardware and Layout Design Considerations for DDR Memory Interfaces
AN2910 Hardware and Layout Design Considerations for DDR2 Memory Interfaces
AN2583 Programming the PowerQUICC III / PowerQUICC II Pro DDR SDRAM Controller
AN3369 PowerQUICC DDR2 SDRAM Controller Register Setting Considerations
Micron AppNotes:
TN-46-05 General DDR SDRAM Functionality
TN-47-02 DDR2 Offers New Features and Functionality
TN-41-02 DDR3 ZQ calibration
JEDEC
Specs:
Freescale Semiconductor Confidential and Proprietary Information. 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.
TM
51
Q&A
Thank
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.
TM
52
TM