User guide

Chapter 2: Getting Started 2–3
SOPC Builder Flow
December 2010 Altera Corporation External Memory Interface Handbook Volume 3
Section II. DDR3 SDRAM Controller with ALTMEMPHY IP User Guide
6. Click Finish to complete parameterizing the DDR3 SDRAM Controller with
ALTMEMPHY IP and add it to the system.
Completing the SOPC Builder System
To complete the SOPC Builder system, perform the following steps:
1. In the System Contents tab, select Nios II Processor and click Add.
2. On the Nios II Processor page, in the Core Nios II tab, select altmemddr for Reset
Vector and Exception Vector.
3. Change the Reset Vector Offset and the Exception Vector Offset to an Avalon
address that is not written to by the ALTMEMPHY megafunction during its
calibration process.
c The ALTMEMPHY megafunction performs memory interface calibration
every time it is reset, and in doing so, writes to a range of addresses. If you
want your memory contents to remain intact through a system reset, you
should avoid using these memory addresses. This step is not necessary if
you reload your SDRAM memory contents from flash every time you reset
your system.
If you are upgrading your Nios system design from version 8.1 or previous,
ensure that you change the Reset Vector Offset and the Exception Vector
Offset to AFI mode.
To calculate the Avalon-MM address equivalent of the memory address range
0×0
to
0×47
, multiply the memory address by the width of the memory interface data
bus in bytes. Refer to Table 21 for more Avalon-MM addresses.
4. Click Finish.
5. On the System Contents tab, expand Interface Protocols and expand Serial.
6. Select JTAG UART and click Add.
7. Click Finish.
1 If there are warnings about overlapping addresses, on the System menu,
click Auto Assign Base Addresses.
If you enable ECC and there are warnings about overlapping IRQs, on the
System menu click Auto Assign IRQs.
Table 2–1. Avalon-MM Addresses for AFI Mode
External Memory Interface
Width
Reset Vector Offset Exception Vector Offset
8
0
×
60 0
×
80
16
0
×
A0 0
×
C0
32
0
×
120 0
×
140
64
0
×
240 0
×
260