DDR Memory controller fundamentals review

Similar documents
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

P1010RDB-PB Quick Start Guide

Challenges for Next Generation Networking AMP Series

Freescale, the Freescale logo, AltiVec, C- 5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Wai Chee Wong Sr.Member of Technical Staff Freescale Semiconductor. Raghu Binnamangalam Sr.Technical Marketing Engineer Cadence Design Systems

Component Development Environment Getting Started Guide

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Bharat Bhushan, Stuart Yoder

Choice of 2 technology platforms. Flexibility in Timing. Flexibility in Teams

AMF-NET-T1021 Optimally Configuring DDR for Custom Boards

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Freescale MKW40Z IEEE Software Quick Start Guide

Mask Set Errata for Mask 2N27B

Stéphane Gervais-Ducouret

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

CodeWarrior U-Boot Debugging

Overview of Mechanical Reliability Testing Board-Level Temperature Cycling Monotonic Bend Testing Drop/Shock Testing References and Comments

Tom Deitrich. Senior Vice President and General Manager. February 2013

CodeWarrior Development Studio for Advanced Packet Processing v10.3.1

New VLE Instructions for Improving Interrupt Handler Efficiency Robert Moran Applications Engineer Microcontroller Solutions Group

Effectively describe, at a high level, NetComm Software for DPAA-based devices

QCVS Frame Distributor Wizard User Guide

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

Weibo? Please use hashtag #FTF2011# Freescale on Kaixin Tag yourself in photos and upload your own!

Quick Start Guide for FRDM-KL46Z Rev 1

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

IMXPINSQSUG Quick Start Guide on Pins Tool for i.mx Processors

Software Engineering Manager, Processor Expert Team

Quick Start Guide for FRDM-KL46Z Rev 1

Quick Start Guide for FRDM-KL05Z

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

MC34708TRN Rev /1/2011

Mask Set Errata for Mask 3N86B

i.mxrt1060 Product Lifetime Usage Estimates

Michael Jennings. June 2011

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Tweeting? Please use hashtag #FTF2011. Freescale on Facebook Tag yourself in photos and upload your own!

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Kevin Jia Syst & Apps engineer

Qorivva MPC5744P Evaluation Board 144LQFP Expansion Board User s Guide Barbara Johnson Applications Engineering

Jan ps/site/prod_summary.jsp?code=r DMK30&fsrch=1&sr=1

Suhail Agwani. RFD Portfolio Manager

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Xtrinsic Touch Sensing Software 2.0 Add touch. With flexible libraries.

Migrating Applications from MC9S12VR64 to MC9S12VR32 by: Manuel Rodríguez

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

How to Reduce SoC Power when Running M4 with A53 on i.mx8m

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

i.mx 6ULZ Migration Guide

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC,

Motivation for an Intelligent Battery Sensor. Introduction to MM912J637 Intelligent Battery Sensor. Competitive Advantages of MM912J637

Using VRC_CTL to Control an External VDD_LV Supply on the MPC5748G

Y.H. Cheng. Mohit Arora Sr. Systems Engineer and Security Architect. Application Engineer. Automotive and Industrial Solutions Group(AISG)

Using the Xtrinsic FXOS8700CQ Command Line Interface Software

Weibo? Please use hashtag #FTF2011# Freescale on Kaixin Tag yourself in photos and upload your own!

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Don Shin. Product Marketing Manager

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

Problem FatFS architecture Demonstration Benchmark Closing

Contents 2. Contents

TechDays property of their respective owners Freescale Semiconductor, Inc..

Jintao Zeng. Asia Pacific Marketing Manager

S12Z MagniV LIN Bootloader

Kinetis Brand Overview Kinetis K Series Overview New Kinetis Family Members Kinetis Feature Overview Enablement Questions

Getting Started with Qorivva Fast

Mask Set Errata for Mask 2N36B

Exception and fault checking on S32K1xx

Panel Session: Smart Metering & Smart Grid Solutions for the Modern World

Differences Between S32K11x and S32K142

QN9080 QN908x RF Certification Guide

Securing Intelligent Industrial and Networking Devices

Holger Gryska. Global Segment Marketing Manager Advanced Driver Assistance Systems

Kwok Wu, PhD Head, Embedded Software and Systems Freescale Semiconductor

IMXPINSQSUG Pins Tool for i.mx Processors Installation User's Guide

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

S32 Design Studio for ARM v2.0

S32K1xx Bootloader. 1. Introduction. 2. Architecture description. NXP Semiconductors. Application Notes Rev. 1, 10/2018. Contents

