Sei sulla pagina 1di 111

DDR3 Overview

Sebin Kollamana

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR Evolution
DDR3 overview
DFI 3.1
Verification of DDR physical layer and
controller

DDR4 overview
2

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR evolution

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

SRAM Vs DRAM
Static Random Access Memory (SRAM) is a type of semiconductor memory where the word static
indicates that, unlike dynamic RAM (DRAM), it does not need to be periodically refreshed, as SRAM
uses bistable latching circuitry to store each bit.
SRAM is still volatile in the conventional sense that data is eventually lost when the memory is not
powered.
SRAM is more expensive, but faster and significantly less power hungry (especially idle) than
DRAM. It is therefore used where either bandwidth or low power, or both, are principal
considerations
SRAMs are used as the primary caches in CPUs, data buffers of HDD etc
DRAMs stores each bit of data in a separate capacitor within an integrated circuit. Since real
capacitors leak charge, the information eventually fades unless the capacitor charge is refreshed
periodically.
The advantage of DRAM is its structural simplicity: only one transistor and a capacitor are required
per bit, compared to six transistors in SRAM. This allows DRAM to reach very high density.
For economic reasons, the large memories(RAM) found in personal computers are DRAMs

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

SDR and DDR - DRAMs


SDRAM has a synchronous interface, meaning that it waits for a clock
signal before responding to control inputs and is therefore
synchronized with the computer's system bus.
Single data rate SDRAM can accept one command and transfer one
word of data per clock cycle whereas DDR SDRAMs can transfer a
word per clock edge.
Single data rate SDRAM were once used widely as computer RAMs
but now replaced by DDR memories
SDRAM Synchronous Dynamic Random Access Memory
DDR-SDRAM Double Data Rate SDRAM

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR-DDR2-DDR3
Frequency supported : DDR - 100/133/166/200MHz
DDR2 - 100533MHz DDR3 - 300-1066MHz
Reduction in power consumption of 30% compared to DDR2 modules due to
DDR3's 1.5 V supply voltage, compared to DDR2's 1.8 V or DDR's 2.5 V.
Higher bandwidth made possible by DDR3's 8-bit wide prefetch buffer, in
contrast to DDR2's 4-bit prefetch buffer or DDR's 2-bit buffer.
Typical latencies for a DDR2 device were 5-5-5-15 where as 7-7-7-20(tCAStRCD-tRP-tRAS) for DDR3-1066 and 7-7-7-24 for DDR3-1333
DDR3 latencies are numerically higher because the clock cycles by which
they are measured are shorter
DDR3 1066 DDR3 working @533Mhz

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

LPDDR2 LPDDR3
Frequency supported: LPDDR - 0-200MHz

LPDDR2 - 0-533MHz

Reduction in power consumption compared to DDR module.


LPDDR uses 1.8 V supply voltage Where as LPDDR2 uses 1.2V as supply
voltage (even less than DDR3s 1.5V).
LPDDR devices use a single data rate architecture on the Command/Address
where as LPDDR2 devices use a double data rate architecture on the
Command/Address (CA) bus to reduce the number of input pins in the
system.
LPDDR and LPDDR2-S2 devices have 2n prefetch DQ architecture.
LPDDR2 devices have 4n prefetch DQ architecture.

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR3
Terminology and Commands

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Functional Block Diagram

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Interface signals

10

Clock CK, CK# (input)


RESET#
Control Signals - CKE, CS#, RAS#, CAS#, WE# (input)
Address Signals - BA0-BA2, A0-An (input)
Data signals D0 Dn, DM (bi-directional)
Data Strobe DQS, DQS# (bi-directional)

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR3 Commands
DDR2 commands are driven at single data rate, 1
command per clock
Control Signals - CKE, CS#, RAS#, CAS#, WE#
Address Signals - BA0-BA2, A0-An
Activate - Opens a particular row for Read/Write Access
Pre-charge - Closes an open row in a particular bank or all
banks
Refresh
Self Refresh
Powerdown

11

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

12

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

CAS Latency
CAS Latency is the delay, in clock cycles, between the registration of
a READ command and the availability of the first bit of output data.
The CL can be set to 5-14 clocks, depending on the speed grade
option being used.

13

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Additive Latency
Delays the Read/Write commands internally by Additive latency
number of cycles
Additive Latency can be configured as zero, casl-1, casl-2

14

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Latency
The memory expects write data after write latency number of cycles
after the write command
Write latency can be configured in the range 5 to 12 depending on the
speed bin

