webinar: practical ddr testing for compliance, validation and debug

55
Practical DDR testing for compliance, validation and debug Patrick Connally [email protected]

Upload: teledynelecroy

Post on 22-Jan-2018

376 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Practical DDR testingfor compliance, validation and debug

Patrick [email protected]

Page 2: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Agenda Basics of DDR testing

Basics of a DDR interface Types of testing Signals of interest

Common DDR test challenges Signal access Burst separation

Preparing for physical layer testing Choosing test equipment Optimizing oscilloscope setup

DDR compliance testing Compliance testing background The compliance testing process

DDR validation and debug Case study – tracking down a potential

signal fidelity issue

2

Page 3: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Basics of DDR testing

3

Page 4: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Basics of a DDR interface Each DRAM chip

transfers data to/from the controller via several data lines, accompanied by a strobe

Since data can flow both from the controller to the DRAM (write operation) and from the DRAM to the controller (read operation), these lines are bi-directional

4

Strobe + Data

DRAM chip

Controller

Page 5: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Basics of a DDR interface Common clock,

command and address lines are used for all DRAM chips

Since they control the operation of the interface, they are unidirectional (controller-to-DRAM)

The layout shown here is the “fly-by” topology used from DDR3 onwards

5

Strobe + Data

Clock, Command, Address

DRAM chip

Controller

Page 6: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Three types of physical-layer test

Compliance: “Do the device’s output signals comply to the JEDEC specification?”

Validation: “Do the devices interact correctly within the system environment?”

Debug: “Why isn’t my device/system behaving correctly?”

6

Page 7: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Which signals are important? In physical layer compliance testing

and validation, the fastest signals are the most critical: Clock (CK) Strobe (DQS) Data (DQn)

These signals need to be analyzed as analog waveforms to fully characterize their signal fidelity

While there will be many Data lines in an interface, testing them all can be time-consuming Often, board-level simulation is used to

find the expected “worst-case” data lines and test only those

7

Strobe

Data

Clock

Page 8: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Which signals are important? The command bus controls the operation of

the interface, and indicates the desired activity on the high-speed signals

Knowing the logic state of the command bus signals in a time-correlated way to the analog behavior of the high-speed CK, DQ and DQS signals enables much deeper insight into the system’s behavior

Possible command states vary by DDR protocol, but can include: Deselect No operation Read Write Bank Activate Precharge Refresh Mode Register Set

8

Strobe

Data

CMD bus

Page 9: Webinar: Practical DDR Testing for Compliance, Validation and Debug

A complete analysis system

Analog signals High-bandwidth

oscilloscope Low-loading

differential analog probes

9

Analysis software Identify bursts Perform

measurement

Digital signals High-sample-

rate digital analyzer

High-bandwidth digital probe

Page 10: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Common DDR test challenges

10

Page 11: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Test challenge 1: accessing signal points

All modern DRAM chips are BGA-packaged, which presents a challenge for testing – how do you access signals which are under the chip?

3 common approaches: Backside vias Interposers DIMM series resistors

11

Page 12: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Access option 1: Backside vias

If the BGA balls are accessible on the back side of the board, this is an ideal place to probe the signals of interest

Pros Usually good signal fidelity (probing

near the termination) Relatively easy access

Cons Many devices (dual-rank DIMMs,

dense embedded systems) don’t allow for this method

12

Backside via probe on single-rank DIMM

Backside via probing on “chip-down” system

Page 13: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Access option 2: interposers

Interposers install between the DRAM chip and the board, and provide points to connect probes

Pros Useful in difficult access situations Generally reasonable signal fidelity

Cons Additional complexity to install

socket correctly Interposer footprint can cause

problems on crowded boards

13

Page 14: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Access option 3: DIMM series resistors

For dual-rank (2-sided) DIMMs, the backside vias aren’t accessible – the resistors are a good alternate location

Pros A relatively accessible probing

point when the vias are not accessible

Cons The distance between the probe

and the termination on the DRAM means reflections from the receiver can be a problem

14

Single-ended Data line: resistor to ground

Differential Strobe line

Page 15: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Test challenge 2: burst separation Read and Write bursts share a bus, but must be analyzed separately:

Read bursts originate from the DRAM Write bursts originate from the controller Bus is “tri-state” (high-Z at both ends) when neither side is transmitting It’s critical to be able to identify and isolate the bursts of interest for analysis

15

Idle

Write

Idle

Read

Page 16: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Burst separation option 1: DQ/DQS phase

We can use the phase difference between the Data and Strobe to differentiate Reads and Writes

Pros Identification is simple and requires

only the signals being tested Cons

Signals with lots of noise, reflections, or slow rise/fall times can make phase measurements, and hence burst separation, unreliable

5/11/2017 18

Write

Read

Clean signals make phase-based separation easy

Reflections can make DQ/DQS phase relationship unclear

Page 17: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Burst separation option 2: Command bus

Acquiring or triggering on the command bus removes any uncertainty about the coming burst type

