User guide

4–2 Chapter 4: Compiling and Simulating
Compiling the Design
External Memory Interface Handbook Volume 3 December 2010 Altera Corporation
Section II. DDR3 SDRAM Controller with ALTMEMPHY IP User Guide
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]
1 If your top-level design does not use single bit bus notation for the
single-bit memory interface signals (for example,
mem_dqs
rather than
mem_dqs[0]
), in the Tcl script you should change
set
single_bit {[0]}
to
set
single_bit
{}
.
or