15

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Burst Length
Read and write accesses to the DDR3 SDRAM are burst-oriented,
with the burst length being programmable to either four or eight.
The programmed burst length applies to both read and write bursts
Burst length can be programmed through the mode register or can be
controlled dynamically via a12

16

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Burst Type Sequential, Interleaved


The ordering of accesses within a burst is determined by the burst length, the
burst type, and the starting column address

17

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Mode Register 0 (MR0)

18

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Mode Register 1 (MR1)

19

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Mode Register 2 (MR2)

20

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Mode Register 3 (MR3)

21

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

22

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Questions

23

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR3
Initialization

24

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Initialization
Assert reset for 200us
After de-asserting the reset, wait for 500us and then drive CKE high
Clocks (CK, CK#) need to be started and stabilized for at least 10 ns or 5
tCK (which is larger) before CKE goes active
Once the CKE is registered High after Reset, CKE needs to be
continuously registered High until the initialization sequence is finished
After CKE is being registered high, wait minimum of Reset CKE Exit time,
tXPR, before issuing the first MRS command to load mode register.
(tXPR=max (tXS ; 5 x tCK)
Issue MRS Command to load MR2 with all application settings
Issue MRS Command to load MR3 with all application settings
Issue MRS Command to load MR1 with all application settings and DLL
enabled
Issue MRS Command to load MR0 with all application settings and DLL
reset
Issue ZQCL command to starting ZQ calibration.
Wait for both tDLLK and tZQinit completed

25

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Initialization

26

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR3
Write and Read

27

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write
A single write operation follows three steps Activate
Write - Precharge

tRRD time between successive row


access
tRCD activation of a row to read/write
in that particular row

28

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write ck/dq/dqs
1 cycle preamble, dq/dqs relation, 0.5 cycle postamble

tDQSS time from posedge of ck to


posedge of dqs

29

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Data Input Timing


Due to routing imbalances, the DQ eye becomes very
small.
The DQ/DM eye has to meet the timing requirements
tDS, tDH

30

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Back to Back Write


tCCD command to command delay
Write commands are placed in such a way that the data
flows seamlessly

31

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read
Activate Read Precharge
1 cycle read preamble, half cycle postamble

32

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read timings

33

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Back-to-back reads

Read command placing ensures that data flows


continuously

34

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read followed by Write

Should avoid bus contention

35

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Questions

36

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR3
Refresh, Self-Refresh, Powerdown

37

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Refresh
The DRAM requires REFRESH cycles at an average interval of 7.8s
(maximum when TC 85C or 3.9s maximum when TC > 85C).
(tREFI - maximum average periodic refresh, tRFC refresh to activate
period)
All banks must be precharged before entering the refresh.
A maximum of eight REFRESH commands can be posted to any
given DRAM, meaning that the maximum absolute interval between
any REFRESH command and the next REFRESH command is nine
times the maximum average interval refresh rate.

38

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Refresh

39

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Self-Refresh
The SELF REFRESH command is used to retain data in the DRAM,
even if the rest of the system is powered down. When in self refresh
mode, the DRAM retains data without external clocking.
Self refresh mode is also a convenient method used to enable/disable
the DLL as well as to change the clock frequency.

40

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Self-Refresh

41

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Power Down
Entering power-down disables the input and output buffers, excluding
CK, CK#, ODT, CKE, and RESET#.
NOP or DES commands are required until tCPDED has been
satisfied, at which time all specified input/output buffers are disabled.
(tCPDED Command pass disable delay)
During power-down entry, if any bank remains open after all inprogress commands are complete, the DRAM will be in active powerdown mode. If all banks are closed after all in-progress commands are
complete, the DRAM will be in precharge power-down mode.
DLL will be on during Active powerdown whereas in Precharge
powerdown mode, DLL can be turned off (slow powerdown entry/exit)

42

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Power Down (active)

43

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Clock Frequency Change


The input clock frequency can be changed from one
stable clock rate to another under two conditions: self
refresh mode and precharge power-down mode.
It is illegal to change the clock frequency outside of those
two modes

44

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Clock frequency change during precharge


powerdown

45

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Speed Bin

46

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Timing parameters - Example

47

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Timing parameters - Example

48

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Questions

49

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR3
Flyby topology and training

50

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Flyby Topology

51

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

32 bit DDR3 DIMM Flyby Topology


Control Signals +
CK+ CKE + CS#

CS#[0]
CKE[0]

CS#[0]
CKE[0]

CS#[0]
CKE[0]

CS#[0]
CKE[0]

DQ[31:24]
, DQS[3]

DQ[23:16]
, DQS[2]

DQ[15:8],
DQS[1]

DQ[7:0],
DQS[0]

CS#[1]
CKE[1]

CS#[1]
CKE[1]

CS#[1]
CKE[1]

CS#[1]
CKE[1]

DQ[31:24]
, DQS[3]

DQ[23:16]
, DQS[2]

DQ[15:8],
DQS[1]

DQ[7:0],
DQS[0]

DQ[31:0]/DQS[3:0]

52

CS#[2]
CKE[2]

CS#[2]
CKE[2]

CS#[2]
CKE[2]

CS#[2]
CKE[2]

DQ[31:24]
, DQS[3]

DQ[23:16]
, DQS[2]

DQ[15:8],
DQS[1]

DQ[7:0],
DQS[0]

CS#[3]
CKE[3]

CS#[3]
CKE[3]

CS#[3]
CKE[3]

CS#[3]
CKE[3]

DQ[31:24]
, DQS[3]

DQ[23:16]
, DQS[2]

DQ[15:8],
DQS[1]

DQ[7:0],
DQS[0]

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Leveling
The goal is to delay the write DQS/DQS# to match the
CK/CK#. DDR3 has write leveling to achieve this.
1. Complete the initialization procedure
2. Enable write leveling mode using the mode register MR1
3. The phy/controller sends dqs pulse to the DRAM
4. DRAM samples the CK @ posedge of DQS and sends
the result through DQ bus.
5. Phy/controller samples the DQ bus, evaluates the result
and decides whether to delay the DQS further or not
6. Steps 3 to 6 are repeated until the proper delay is
determined
7. Exit write leveling using MR1
8. Resume operation
53

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Mode Register 1 (MR1)

54

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Leveling write DQS vs CK

55

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Leveling

56

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Leveling

57

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Leveling

58

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read DQS gate training


The read dqs has a 0.9xCK read preamble and 0.5xCK
read postamble.
The phy uses the dqs to capture the DQ
The dqs switches from valid to highZ to valid between
write/read.
The phy will open the gate only during the valid time to let
the dqs in.
The idea goal here is to find out the sweet spot for
opening the dqs gate for reads

59

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read DQS gate training

60

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read DQS gate training


1. Complete the initialization, do write leveling if required
2. Controller/phy issues read commands to the DRAM
3. The DRAM responds by sending DQS and DQ (it is a
normal read operation, the DRAM doesnt know that
gate training is happening)
4. The controller/phy evaluates the read dqs and delays the
gate
5. Steps 2 to 4 are repeated until the gate is delayed
sufficiently
6. Resume operation

61

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read DQ Eye Training


The read DQ eye becomes extremely small owing to the
uncertainties on board, package, IO, clock jitter etc
The phy uses DQS to capture the read data (DQ)
The goal is to delay the DQS to find the sweet spot for
sampling the DQ
1. Complete initialization, write leveling and gate training (if
required)
2. Use MR3 to set MPR read. This will make the DRAM to give a
pre-defined pattern as read data.
3. Issue read command to the DRAM. The DRAM returns the
predefined pattern as read DQ
4. The phy/controller will analyze the sampled dq and delays the
dqs if needed.
5. Steps 3,4 is repeated until the pre-defined pattern is correctly
sampled.
6. Resume normal operation
62

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Mode Register 3 (MR3)

63

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read DQ vs DQS

64

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Questions

65

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DFI 3.1

66

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

What is DFI
Defines the connectivity between a DDR memory
controller (MC) and a DDR physical interface (PHY) for
memory devices.
Defines the signals, signal relationships, and timing
parameters required to transfer control information and
data to and from the DRAM devices over the DFI.
Supports an MC and PHY operating in either matched
frequency or a frequency ratio, or both.

67

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DFI Interfaces

68

Control Interface
Write Data Interface
Read Data Interface
Update Interface
Status Interface
Training Interface
Low Power Control Interface

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DFI Interfaces
CMD
PHY

Control Interface

Controller

Write data interface

Read data interface

Update interface

DFI
Interface

Status interface

Training interface

DATA
PHY
Leveling / Training Logic

Low power control interface

DDR4 Specific interface

DDR4 Features

Currently this interface is


not part of DFI 2.1
protocol

69

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Control Interface

DFI
interface

DRAM
interface

70

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Data Interface - write

DFI
interface

DRAM
interface

71

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Data interface - read

72

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Update Interface

73

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Status Interface

74

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Status Interface

75

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Status Interface

76

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Training interface

Write leveling
Read gate training
Read data eye training
The MC or the PHY may initiate any training operation.
Training may be executed during initialization, frequency change or
during normal operation.
The PHY can request training by driving the dfi_rdlvl_gate_req or
dfi_rdlvl_req or dfi_wrlvl_req
The MC must respond to any of these requests by asserting the
appropriate enable (dfi_rdlvl_en, dfi_wrlvl_en or dfi_rdlvl_gate_en)

77

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Training request timing

78

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read gate

79

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Read training in DFI training mode

80

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Write Leveling in DFI training mode

81

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Phy requested training mode


PHY asserts the dfi_phylvl_req_cs_n[x] associated with the
chip select, and the MC grants the bus to the PHY for training
using the following sequence:
1. The MC places the DRAM associated with the requested chip
select in the IDLE state.
2. The MC idles the DFI bus.
3. The MC asserts dfi_phylvl_ack_cs_n[x].
When the PHY completes training for a given chip select, the
PHY uses the following sequence:
1. The PHY de-asserts the dfi_phylvl_req_cs_n[x] signal
associated with the specific chip select.
2. The MC de-asserts the dfi_phylvl_ack_cs_n[x] signals as
soon as possible after all dfi_phylvl_req_cs_n signals are
de-asserted.

82

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Phy requested training mode

83

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Low power control

84

If the request is acknowledged through the assertion of the


dfi_lp_ack signal, the PHY may enter a low power mode as long as
the dfi_lp_ctrl_req or dfi_lp_data_req signal remains asserted.
Once the dfi_lp_ctrl_req or dfi_lp_data_req signal is de-asserted,
the PHY must return to normal operating mode within the number of
cycles indicated by the dfi_lp_wakeup signal.

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Frequency Ratio
PHY transfers data at a higher data rate relative to the
DFI clock.
MC has the option to execute multiple commands in a
single DFI clock cycle.
Supports 1:1 or 1:2 or 1:4 MC to PHY frequency ratio.
The MC -> PHY interface works on DFI clock and the
PHY works on DFI PHY clock.
The frequency of DFI PHY clock and the memory clock
should always be the same.
The DFI clock and the DFI PHY clock should be phase
aligned.

85

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Frequency ratio - clocks

86

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Ratio 1:2

87

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Ratio 1:2

88

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Ratio 1:4

89

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Ratio 1:4

90

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Ratio 1:4

91

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Questions

92

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Verification of DDR PHY/Controller

93

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Verification of DDR PHY

94

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Verification of Integrated controller and PHY

95

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DRAM/DIMM model configurations


Intra-rank and inter-rank flyby delays
The DIMM models (for eg: DENALI) have options to control inter-rank( the
flyby delay between multiple chip selects) and intra-rank(flyby delay between
modules in the same chip select). Verification need to ensure that both
delays are configured while doing training tests

DQ/DQS uncertainty
The DRAM specification allows some uncertainty on the read DQS and DQ
bits. Ensure that the DRAM model has this feature and that it is not turned off
by configuration. This is critical for training tests

DRAM initialization
The DRAM initialization typically takes long time to complete due to reset,
cke requirements. However after the initial sanity testing, these parameters
can be configured to a lower value to speed up the simulation

Differential signal skew


The DRAM model can be configured for tolerating a small amount of skew
between the differential signals CK/CK#, DQS/DQS#. But ensure that the
tolerance limit is within the specifications.

96

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Sources of uncertainty in the testbench


PLL jitter spread spectrum clocking
The PLL which generates the clock to the PHY might have some
jitter characteristics. This will affect the training logic and the DLL
and the CK/CK# going to the DRAM. Hence the verification
environment has to model this jitter or use the PLL model itself for
generating the clock.

Board skew and routing delays (static)


In real world application, there would be certain board delay and
skew between the DRAM signals. It is good to model these in the
verification environment

Board/IO jitter (dynamic)


The IO/package jitter, board jitter, ISI etc can be translated to a
suitable random variation and could be applied on the DRAM
interface signals.
Some jitter can break the training logic, however the phy can do a
short training to compensate this.
97

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Some interesting scenarios


DLL characterization (DLL inside the PHY)

The PHY might be having DLLs and slave delay lines to take care of the dqs, dqs gate delays.
Ensure that the delay lines support the highest and the lowest frequency of operation. Also
make sure that the delay line can support the maximum board/flyby delay. This becomes
significant while doing GLS at the best corner

DLL ON/OFF mode (DLL inside the DRAM)

During normal operation the DLL will be ON, however for low frequency applications such as
FPGA prototyping, the DRAM might be operated in DLL OFF mode.

READ tightly followed by WRITE and then followed by READ

This will test how fast the PHY can switch between READ/WRITE
Also tests the valid-highZ-valid switching in the DQS/DQ bus.

Back to back READ/WRITE to test the throughput, power consumption


Dynamically changing the frequency. This will test DLL lock/unlock,
powerdown/self-refresh features. Phy has to retrain following a frequency change.
Increasing the board delay/flyby delay can test the read FIFO inside the PHY

98

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Questions

99

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

DDR4

10
0

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Additional Interface Signals


C0, C1, C2 (input) Chip ID, is part of the command code
ACT_n (input) Activation command
RAS_n/A16, CAS_n/A15, WE_n/A14 (input) Multifunction pins. Axx
when ACT_n is low
DM_n/DBI_n/TDQS_t (input/output) Data Mask / Data Bus
Inversion/ Termination DQS depending on mode register settings
BG0-BG1 (input) Bank Group inputs
PAR (input) Command and Address parity input
ALERT_n (input/output) CRC Error Flag /Command Address parity
error Flag / as Input during connectivity test
TEN Connectivity test mode enable

10
1

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Command Truth Table

10
2

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Command Truth table

10
3

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Training procedures
Write Leveling
DQ eye training
MPR settings
MPR Read
MPR Write
4 MPRs are available, controlled through MR3

ZQ Calibration
DQ Vref calibration
A MRS command to the mode register bits 5:0 of MR6 are used
to program the vref value. VrefDQ training mode is
enabled/disabled by A7 of MR6 and training range can be
selected by A6 of MR6

10
4

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Features
Per DRAM addressability
Allows programmability of a given device on a rank. As an
example, this feature can be used to program different ODT or
Vref values on DRAM devices on a given rank

CAL (CS_n to Command Address latency)


CAL gives the DRAM time to enable the CMD/ADDR receivers
before a command is issued. Once the command and the
address are latched, the receivers can be disabled. For
consecutive commands, the DRAM will keep the receivers
enabled for the duration of the command sequence

10
5

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Features
Error Correction (CRC and Parity)
CRC
DDR4 supports CRC for write operation, and doesnt support
CRC for read operation
CRC Error mechanism shares the same Alert_n signal for
reporting errors on writes to DRAM. The controller has no way to
distinguish between CRC errors and Command/Address/Parity
errors other than to read the DRAM mode registers

10
6

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Features
Parity
Only for Command
[A2:A0] of MR5 are defined to enable or disable C/A Parity in the
DRAM
PAR signal is used to send the parity
Alert_n to flag error

Programmable read and write preamble


Read and write preambles programmable through Mode registers
Both the postambles are fixed

10
7

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Features
Connectivity test
The DDR4 memory device supports a connectivity test (CT)
mode, which is designed to greatly speed up testing of electrical
continuity of pin interconnection on the PC boards between the
DDR4 memory devices and the memory controller on the SoC
Allows test patterns to be entered in parallel into the test input
pins and the test results extracted in parallel from the test output
pins of the DDR4 memory device at the same time

10
8

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Features
ODT
The ODT feature is designed to improve signal integrity of the memory channel by
allowing the DRAM controller to independently change termination resistance for
any or all DRAM devices.
Controller can control each RTT condition with WR/RD command and ODT pin

RTT values have priority as following.


1.

Data Termination Disable

2.

RTT_WR (Termination value for a write regardless of ODT pin)

3.

RTT_NOM (value when ODT is high)

4.

RTT_PARK (default value when OCT is LOW)

if there is WRITE command along with ODT pin HIGH, then DRAM turns on
RTT_WR not RTT_NOM, and also if there is READ command, then DRAM
disables data termination regardless of ODT pin and goes into Driving mode.

10
9

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

References
MT41J256M4 www.micron.com
JESD79-4 www.jedec.org
DFI 3.1 www.ddr-phy.org

11
0

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Thank You
Sebin Kollamana
Sebin.kollamana@wipro.com

11
1

2014 WIPRO LTD | WWW.WIPRO.COM | CONFIDENTIAL

Potrebbero piacerti anche