26
ML505/ML506/ML507 Getting Started Tutorial
UG348 (v3.0.2) October 9, 2008
ML50x Demonstrations in Linear Flash
R
ML50
x
Demonstrations in Linear Flash
Linear Flash LCD Demonstration
Description
This demonstration shows the FPGA being configured by an external linear flash device
and a CPLD. This method of download is used in some embedded processor systems
where it is necessary to keep software and bitstream data in one non-volatile device.
Setup
1.
To load a pre-loaded bitstream, change to the corresponding address configuration /
mode dip switches listed below.
Configuration 0:
00001001
Configuration 1:
00101001
Configuration 2:
01001001
Configuration 3:
01101001
2.
Press the
Prog
button.
3.
After the bitstream has loaded, the character LCD should say “Design #
x
Loaded using
Flash,” where x is the bitstream number.
My Own Linear Flash Image Demonstration
Description
This exercise shows you how to store your own design into linear flash and how to program it
onto the FPGA using the Embedded Development Kit (EDK) GUI. A bitstream with a flash
memory interface is provided in the
ml505_lab_resources.zip
file. The
EDK 10.1
flashwriter is used to demonstrate how to overwrite the contents of the linear flash.
To program your own bit file into linear flash:
1.
Extract the
ml505_lab_resources.zip
to your local computer.
Unzip the training lab files to a working directory, name the directory, and make note
of the directory’s name. This directory with the extracted files is referred to as
<
LAB_DIR
> in this tutorial.
2.
In EDK, open the
ml505_bsb_system.xmp
project file.
3.
Open a Xilinx Cygwin Shell. From the EDK GUI menu, select
Project
→
Launch EDK
Shell
4.
Copy the BIT file destined for the linear flash to <
LAB_DIR
>.
cp -p <file_name>.bit .
5.
Create a BIN file to program the linear flash device.
promgen -w -p bin -o <
file_name
>.bin -u 0 <
file_name
>.bit
Example using existing file in ZIP file:
promgen -w -p bin -o flash_hello0.bin -u 0 flash_hello0.bit
6.
Configure the FPGA.
www.BDTIC.com/XILINX