Altera DDR SDRAM High-Performance Controllers and ALTMEMPHY IP User Manual

Page 44

Advertising
background image

4–2

Chapter 4: Compiling and Simulating

Compiling the Design

External Memory Interface Handbook Volume 3

June 2011

Altera Corporation

Section I. DDR and DDR2 SDRAM Controllers with ALTMEMPHY IP User Guide

1. Set up the TimeQuest timing analyzer:

a. On the Assignments menu, click Timing Analysis Settings, select Use

TimeQuest Timing Analyzer during compilation

, and click OK.

b. Add the Synopsys Design Constraints (.sdc) file,

<variation name>_phy_ddr_timing.sdc, to your project. On the Project menu,
click Add/Remove Files in Project and browse to select the file.

c. Add the .sdc file for the example top-level design,

<variation name>_example_top.sdc, to your project. This file is only required if
you are using the example as the top-level design.

2. You can either use the <variation_name>_pin_assignments.tcl or the

<variation_name>.ppf file to apply the I/O assignments generated by the
MegaWizard Plug-In Manager. Using the .ppf file and the Pin Planner gives you
the extra flexibility to add a prefix to your memory interface pin names. You can
edit the assignments either in the Assignment Editor or Pin Planner. Use one of the
following procedures to specify the I/O standard assignments for pins:

If you have a single SDRAM interface, and your top-level pins have default
naming shown in the example top-level file, run
<variation name>_pin_assignments.tcl.

or

If your design contains pin names that do not match the design, edit the
<variation name>_pin_assignments.tcl file before you run the script. To edit the .tcl
file, perform the following steps:

a. Open <variation name>_pin_assignments.tcl file.

b. Based on the flow you are using, set the sopc_mode value to Yes or No.

SOPC Builder System flow:

if {![info exists sopc_mode]} {set sopc_mode YES}

MegaWizard Plug-In Manager flow:

if {![info exists sopc_mode]} {set sopc_mode NO}

c. Type your preferred prefix in the pin_prefix variable. For example, to add the

prefix my_mem, do the following:

if {![info exists set_prefix}{set pin_prefix “my_mem_”}

After setting the prefix, the pin names are expanded as shown in the following:

SOPC Builder System flow:

my_mem_cs_n_from_the_

<your instance name>

MegaWizard Plug-In Manager flow:

my_mem_cs_n[0]

Advertising
This manual is related to the following products: