beautypg.com

Fpga configuration from flash memory –11 – Altera Cyclone IV GX Transceiver Starter Board User Manual

Page 19

background image

Chapter 2: Board Components

2–11

Configuration, Status, and Setup Elements

© March 2010 Altera Corporation

Cyclone IV GX Transceiver Starter Board Reference Manual

Flash Memory Programming

Flash memory programming is possible through a variety of methods using the
Cyclone IV GX device.

The default method is to use the factory design called the Board Update Portal. This
design is an embedded webserver, which serves the Board Update Portal web page.
The web page allows you to select new FPGA designs including hardware, software,
or both in an industry-standard S-Record File (.flash) and write the design to the user
hardware page (page 1) of the flash memory over the network.

The secondary method is to use the pre-built parallel flash loader (PFL) design
included in the starter kit. The starter board implements the Altera PFL megafunction
for flash memory programming. The PFL megafunction is a block of logic that is
programmed into an Altera programmable logic device (FPGA or CPLD). The PFL
functions as a utility for writing to a compatible flash memory device. This pre-built
design contains the PFL megafunction that allows you to write either page 0, page 1,
or other areas of flash memory over the USB interface using the Quartus II software.
This method is used to restore the starter board to its factory default settings.

Other methods to program the flash memory can be used as well, including the
Nios

®

II processor.

f

For more information on the Nios II processor, refer to the

Nios II Processor

page of

the Altera website.

FPGA Configuration from Flash Memory

On either power-up or by pressing the PGM configure push-button switch (S1), the
MAX

II CPLD EPM2210 System Controller's PFL configures the FPGA from the flash

memory hardware page 0 or 1 based on whether PGM_LED0 or PGM_LED1 is
illuminated.

Table 2–8

defines the hardware page that loads when the PGM configure

push-button switch (S1) is pressed. The PFL megafunction reads 16-bit data from the
flash memory and converts the data to PS format. This 1-bit data is then written to the
FPGA's dedicated configuration pins during configuration.

There are two pages reserved for the FPGA configuration data. The factory hardware
page is considered page 0 and is loaded upon power-up if the USER_PGM DIP switch
(S8) is set to '0'. Otherwise, the user hardware page 1 is loaded. Pressing the PGM
configure push-button switch (S1) loads the FPGA with a hardware page based on
which PGM_LED[1:0] (D3, D4) LED is illuminated.

Table 2–8

defines the hardware

page that loads when the PGM configure push-button switch (S1) is pressed.

Table 2–8. PGM Configure Push-Button Switch (S1) LED Settings

(Note 1)

PGM_LED0

PGM_LED1

Design

ON

ON

Factory hardware

ON

OFF

User hardware 1

OFF

ON

User hardware 2

Note to

Table 2–8

:

(1) ON indicates that the LED is illuminated while OFF indicates that the LED is not illuminated.