Professional Documents
Culture Documents
Embedded System
Application
4190.303C
Laboratory
Naehyuck Chang
Dept. of EECS/CSE
Seoul National University
naehyuck@snu.ac.kr
High Speed Memory Design Considerations
The signal integrity is a challenging issue in high speed design
The following effects are more important in high speed design and can cause data
corruption
Reflection
Crosstalk and interference
SSN (simultaneously switching noise)
Following solutions are employed to improve signal integrity
Specialized voltage mode bus drivers
On die termination (ODT)
Off chip driver calibration (OCD)
Leveling No No Yes
REFS
REFSX
Write
Read A Read
Write A
Auto
Idle Write Read Read
Refresh
Write A Read A
Read A
PRE Precharge
PREALL
Command Sequence
Automatic Sequence
ELPL
Write Enable L Valid 10 Embedded Low-Power
10 Laboratory
Write Inhibit H X 10
DDR ACTIVE Commands
ACTIVE
The ACTIVE command is used to open (or activate) a row in a particular bank for a subsequent
access
The value on the BA0, BA1 inputs selects the bank, and the address provided on inputs A0ᅳA13
selects the row
The row remains active (or open) for accesses until
A PRECHARGE issued to the bank
READ or WRITE with AUTOPRECHARGE issued
Row to Column Access delay (tRCD)
After ACTIVE a READ or WRITE command may be issued after tRCD
Row to Row Command (tRRD)
The minimum time interval between successive ACTIVE commands to different banks is defined by tRRD
CK
t RRD t RCD
DON’T CARE
Figure 9
tRCD and tRRD Definition
ADDRESS Banka,
Col n
CL = 2
DQS
DO
DQ n
CK
CK
T0 T1 T2 T3 T4 T5 T6 T7 T0 T1 T2 T3 T4 T5 T6
CK T0 T1 T2 T3 T4 T5 T6
T0 T1 T2 T3 T4 T5 T6 T7
CK CK
CK
CK CK CK
CK
COMMAND WRITE NOP NOP NOP
tDQSS
t min
tDQSS
min
tDQSS max
max DQS
DQS DQS
DQS
DI DI
DQ b
DQ
DI b DQ DI
b DQ b
DM DM
DM DM
t
aved 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Mode Register
0* 0* Operating Mode CAS Latency BT Burst Length
Burst length 0 1 0 4 4
Read and write accesses to the DDR SDRAM are burst oriented
0 1 1 8 8
6 5 4 3 2 1 0 Mode Register
Determines the maximum number of column locations that can
1 be
0 accessed
0 for a givenReserved
Reserved READ or
CAS Latency BT Burst Length
WRITE command
1 0 1 Reserved Reserved
1 1 0 Reserved Reserved
Burst Length
1 1 1 Reserved Reserved
A2 A1 A0 A3 = 0 A3 = 1
7
0 0 0 Reserved Reserved
6 0 0 1 2 2 A3 Burst Type
5 0 1 0 4 4 0 Sequential
4 0 1 1 8 8 1 Interleaved
1 0 0 Reserved Reserved
3 CAS Latency CAS Latency
1 0 1 Reserved Reserved
A6 A5 A4 DDR 400
DDR 200 -- 333
2 1 1 0 Reserved Reserved Reserved Reserved
0 0 0
1 1 1 1 Reserved Reserved
0 0 1 Reserved Reserved
0 1 0 2 2
0
0 1 1 3 (Optional) 3
A3 Burst Type 1 0
17 0 Reserved ELPL
Reserved
Embedded Low-Power
Laboratory
locations that can be accessed for a given READ or address bit for a given configuration). The remain-
WRITE command. Burst lengths of 2, 4, or 8 loca- ing (least significant) address bit(s) is (are) used to
tions are available for both the sequential and the in-
DDR Mode Register
select the starting location within the block. The pro-
terleaved burst types. grammed burst length applies to both read and write
bursts.
Table 3
DDR burst
BURST length and types
DEFINITION
BA1 BA0 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 Address Bus
B t
Burst Starting
g Order of Accesses Within a Burst
Column
Length Address Type = Sequential Type = Interleaved 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Mode Register
0* 0* Operating Mode CAS Latency BT Burst Length
A0
4 0 1 1--2--3--0 1--0--3--2 0 1 1 8 8
1 0 0 Reserved Reserved
1 0 2--3--0--1 2--3--0--1
1 0 1 Reserved Reserved
1 1 3--0--1--2 3--2--1--0
1 1 0 Reserved Reserved
A2 A1 A0 1 1 1 Reserved Reserved
0 0 0 0--1--2--3--4--5--6--7 0--1--2--3--4--5--6--7
0 0 1 1--2--3--4--5--6--7--0 1--0--3--2--5--4--7--6
A3 Burst Type
0 1 0 2--3--4--5--6--7--0--1 2--3--0--1--6--7--4--5 0 Sequential
1. For a burst length of two, A1--Ai selects the two--data--ele- 1 0 1 1.5 (optional) 1.5 (optional)
ment block; A0 selects the first access within the block. 1 1 0 2.5 2.5
2. For a burst length of four, A2--Ai selects the four--data--ele-
ELPL
1 1 1 Reserved Reserved
ment block; A0--A1 selects the first access within the block. Embedded Low-Power
3. For a burst length of eight, A3--Ai selects the eight--data-- 18 Laboratory
element block; A0--A2 selects the first access within the An -- A9 A8 A7 A6--A0 Operating Mode
DDR Mode Register
A3 Burst Type
0 0 1 Reserved Reserved
0 1 0 2 2
0 1 1 3 (Optional) 3
1 0 0 Reserved Reserved
1 1 0 2.5 2.5
1 1 1 Reserved Reserved
An -- A9 A8 A7 Operating Mode
ELPL
A6--A0 Embedded Low-Power
19 Laboratory
0 0 0 Valid Normal Operation
Source Synchronous Interface
Typical clock distribution
Major examples
DDRSRAM, DDRSDRAM/DDRSGRAM, and RAMBUS DirectRAM
SCI, SGI CrayLink, and HIPPI-6400-PH
Advantages
Remove the limit of the time of flight on wire between two ICs and do not
require controlled clock skew between two ICs
Dramatically increased I/O frequencies
6.7 ns 7.7 ns
Data Data
STROBE STROBE
1 0.8
0 1 2 6 6.5 ns 7 7.5 ns 8
Driver Receiver
Strobe
Hold time condition
min(TB) > Thold + max (Tdata - Tstrobe)
Data
DDR
In DDR, every I/O buffer can output two bits per clock cycle
Each read command will transfer two bits from the array into the DQ
Use two separate data lines from the primary sense amps to the I/O buffers: prefetch of 2
Differential strobe
Reduced crosstalk and less SSN
Initialization Self
OCD calibration CKEL
Sequence Refreshing
SRF
PR CKEH
(E)MRS Idle
REF
Setting MRS
Refreshing
EMRS All banks
precharged CKEL = CKE low, enter Power Down
CKEH = CKE high, exit Power Down,
exit Self Refresh
ACT = Activate
CKEL CKEL PR(A) = Precharge (All)
ACT (E)MRS = (Extended) Mode Register Set
CKEH
SRF = Enter Self Refresh
REF = Refresh
Precharge
Precharging Activating Power CKEL
Down
Command Sequence
Automatic Sequence
Continue on the next page
WRA RDA
RDA
Writing Reading
with PR, PRA with
Autoprecharge Autoprecharge
PR, PRA PR, PRA
Precharging
Dynamic memory
Static memory
controllers are
controllers are
found in general
found in critical
purpose and soft-
systems with well-
real time systems
known traffic
with unpredictable
traffic