Configuring user ports, Flash music player, Configuring user ports –9 flash music player –9 – Altera Cyclone II FPGA Starter User Manual

Page 31

Advertising
background image

Altera Corporation

4–9

October 2006

Cyclone II FPGA Starter Development Kit User Guide

Using the Control Panel

3.

Specify the number of bytes of data to read from the flash memory
in the Length box. To copy the entire contents of the flash memory
into a file, only checkmark the Entire Flash box without specifying
the number of bytes.

4.

Click on the Load FLASH Content to a File button.

5.

Specify the destination file in the pop-up Windows dialog box.

Configuring User
Ports

The SDRAM, SRAM, and flash memory controllers each have four ports:
a host port to connect to the command controller and three user-selectable
asynchronous ports. These three user ports can connect the memory to
other devices. For example, by connecting the flash controller to the VGA
DAC controller, the user can send an image stored in flash memory to the
VGA output.

Users can connect circuits of their own design to one of the user ports of
the SRAM/SDRAM/flash controllers. After downloading binary data
into the SRAM/SDRAM/flash memories, they can configure the memory
controllers to enable their circuits to read/write the SDRAM/flash
memories though the connected user ports.

The sample applications of a flash music player and a VGA display
illustrate the user port configuration.

Flash Music
Player

In this sample application, music data loads into the flash memory.
Options under the Tools tab of the Control Panel configure user ports.
Through user port Asynchronous 1 of the Flash Controller, the flash
memory sends the music data to the Audio DAC Controller and out to the
audio output jack.

To implement this application perform the following steps:

1.

Erase the flash memory and write a music file into it (refer to

“Sequential Write” on page 4–8

). Use the file music.wav in the

directory CII_Starter_demonstrations\music on the CII Starter
System

CD-ROM.

2.

In the Control Panel, select the TOOLS tab (

Figure 4–6

).

Advertising