
Table of Contents
IPUG35_05.0, February 2012 3 DDR & DDR2 IP Cores User’s Guide
Chapter 4. IP Core Generation.............................................................................................................29
Licensing the IP Core.......................................................................................................................................... 29
Getting Started .................................................................................................................................................... 29
IPexpress-Created Files and Top Level Directory Structure............................................................................... 31
Generated Files................................................................................................................................................... 32
DDR Memory Controller Core Structure ............................................................................................................. 34
Top-level Wrapper...................................................................................................................................... 34
Encrypted Netlist........................................................................................................................................ 34
I/O Modules................................................................................................................................................ 34
Clock Generator ......................................................................................................................................... 34
Parameter File............................................................................................................................................ 35
Core Header File........................................................................................................................................ 35
Preference Files ......................................................................................................................................... 35
Evaluation Project Files.............................................................................................................................. 35
Simulation Files for Core Evaluation ................................................................................................................... 35
Testbench Top ........................................................................................................................................... 36
Obfuscated Core Simulation Model ........................................................................................................... 36
Command Generator ................................................................................................................................. 36
Monitor ....................................................................................................................................................... 36
TB Configuration Parameter ...................................................................................................................... 36
Memory Model ........................................................................................................................................... 36
Memory Model Parameter.......................................................................................................................... 37
Evaluation Script File ................................................................................................................................. 37
Hardware Evaluation.................................................................................................................................. 37
Enabling Hardware Evaluation in Diamond................................................................................................ 37
Enabling Hardware Evaluation in ispLEVER.............................................................................................. 37
Updating/Regenerating the IP Core .................................................................................................................... 37
Regenerating an IP Core in Diamond ........................................................................................................ 37
Regenerating an IP Core in ispLEVER ...................................................................................................... 38
Chapter 5. Application Support........................................................................................................... 39
Core Implementation........................................................................................................................................... 39
Understanding Preferences ................................................................................................................................ 39
Preference Localization....................................................................................................................................... 39
VREF Assignments ............................................................................................................................................. 40
DLL Allocation ..................................................................................................................................................... 40
I/O Types for DDR............................................................................................................................................... 41
Skew Treatment .................................................................................................................................................. 42
Data Valid Generation......................................................................................................................................... 42
Dummy Logic Removal ....................................................................................................................................... 43
Read Data Auto-Alignment Logic........................................................................................................................ 43
PCB Routing Delay Compensation ..................................................................................................................... 43
Setting read_pulse_tap .............................................................................................................................. 44
DQS_PIO_READ Locate Constraints ................................................................................................................. 44
Obtaining Location Values in Diamond Software....................................................................................... 44
Obtaining Location Values in ispLEVER Software..................................................................................... 45
Troubleshooting .................................................................................................................................................. 47
Chapter 6. Core Verification ................................................................................................................48
Chapter 7. Support Resources............................................................................................................49
Lattice Technical Support.................................................................................................................................... 49
Online Forums............................................................................................................................................ 49
Telephone Support Hotline ........................................................................................................................ 49
E-mail Support ........................................................................................................................................... 49
Local Support ............................................................................................................................................. 49