Introduction to FPGA – Spartan-3E FPGA Starter Kit Board

Introduction to FPGA Programming
41
Xilinx Spartan-3E
Project Navigator Version 12.4
8.
The
Assign New Configuration File
window will appear (Figure 31). Select the file
“top_level.bit”, and click
Open
. This associates the file top_level.bit with the
xc3s500e.
Figure 31: iMPACT window, assigning the configurati
on file for the xc3e500e.
Tutorial 1: Introduction to FPGA Programming
42
Xilinx Spartan-3E
Project Navigator Version 12.4
9.
A message stating “This device supports attached fl
ash PROMs. Do you want to attach an SPI or
BPI PROM to this device?” will appear (Figure 32).
This is not needed for this design. Click
No
.
Figure 32: iMPACT window, dialog box asking if we w
ish to attach an SPI or BPI PROM.
Tutorial 1: Introduction to FPGA Programming
43
Xilinx Spartan-3E
Project Navigator Version 12.4
10.
The
Assign New Configuration File
window will appear again (Figure 33). In this ca
se click
Bypass
. This ensures that the xcf04s is bypassed.
Figure 33: iMPACT window, bypassing the xcf04s.
Tutorial 1: Introduction to FPGA Programming
44
Xilinx Spartan-3E
Project Navigator Version 12.4
11.
The
Assign New Configuration File
window will appear yet again (Figure 34). Again
click
Bypass
. This ensures that the xc2c64a is bypassed.
Figure 34: iMPACT window, bypassing the xc2c64a.
Tutorial 1: Introduction to FPGA Programming
45
Xilinx Spartan-3E
Project Navigator Version 12.4
12.
A window entitled
Device Programming Properties – Device 1 Programmin
g Properties
will
appear (Figure 35). Click
OK
.
Figure 35: iMPACT window, Device Programming Proper
ties dialog box.
Tutorial 1: Introduction to FPGA Programming
46
Xilinx Spartan-3E
Project Navigator Version 12.4
13.
The iMPACT window should now appear as shown in Fig
ure 36. Right click on the xc3e500e
chip (Figure 37) and select
Program
.
Figure 36: iMPACT window, showing the device chain.
Figure 37: iMPACT window, options which appear when
right clicking on the xc3s500e.
Tutorial 1: Introduction to FPGA Programming
47
Xilinx Spartan-3E
Project Navigator Version 12.4
14.
The program should now be downloaded to the Spartan
-3E board. After the download is
complete, the message “Program Succeeded” will appe
ar in a blue box (Figure 38).
Figure 38: iMPACT window, after the program has bee
n successfully downloaded to the
Spartan-3E board.
Tutorial 1: Introduction to FPGA Programming
48
Xilinx Spartan-3E
Project Navigator Version 12.4
3.9 Running the Program on the Spartan-3E Board
The Spartan-3E board after downloading the program
is shown in Figure 39. Note that the
appearance of the LCD screen may differ from what i
s shown. The LCD screen will normally
continue to display whatever was being displayed at
the instant the new program was downloaded.
In this case, the program that was running was the
startup program that is shipped with the board,
which displays a scrolling message on the LCD scree
n. The LCD screen is not used in this tutorial.
Figure 39: The Spartan-3E board with the program ru
nning.
Now the program can be tested on the Spartan-3E. F
or the slider switches, SW0, SW1, SW2 and
SW3, the switch in the UP position indicates that t
he switch is on. LD0 should switch on when either
SW0 or SW1 are on. LD1 should switch on when eithe
r SW2 or SW3 are on. LD2 should switch on
when ((SW0 or SW1) and (SW2 or SW3)) is true. Fina
lly LD3 should switch on when either
BTN_East or BTN_North are pressed.