FRDM-KE04Z User s Guide User Guide

KIT09XS3400EVBE Evaluation Board User Guide Featuring the MC09XS3400

S32 Design Studio for Vision 2.0

Freescale s Sensors for Low-Power Applications WISH 2011

Denis Cabrol. Kinetis Global Marketing Manager

Production Flash Programming Best Practices for S32K1xx MCUs

Overview of Qorivva family and MPC564xB/C (5 minutes) Smart peripherals for lighting (20 minutes) Gateway communications and questions (5 minutes)

Android OS and Power Architecture

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Johnson Sun. Application / SASD

Modular Gateway Hardware User's Guide

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Rapid Software Development on 32-Bit Automotive MPC56xx Family of MCUs

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Using the PASS module in MPC5748G to implement password-based protection for flash and debugger access

Smartbook Tablet Reference Design

SMB Appliance. SOHO Appliance

Patrick B. Billings. NMSG/NPD Applications Engineering

Transcription:

14 Aug 2012 Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMAROS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2012 Freescale Semiconductor, Inc..

DDR Memory controller fundamentals review DDR basic FSL memory controller capability QCS DDR configuration DDR Validation Tool Parameters validation Memory testing 2

Access Transistor Column (bit) line Row (word) line G 1 => Vcc 0 => Gnd S D precharged to Vcc/2 Cbit Ccol Storage Capacitor Vcc/2 Parasitic Line Capacitance 3

ROW ADDRESS DECODER W0 W1 W2 B0 B1 B2 B3 B4 B5 B6 B7 SENSE AMPS & WRITE DRIVERS COLUMN ADDRESS DECODER 4

A requested row is ACTIVATED and made accessible through the bank s row buffer Row 0 Row 1 Row 2 Row 3 Row Row Buffers Bank 0 Bank 1 Bank 2 Bank 3 READ and/or WRITE are issued to the active row The row is PRECHARGED and is no longer accessible through the bank s row buffer Row 0 Row 1 Row 2 Row 3 Row Row Buffers Row 0 Row 1 Row 2 Row 3 Row Row Buffers Bank 0 Bank 1 Bank 2 Bank 3 Bank 0 Bank 1 Bank 2 Bank 3 5

The cell array of DDR3 modules will run at a quarter of the speed of the external bus which requires an 8 bit I/O buffer, up from 4 bits for DDR2 Source: Micron datasheet 6

Supports most JEDEC standard x8, x16, x32 DDR1 & 2 & 3 devices Memory device densities from 64Mb through 8Gb Data rates up to: 333 MT/s for DDR1, 800 MT/s for DDR2, and 2133MT/s for DDR3 Devices with 12-16 row address bits, 8-11 column address bits, 2-3 logical bank address bits Data mask signals for sub-double word writes Up to four physical banks (chip selects) Physical bank sizes up to 8GB, total memory up to 32GB 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 7

Up to 32 open pages Open row table Amount of time rows stay open is programmable Auto-precharge, globally or by chip select 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 8

DDR3L (1.35V) is a low voltage version of the DDR3 (1.5V). DDR3L meet the exact same functional and timing specifications of DDR3. VIH/VIL differences are compensated by corresponding derating values to Vref resulting no change in AC timing, and timing budget calculation. The main consideration for using DDR3L are: Memory controller needs to support DDR3L P1023, P1017, P1010, P1014, P2040, P3041, P5020 The supply voltage needs to be at 1.35V Using DDR3L SDRAM 9

Two general type of registers to be configured in the memory controller First register type are set to the DRAM related parameter values, that are provided via SPD or DRAM datasheet Second register type are the Non-SPD values that are set based on customer s application. For example: On-die-termination (ODT) settings for DRAM and controller driver impedance setting for DRAM and controller Clock adjust, write data delay, Cast to preamble override (CPO) 2T or 3T timing, Burst type selection (fixed or on-fly burst chop mode) Write-leveling start value (WRLVL_START) 10

Use the tool to generate the DDR register settings QCS generation tool will produce the best initial DDR settings Use this setting to start the verification/margin tuning of the board/application dependent settings. Tool will select the center value with best margins This verification/margin tests will run on the board via JTAG connection At this point if nothing works there is an board HW issue. If there are passing point you would know the registers are set to best margins available in the board being tested. 11

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMAROS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2012 Freescale Semiconductor, Inc..