Pros Very reliable separation Insight into command bus

activity and relationship to DQS/DQ

Cons Requirement to probe several

extra signals

19

Page 18: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Preparing for DDR physical-layer testing

20

Page 19: Webinar: Practical DDR Testing for Compliance, Validation and Debug

System bandwidth Testing DDR systems always

requires the use of probes, so we should look at the scope and probes as a complete acquisition system

DDR interfaces have very fast slew rates relative to their data transfer (baud) rates

In order to characterize the system with acceptable rise-time accuracy, a relatively high-bandwidth oscilloscope and probes are required

21

DDR3 slew rate specification

Page 20: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Recommended equipment for common DDR variants

22

Page 21: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Probe loading

Probe loading gets blamed for a lot of observed issues

In our experience, signal fidelity issues can almost always be traced to the signal path within the device

Probes with insufficiently low loading are much more likely to cause functional failures in devices

23

Teledyne LeCroy WaveLinkDxx30 differential probes have ideal characteristics for testing higher-rate DDR systems

Page 22: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Probe mechanical connection Solder-in probe tips are used in the

vast majority of DDR testing applications

Most critical considerations tend to be: Small physical size - typically

many signals need to be probed Physical flexibility reduces torque

on delicate solder connections when probe amplifier is moved

Measurement flexibility – doing several jobs with one tip reduces test setup complexity

24

Teledyne LeCroy QuickLinkprobe tips are low-cost, high bandwidth, 9-inch flexible tips that can be interchanged between analog and digital instruments

Page 23: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Preparing to measure: deskewing

Deskewing is critically important in all applications where probes are used for timing measurements, but even more so in a DDR environment

The importance of the DQ/DQS phase in many measurements makes them particularly sensitive to skew issues

25

Deskewing probes using the oscilloscope’s fast edge output

These probing points are close together, so the same reference plane can be used

Page 24: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Preparing to measure: maximize dynamic range

26

Signals are using ~50% of the grid

This reduces Signal-to-Noise ratio by about 6dB

Signal is “clipping” – it could be overdriving the oscilloscope’s front-end

What not to do.

Page 25: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Preparing to measure: maximize dynamic range

5/11/2017 27

Each signal has its own grid

Maximizes dynamic range without sacrificing viewability

Each signal occupies about 6 vertical divisions

Good practice

Page 26: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Preparing to measure: checking signal levels Make sure the signal levels appear as

specified for the DDR variant you’re working on Many automated measurements rely on

“the basics” being correct If they don’t, it might be…

A probing problem (wrong reference, cross-probed, inverted)

A device/system problem (Wrong Vdd, wrong Vref)

28

DDR2 LPDDR2 DDR3 LPDDR3 DDR4 LPDDR4

VppSingle-ended 0 to 1.8 V 0 to 1.2 V 0 to 1.5 V 0 to 1.2 V 0 to 1.2 V

Differential -1.8 to 1.8 V -1.2 to 1.2 V -1.5 to 1.5 V -1.2 to 1.2 V -1.2 to 1.2 V

Vref(reference voltage)

Single-ended 0.9 V 0.6 V 0.75 V 0.6 V 0.6 V

Differential 0 V 0 V 0 V 0 V 0 V

Page 27: Webinar: Practical DDR Testing for Compliance, Validation and Debug

DDR Compliance Testing

29

Page 28: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Why do compliance testing?

DRAM and/or controller vendors Must be able to prove to their

customers that their devices abide by the standards as defined by JEDEC

There is no formal certification process for DDR “compliance” –manufacturers essentially self-certify

This makes documentation of test procedures and results critical

30

System designers No explicit need to prove JEDEC

compliance to “downstream” customers

Validation of device functionality is much more critical

System layout is often not optimal for signal fidelity testing

But a compliance report is often desirable as concrete verification that design goals have been met

Page 29: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Probing for compliance testing

Specification assumes the signal is probed directly at the balls of the DRAM BGA

This is not always feasible Access issues Need to connect twice as many probes

31

CK DQS DQ Add/CtrlDDR4 Differential Differential Single-Ended Single-EndedDDR3 Differential Differential Single-Ended Single-EndedLPDDR3 Differential Differential Single-Ended Single-EndedDDR2 Differential Differential or

Single-EndedSingle-Ended Single-Ended

LPDDR2 Differential Differential Single-Ended Single-Ended

Page 30: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Compliance testing is complicated!Fully covering the JEDEC standard for any given DDR variant means doing a lot of tests.

Automated compliance test software options for the oscilloscope… Make testing less

time-consuming Reduce errors due

to measurement complexity

Increase repeatability

Generate test reports automatically

32

Test coverage of Teledyne LeCroy QPHY-DDR4 automated compliance test option

Page 31: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Step 1: acquire signals Lots of data

makes for more reliable, repeatable results

We take a long acquisition to ensure good statistical confidence in the measurements

High traffic density during testing is important Run memtest

or another script to induce lots of traffic

33

Clock

Strobe

Data

Address

