Page 38
Example Project Walkthrough
AN 436: Using DDR3 SDRAM in Stratix III and Stratix IV Devices
© November 2008
Altera Corporation
1
The Altera generic “auto-generated” DDR3 memory model does not support all
DDR3 features. The auto-generated generic DDR3 memory model works correctly in
Quick Calibration mode as this model supports burst length of 4 and 8. This
auto-generated model does not work in Full Calibration mode as the model does not
support multipurpose register (MPR) readout required for DDR3 calibration. You
must replace the Altera generic DDR3 memory model with a vendor’s component
models for Full Calibration mode.
shows generation messages including tips on Quartus II settings.
Add Constraints
After instantiating the
DDR3 SDRAM High-Performance Controller
, the
ALTMEMPHY megafunction generates the constraints files for the example design.
Apply these constraints to the design before compilation.
Add Timing Constraints
When you instantiate an SDRAM high-performance controller, it generates a timing
constraints file,
<variation_name>
_phy_ddr_timing.sdc
. The timing constraint file
constrains the clock and input and output delay on the SDRAM high-performance
controller.
To add timing constraints, follow these steps:
1. On the Assignments menu click
Settings
.
2. In the
Category
list, expand
Timing Analysis Settings
, and select
TimeQuest
Timing Analyzer
.
3. Select the
<variation_name>
_phy_ddr_timing.sdc
file and click
Add
.
4. Click
OK
.
Add Pin and DQ Group Assignments
The pin assignment script, <
variation_name
>
_pin_assignments.tcl
, sets up the I/O
standards for the DDR3 SDRAM interface. It also launches the DQ group assignment
script, <
variation_name
>
_phy_assign_dq_groups.tcl
, which relates the
DQ
and
DQS
pin groups together for the fitter to place them correctly in the Quartus II software.
Figure 12.
Generation