Configuration of QorIQ processors is increasing in complexity Even more complexity is around the corner We support many, many configuration settings Reference manuals are huge and intimidating to new customers Configuration problems during board bring-up are HARD and COSTLY Learning command line tools requires more training, etc. Solution/Strategy to solve these problems: Extensible suite of tools with a common user interface Consolidate into a common tools framework (Processor Expert) Provide new device support aligned with silicon roadmap Add more configuration tools over time Allow customers to add their own configuration tools to extend what we offer 13

QorIQ Configuration Suite v2.2.2 is NOW AVAILABLE!!! Supports all QorIQ and Qorivva devices Works with Eclipse 3.5, Eclipse 3.6, Eclipse 3.7 development tools Pure Java solution for maximum choice of host system support Add-in to CodeWarrior Development Studio for PA, v10.1 or later Available from www.freescale.com/qcs FREE DOWNLOAD* Compass site for Freescale employees http://compass.freescale.net/livelink/livelink/open/pexqoriqrelease * Must be a QorIQ customer or under QorIQ NDA for download permission Actual URL is http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=pe_qoriq_suite&tid=peh 14

Includes the following configuration tools all designed to collaborate on consistent configuration: PBL tool to define the Reset Control Word bit values and PBI data for the pre-boot BOOTROM generator for those QorIQ without RCW functionality DDR configuration supports setting the controller to a working state for any DDR Data path graphical view helps to define data path configuration for the DPAA. Hardware Device Tree editor supports references, synchronous GUI and XML editing, node validation based on specification bindings Packaged as a separate product with installer and wizard functionality P5040, P5021, P5020, P5010, P4080 v1.0, P4080 v2.0, P4040 v1.0, P4040 v2.0, P3041, P2041, P2040, P2020, P2010, P1025, P1024, P1023, P1022, P1021, P1020, P1017, P1016, P1015, P1014, P1013, P1012, P1011, P1010, G1110 15

16

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMAROS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2012 Freescale Semiconductor, Inc..

18

2 1 19

Get DRAM data sheet Maximum speed rating Capacity configuration Please do not proceed if you don t the DRAM details 20

From back of RDB box From DRAM datasheet 21

Don t worry, tool will automatically compute this for you! 22

23

24

25

Open the CW config file you want to adapt D:\Program Files\Freescale\CW PA v10.1\pa\pa_support\initialization_files\qoriq_p4\ P4080DS_init_core0.cfg Replace DDR1 config section with the one from D:\Profiles\b08844\workspace\p4080\Generated_Code\ ddrctrl_1.cfg Use this new config file with your stationary project 26

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMAROS, TurboLink, Vybrid and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2012 Freescale Semiconductor, Inc..

Licensed product *Source Eclipse.org 28

You need QCS 2.2.1 or later installed. Get it from www.freescale.com/qcs Use Eclipse Add new software.. Eclipse updater capability to install DDRV on top of QCS. Use as an update link: http://freescale.com/lgfiles/updates/eclipse/helios36/ddrvalidation for installation over QCS installed over Eclipse 3.6 or CW PA 10 http://freescale.com/lgfiles/updates/eclipse/indigo37/ddrvalidation for installation over QCS installed over Eclipse 3.7 DDRV is a licensed product. 29

Pricing $995 License file: <QCS Install directory>/eclipse/optimization/license.dat 30

1 2 Test stages / scenarios Scenario details Tests to be executed per each scenario HW Connection setup 31

7 9 3 4 5 10 6 8 2 11 1 12 32 13

Test results per DDR configuration 33

3 Optimal DDR configuration is bolded 1 Tests to be executed can be changed between executions 2 Proceed to next validation step 4 34

Optimal settings 35

Checl the scenarios to be tested (TBD) 1 Double click on test to see its content 2 Choose which test to be executed and how many times 3 36

DDR Configuration SPD configuration Import/Export data format Validation Tests Memory tests from cores DMA tests Faster/Optimized tests Support for temperature tests (delayed, repeat tests) 3 rd Party debug environment support Support for i.mx, Kinetis and Auto parts. 37

Processor Expert for QorIQ Configuration Suite - http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=pe_qoriq_suite&tid=peh Freescale s Processor Expert landing page http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=processor-expert&tid=peh http://www.processorexpert.com/ Freescale Software & Tools website - http://www.freescale.com/webapp/sps/site/homepage.jsp?code=developer_home Freescale Component Store purchasing embedded software - http://www.freescale.com/webapp/sps/site/homepage.jsp?code=bean_store_main&tid=swnt 38

Freescale on Kaixin Tag yourself in photos and upload your own! Weibo? Please use hashtag #FTF2012# Session materials will be posted @ www.freescale.com/ftf 39