Page 32: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Step 2: separate read/write bursts Read and Write bursts must be

analyzed separately They come from different transmitters Some of their parameters are defined

differently

For systems with high-quality signals and/or using low speed grades, DQ/DQS phase produces good separation results

At higher rates or in low-signal-quality situations, phase measurement can become unreliable In these situations, we recommend

acquiring the CMD bus to ensure reliable burst separation

34

Page 33: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Step 3: perform measurements

35

Measurements are performed on all bursts in the acquired waveform Results, statistics and screenshots are retained for report generation

Possible reasons for problems/failures: Signal quality issues due to system/board signal paths Probes not connected correctly Burst separation problems (possibly due to the above) The device does not meet the specification

Page 34: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Step 4: Generate eye diagrams Eye diagrams

are only required for compliance testing in DDR4 and LPDDR4 variants

But they are an incredibly useful tool for visualizing overall signal quality, so they form part of the automated test package for all variants

36

Page 35: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Step 4: Generate eye diagrams

37

Write burst

Read burst

Write burst eye pattern

Read burst eye pattern

Page 36: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Step 5: Generate report

Reports contain: A summary of the test results,

including pass/fail status More details of each individual

test Screenshots of the tests being

performed

38

Page 37: Webinar: Practical DDR Testing for Compliance, Validation and Debug

DDR Validation and DebugA case study using Teledyne LeCroy’s DDR Debug Toolkit

39

Page 38: Webinar: Practical DDR Testing for Compliance, Validation and Debug

The complete system view

40

Analog probes: DQ/DQS/CK waveforms for waveshape analysis and eye diagrams

Digital Acquisition: For better burst separation and insight into command bus behavior

Page 39: Webinar: Practical DDR Testing for Compliance, Validation and Debug

What signals are we probing and how? Strobe (DQS): Analog C2 Data (DQn): Analog C3 Command bus:

Chip Select (CS): Digital D0 Write Enable (WE): Digital D1 Row Address Select (RAS): Digital

D2 Column Address Select (CAS):

Digital D3 Clock (CK): Digital D4 or Analog

C1 QuickLink probe tips can be used

for both digital and analog signals

42

Page 40: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Deskew

Make sure to deskew all analog and digital signals to the same timing reference

Teledyne LeCroy oscilloscopes have a Fast Edge output to make deskewing easy.

43

Page 41: Webinar: Practical DDR Testing for Compliance, Validation and Debug

First look at the analog signals Looking at just

the DQ and DQS analog signals, we can see some strange non-monotonicitieson the edges

DDR Debug Toolkit is the ideal tool for tracking down this kind of issue

44

Page 42: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Bus view

Annotating bus states and corresponding DQ/DQS activity makes system analysis easier

45

Page 43: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Bus view

The bus view also gives a direct reference from the system behavior to the JEDEC spec

46

Page 44: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Look closer with triggers

We can use the CMD bus to trigger on an event of interest

Let’s trigger on Read bursts

They all show non-monotonous edges

47

Page 45: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Look closer with triggers

Triggering on Write bursts doesn’t show any evidence of bad edges

Will the bad Read edges affect our eye diagrams?

48

Page 46: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Eye diagrams and burst separation The non-

monotonous edges on the Read bursts are hindering the phase-based burst separation approach It’s hard to

measure phase with a discontinuity right at the Vref crossing point

We can see some Reads end up in with the Writes as a result

49

Page 47: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Eye diagrams and burst separation Using the CMD

bus to separate Reads and Writes leads to “clean” eye diagrams

But that non-monotonicity will cause problems for other measurements

Is it a real phenomenon?

50

Page 48: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Where’s the signal being probed?

5/11/2017 51

PCB

DRAM Memory Controller

Page 49: Webinar: Practical DDR Testing for Compliance, Validation and Debug

So what’s going on here?

DRAM ControllerZ0 = 50Ω

RT >> 50Ω

VA VBVA

VB

T1 T2 T3

Page 50: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Measure the propagation delay

We can use the signal itself as a TDR pulse

Here, the round-trip delay is approximately 680ps

5/11/2017 53

Page 51: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Now we have a simple model

5/11/2017 54

Z0 = 50Ω

RT >> 50Ω

VA VB

TD = 340ps

DRAM Controller

Page 52: Webinar: Practical DDR Testing for Compliance, Validation and Debug

This gives us “virtually probed” read bursts

The probing point has been “moved” to the termination using Virtual Probe technology, eliminating the reflections

55

Original Virtual

Page 53: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Make sure you pick the correct probe point

5/11/2017 56

PCB

DRAM Memory Controller

You should still analyzeWrite bursts from here

Read burst analysisshould come from here

“Real” probe Virtual probe

Page 54: Webinar: Practical DDR Testing for Compliance, Validation and Debug

The final eye diagram view

When we view each signal from the correct probing point, both Read and Write bursts look good

57

Page 55: Webinar: Practical DDR Testing for Compliance, Validation and Debug

Questions?

[email protected]

58