Beruflich Dokumente
Kultur Dokumente
CONTENTS
CHAPTER 1 ABOUT THIS GUIDE ..................................................................................................3
1.1 INTRODUCTION ...............................................................................................................................3
1.2 DE4 DEVELOPMENT KIT CONTENTS ...............................................................................................3
1.3 KEY FEATURES ...............................................................................................................................4
1.4 BEFORE YOU BEGIN .......................................................................................................................6
CHAPTER 2 SOFTWARE INSTALLATION.......................................................................................7
2.1 SOFTWARE INSTALLATION...............................................................................................................7
2.2 INSTALLING THE ALTERA COMPLETE DESIGN SUITE .......................................................................7
2.3 INSTALLING THE DE4 DEVELOPMENT BOARD CONTENTS ..............................................................8
2.4 INSTALLING THE USB-BLASTER DRIVER ........................................................................................8
CHAPTER 3 DEVELOPMENT BOARD SETUP .............................................................................12
3.1 INTRODUCTION .............................................................................................................................12
3.2 POWERING UP THE DE4 BOARD ....................................................................................................12
3.3 FAN INSTALLATION .......................................................................................................................14
3.4 USING THE THCB-HMF2.............................................................................................................14
3.5 PLUGGING AN EXTERNAL PCIE POWER CONNECTOR .....................................................................15
CHAPTER 4 PROGRAMMING THE STRATIX IV GX DEVICE ON THE DE4 BOARD ...........17
4.1 INTRODUCTION .............................................................................................................................17
CHAPTER 5 PROGRAMMING THROUGH THE FLASH MEMORY DEVICE...........................20
5.1 INTRODUCTION .............................................................................................................................20
5.2 CFI FLASH MEMORY MAP ............................................................................................................20
5.3 PREPARING DESIGN FILES FOR FLASH PROGRAMMING ...................................................................21
5.4 PROGRAMMING FLASH MEMORY USING THE BOARD UPDATE PORTAL .........................................22
5.5 PROGRAMMING FLASH DEVICE EXAMPLE ....................................................................................24
5.6 PROGRAMMING FLASH MEMORY USING PROGRAM_FLASH.BAT ...................................................30
Chapter 1
1.1 Introduction
The DE4 Development Board enables hardware and software developers to create or
evaluate designs targeting to two available Stratix IV GX devices, EP4SGX230 or
EP4SGX530. It provides a development environment for system designs that demand
high-performance, serial connectivity and advanced memory interfacing.
The DE4 board features many embedded processing systems that include: DDR2
SODIMM memory, an 8-lane PCI Express interface, Serial ATA ports, Ethernet PHY,
and general purpose I/O. The DE4 is supported by multiple targeted reference designs
in addition to High Speed Mezzanine Card (HSMC) connectors that allow scaling and
customization with HSMC daughter cards.
Other Accessories
Fan (Installed)
SATA cable x2
2G SD Card
PCIe bracket
Featured device
o Altera Stratix IV GX FPGA (EP4SGX230C2/EP4SGX530C2)
4
Memory
o DDR2 SO-DIMM socket
o FLASH
o SSRAM
o SD Card socket
o I2C EEPROM
Clock system
o On-board clock oscillators: 50MHz and 100MHz
o SMA connectors for external clock input
o SMA connectors for clock output
Other interfaces
o USB 2.0 high-speed host/device OTG
o Current sensor for FPGA current measurement
o Temperature sensor
Chapter 2
Software Installation
2.1 Software Installation
Introduction
This section explains how to install the following software:
DE4 kit only includes installation files for the Quartus II Subscription Edition
Software v9.1. To download Service Pack 2 for Quartus II Subscription Edition,
please refer to the following link (https://www.altera.com/support/software/download
/service_packs/quartus/dnl-qii91sp2.jsp).
Directory Name
Description of Contents
UserManual
Demonstrations
Datasheet
Schematic
Tools
cable from the DE4 board to the PC and the Found New Hardware Wizard
window will appear if no USB-blaster driver was installed before.
Find the appropriate driver located in \<Quartus II system directory>\drivers\usbblaster. Click OK and from the returning window, click Next to install the driver.
At this point the installation will commence, but a dialog box shown below will
appear indicating the driver has not pass the Windows Logo testing. Click Continue
Anyway.
10
11
Chapter 3
12
13
14
Locate the PCIe power cable and the PC power supply with 6-pin PCIe power
connector (not supplied).
15
2.
Connect the 6-pin PCIe external power connector to the PC power supply.
3.
Connect the 8-pin PCIe external power connector to the 8-pin power input (J4)
of the DE4.
4.
16
Chapter 4
17
18
8. Click Add File to select the .sof file and click Open.
9. Turn on the Program/Configure option that corresponds to the .sof file and click
Start which will automatically download the file onto the DE4 board shown
below.
19
Chapter 5
Block Description
Size
Address Range
32KB
0x00000000 0x00007FFF
32KB
0x00008000 0x0000FFFF
Board information
32KB
0x00010000 0x00017FFF
32KB
0x00018000 0x0001FFFF
24,576KB
0x00020000 0x0181FFFF
8,192KB
0x01820000 0x0201FFFF
Unused
Unused
Unused
Unused
22
The Board Update Portal is located in the DE4 System CD under the directory
de4_board-update_portal. Using the Board Update Portal, the .flash file can be
programmed onto the flash memory. The flash base address is 0x08000000.
Programming Flash Memory Using the Nios II EDS
The following .flash files are created once the conversion is complete:
<your_file>_hw.flash hardware image file
<your_file >_hw.map.flash PFL option bit information file
<your_file >_sw.flash software image file
The Nios II EDS offers a nios2-flash-programmer utility to program the flash memory
directly. To program the .flash files or any compatible S-Record File (.srec) to the
board using nios2-flash-programmer, perform the following steps:
1. Open Quartus II software and launch the Quartus II Programmer (Tools >
Programmer) to configure the FPGA with a .sof capable of flash programming
23
24
Conversion is complete.
25
26
After conversion is complete, the following .flash files are created below:
4. Next, we are ready to program the .flash files onto the flash memory.
a1. Launch the Quartus II Programmer to configure the FPGA with a .sof capable
of flash programming.
a2. Click Add File and select <CD-ROM_dir>\demonstrations\de4_<Stratix
device>de4_board_update_portal\de4_board_update_portal.sof
a3. Turn on the Program/Configure option for the added file.
a4. Click Start to download the selected configuration file to the FPGA.
Configuration is complete when the progress bar reaches 100%.
27
a5. On the Windows Start menu, click All Programs > Altera > Nios II EDS >
Nios II Command Shell.
he Nios II command shell, navigate to the work directory (or to the
a6. In the
directory of the .flash files you created) and type the following Nios II EDS
command:
nios2-flash-programmer --base=0x08000000 de4_hw.flash.
28
a7. From the de4_hw.map.flash file, insert the following to the last line
S21501808003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6, and save.
a9. After programming completes, if you have a software file to program, type the
following Nios II EDS command:
nios2-flash-programmer --base=0x08000000 de4_sw.flash.
29
30
Before you use the program_flash.bat batch file to program the flash memory, make
sure the DE4 is turned on and USB cable is connected to the USB blaster port (J5). In
addition, place the .sof and .elf file you wish to program/convert in the Program_flash
directory.
Programming Flash Memory with .sof using Program_flash.bat
1. Launch the program_flash.bat batch file.
2. The flash program tool shows the menu options.
3. Select option 2.
31
5. The following lines will appear during flash programming: Extracting Option bits
SREC, Extracting FPGA Image SREC, and Deleting intermediate files. If
these lines dont appear on the windows command, programming on the flash
memory is not successfully setup. Please make sure Quartus II 9.1 SP2 and Nios II
9.1 IDE SP2 or later is used.
32
6. Erasing flash.
33
7. Programming flash.
8. Programming complete.
34
Additional Information
Revision History
Version
Change Log
V1.0
35