Upload
lakprab
View
251
Download
2
Embed Size (px)
Citation preview
7/31/2019 Working With Spartan Board- Xilinx
1/20
7/31/2019 Working With Spartan Board- Xilinx
2/20
FPGA Physical Description
1. VGA (HD-15) Monitor Port2. 9-pin (DB-9)
3. Power Connector4. A1 Expansion Port
5. A2 Expansion Port6. B1 Expansion Port
7. PS/2 Port8. Seven Segment Displays
9. Switches (8)10. Buttons (4)
11. LEDs (8)12. Power LED
13. Spartan 3 FPGA Core14. Program LED (Lit when the FPGA is programmed)
15. JTAG Port (used to program the FPGA)
4 5
3
1
2
14
12
15
13
8
6
9107
11
7/31/2019 Working With Spartan Board- Xilinx
3/20
Programming Xilinx Board (Spartan 3) Tutorial Using
ISE 8.1i
IntroductionThis tutorial shows you how to program Spartan 3 FPGA board using Xilinx ISE
8.1i. As an example, a half adder circuit will be implemented on the Spartan 3 board.
The tutorial begins by showing you how to create a new project and how to describe thedigital circuit in VHDL. After the circuits functionality has been verified, it is then
downloaded to the Spartan 3 board for implementation. You are encouraged to try outthe examples before embarking on any exercise.
Creating a new Project and Source
Start the Xilinx ISE 8.1i project navigator by double clicking the Xilinx ISE 8.1i icon onyour desktop.
Xilinx ISE 8.1i.lnk
Click on File and select New Project
7/31/2019 Working With Spartan Board- Xilinx
4/20
Select a project location and type the name you would like to call your projectHalfAdder:
ClickNext
Select the device family, device, package, and speed grade as shown below:
ClickNext
7/31/2019 Working With Spartan Board- Xilinx
5/20
ClickNew Source
Select VHDL Module in the New Source Wizard window:
ClickNext
7/31/2019 Working With Spartan Board- Xilinx
6/20
Specify the inputs and outputs of your design (HalfAdder). This is used to generate atemplate for your VHDL code.
ClickNext
ClickFinish if you are satisfied your specifications shown in the summary page
7/31/2019 Working With Spartan Board- Xilinx
7/20
ClickNext
ClickNext
7/31/2019 Working With Spartan Board- Xilinx
8/20
Verify the information on the Project Summary window:
ClickFinish.
Double-click on HalfAdder-Behavioral(HalfAdder.vhd) tab in the Sources pane.
7/31/2019 Working With Spartan Board- Xilinx
9/20
Include an enable input in your entity and it should be 1 bit wide.Complete the architectural part of your VHDL code.
7/31/2019 Working With Spartan Board- Xilinx
10/20
Specify the pins you would like the inputs and outputs to be connected to.
Double-click on Assign Package Pins in the Process pane in the left of the window.
Note: You may be asked to save your VHDL code. Your design will be checked for
syntax error. If you have any error, make sure you fix them before proceeding.
ClickYes.
7/31/2019 Working With Spartan Board- Xilinx
11/20
ClickYes.
The Pace editor is loaded.
You can select Package View tab at the bottom of the right pane. The package viewgives a better view of the physical FPGA package).
7/31/2019 Working With Spartan Board- Xilinx
12/20
Type in the desired pin names for each signal in the Design Object List at the left in
the Loc column
ClickFile and Save.
ClickFile and Exit.Note: The following dialog may appear when saving the file:
Click on Dont show this dialog again.
ClickOk.
7/31/2019 Working With Spartan Board- Xilinx
13/20
View the UCF file by double-clicking Edit Constraints (Text) in the project Navigatorwindow.
7/31/2019 Working With Spartan Board- Xilinx
14/20
Programming the BoardIn the Project Navigator window, double-click on HalfAdder-Behavioral (HalfAdder)tab in the Sources pane.
7/31/2019 Working With Spartan Board- Xilinx
15/20
Right-click on Generate Programming File in the Processes pane.
Select Properties.
In the Process Properties windows, Select Startup Options tab.
Change FPGA Start-UP Clock to JTAG Clock
7/31/2019 Working With Spartan Board- Xilinx
16/20
ClickApply.
ClickOk.
In the Processes window, click on the + sign by Generate programming file.Double-click on Configure Device (iMPACT). This opens the iMPACT tool and a
wizard for creating a new configuration.
7/31/2019 Working With Spartan Board- Xilinx
17/20
ClickFinish.
7/31/2019 Working With Spartan Board- Xilinx
18/20
Assign New Configuration File window opens. Select the name of your select the.bit file (HalfAdder.bit).
ClickOpen.
clickBypass.
7/31/2019 Working With Spartan Board- Xilinx
19/20
You will now be at the main iMPACT window:
Right-click on the FPGA (xc3s200).
select Program.
7/31/2019 Working With Spartan Board- Xilinx
20/20
Make sure that Verify is not checked.
ClickApply.ClickOk.
The FPGA is now being programmed as shown: