Professional Documents
Culture Documents
FPGA-XC3S500E-TRAINER
(USER MANUAL)
CONTENTS
CHAPTER-1 INTRODUCTION 3
CHAPTER-2 SPECIFICATION 4
CHAPTER-1
INTRODUCTION
3. Configuration
Configuration is the process by which the bit streams of a design, as generated by the
development software are loaded into the internal configuration memory of the FPGA.
CHAPTER-2
SPECIFICATION
32 inputs Toggle switches. Each input of these switches has an LED indication.
32 outputs through output ports of FPGA connected to LEDs
16x1 Alpha-numeric LCD display with the backlight.
Four-digit 7-segment dsplays
4x4 key matrix
10 MHz clock and one of four different clocks(5MHz, 1MHz, 500KHz, 100KHz)
On-board multiple DC supply voltage generator
26-PIN FRC Cable for connecting to ALS standard interfaces like ADC, DAC,
Elevator etc
Four sets of 20x2 female berg connector to plug the DAUGHTER BOARD.
SPARTAN-3E XILINX FPGA Daughter
The appropriate program can be downloaded from the PC in to the FPGA on the
daughter board using ALS-DOWNLOADING tool.
There are two types of downloading tools from ALS. These tools are used to program the
FPGAs. These tools connect to JTAG port or Serial port of the daughter board on one end
and to PC parallel port on the other end. It derives power from the target - daughter
board.
Power supply
ALS power supply- PS7 (+5V, 1.5A)
Onboard Regulated power supply +3.3V, +2.5V, +1.5V and +1.2V
CHAPTER-3
HARDWARE DESCRIPTION (BASEBOARD)
This chapter gives a detailed description of the hardware available in the Baseboard. It
facilitates the user to allot various I/Os of the FPGA to the hardware present on this
board.
CN13
CN12
CN11
PB1
LCD DISPLAY
CN2
O/P LED STATUS
16 INPUT SWITCHES
There are four seven-segment LED displays in the trainer. The I/Ps SEG-A to SEG-DP are
multiplexed O/Ps of the FPGA/CPLD. Any of the four digits can be selected using AN1 to
AN4 signals. These segments are active low ON i.e., they are common-anode type.
The connection details of the 7 segment LED display are as mentioned below.
PIN DETAILS
Signal CN14 Connector
AN1 PIN 2
AN2 PIN 3
AN3 PIN 4
AN4 PIN 5
SEG1 PIN 8
SEG2 PIN 9
SEG3 PIN 11
SEG4 PIN 12
SEG5 PIN 15
SEG6 PIN 16
SEG7 PIN 18
SEG8 PIN 19
NOTE: To enable the 7-segment display, ensure that the CN12 and CN13 connectors are
short through a 10-Pin FRC connector.
3.2 LEDs
There are totally 64 LEDs present in the trainer, 32 I/P LEDs indicate the 32 toggle switch
status (GREEN from 1 to 32) and 32 O/P LEDs (RED from 1 to 32) that can be assigned to
FPGA outputs for monitoring. These LEDs are active high type, i.e., they switch ON to
indicate a logical ‘1’ status.
PIN DETAILS
Signal CN14 Connector
OPLED 1 PIN 19
OPLED 2 PIN 21
OPLED 3 PIN 23
OPLED 4 PIN 25
OPLED 5 PIN 27
OPLED 6 PIN 29
OPLED 7 PIN 31
OPLED 8 PIN 33
OPLED 9 PIN 35
OPLED 10 PIN 37
Signal CN15 Connector
OPLED 11 PIN 5
OPLED 12 PIN 7
OPLED 13 PIN 9
OPLED 14 PIN 11
OPLED 15 PIN 13
OPLED 16 PIN 15
OPLED 17 PIN 23
OPLED 18 PIN 25
OPLED 19 PIN 27
OPLED 20 PIN 29
OPLED 21 PIN 31
OPLED 22 PIN 33
OPLED 23 PIN 35
Signal CN16 Connector
OPLED 24 PIN 3
OPLED 25 PIN 5
OPLED 26 PIN 7
OPLED 27 PIN 9
OPLED 28 PIN 11
OPLED 29 PIN 13
OPLED 30 PIN 15
OPLED 31 PIN 17
OPLED 32 PIN 19
There is a Push button switch, which is provided to generate mono pulses. It generates an active
low pulse.
The Push button that is provided on the Baseboard could be used as RESET, CLK etc depending
on the application.
PIN DETAILS
Signal CN16 Connector
PSB1 PIN 38
There are 32 toggle switches provided on the baseboard, which are connected to 32 inputs LEDs
(GREEN from 1 to 32) and to the connectors connecting the Daughter Board. TOGGLE switches
are represented on baseboard from SW1 through SW32.
PIN DETAILS
Signal CN14 Connector
TS1 PIN 20
TS2 PIN 22
TS3 PIN 24
TS4 PIN 26
TS5 PIN 28
TS6 PIN 30
TS7 PIN 32
TS8 PIN 34
TS9 PIN 36
TS10 PIN 38
Signal CN15 Connector
TS11 PIN 6
TS12 PIN 8
TS13 PIN 10
TS14 PIN 12
TS15 PIN 14
TS16 PIN 16
TS17 PIN 24
TS19 PIN 28
TS20 PIN 30
TS21 PIN 32
TS22 PIN 34
TS23 PIN 36
Signal CN16 Connector
TS18 PIN 37
TS24 PIN 4
TS25 PIN 6
TS26 PIN 8
TS27 PIN 10
TS28 PIN 12
TS29 PIN 14
TS30 PIN 16
TS31 PIN 18
TS32 PIN 20
The baseboard consists of 4X4 matrix Pushbuttons, which could be used as the inputs to the
Daughter Boards.
PIN DETAILS
Signal CN16 Connector
PB1 PIN 22
PB2 PIN 23
PB3 PIN 24
PB4 PIN 25
PB5 PIN 26
PB6 PIN 27
PB7 PIN 28
PB8 PIN 29
The ALS FPGA/CPLD trainer has a 16 X 1 Alphanumeric LCD display with backlight on the
Baseboard. The connection details is as shown in the table below.
PIN DETAILS
Signal CN14 Connection
RS PIN 9
RW PIN 10
EI PIN 11
DT0 PIN 12
DT1 PIN 13
DT2 PIN 14
DT3 PIN 15
NOTE:To enable the LCD display, ensure that the connector CN11 and CN12 are shorted
through a 10-Pin FRC connector.
CHAPTER-4
DAUGHTER BOARD (FPGA - XILINX)
INTRODUCTION
The Spartan™-3E family of Field-Programmable Gate Arrays is specifically designed to
meet the needs of high volume, Cost-sensitive consumer electronic applications. The eight-
member family offers densities ranging from 50,000 to five million-system gates. Because of their
exceptionally low cost, Spartan-3E FPGAs are ideally suited to a wide range of consumer
electronics applications, including broadband access, home networking, display/projection and
digital television equipment.
Features:
Power supply +3.3V, 2.5V and 1.2V are provided from the Baseboard.
The SPARTAN-3E FPGA of XILINX uses SRAM technology. SPARTAN-3E devices support both
serial configurations, using the master/slave serial and JTAG modes, as well as byte-wide
The trainer allows the user to choose two configuration modes among the above four, the Master
serial mode and Boundary-scan mode.
NOTE:
Usage of PROM is optional, if the PROM is used, user has to go for Master serial mode,
which is, as given below otherwise user has to configure through Boundary-scan mode.
For master serial mode configuration, a serial PROM (17xx or 18xx family) has to be used.
Initially program is loaded to the serial PROM, and then by using the PROM the IC is configured.
Connectors are provided to mount a Daughter board containing serial PROM. In Master modes,
the FPGA addresses an external PROM or EPROM storage device, and reads data from it. No
additional timing or control signals are used.
For boundary-scan mode of programming, a 10-PIN FRC connector is provided. In this mode
PROM is not used and the program is directly loaded to the IC through a JTAG connector. The
programming board would be configured using a PC.
FPGA contains SRAM memory for configuration, thus the configuration is lost when the power is
switched OFF. The FPGA is configured after the power ON by various means like JTAG, serial
modes.
The CN1 JTAG connector on the Daughter board is used to configure the FPGA or to program the
optional Xilinx PROM XCF04s-V020c. The JTAG cable is connected to the board through CN1 at
one end and other end to the 10-pin FRC connector of JTAG parallel adapter from the PC parallel
port.
NOTE: The JP1 jumper provided on the FPGA Daughter board for mode selection, which
is as tabulated below.
1 +3.3V
2 GND
3 GND
4 TCK
5 TMS
6 TDO
7 TDI
8 NC
9 GND
10 NC
10,17,27,37,52,53,70, GND
79,84,85,95,156,141,
131,121,105,208,198,188,182,
173
21,38,46,59,73,88,143,125,114, +3.3V
201,191,176
7,44,66,92,149,111,195,166 +2.5V
13,67,117,170 +1.2V
81,86 MODE
87 DIN
104 DONE
1 PROG
207 TDI
158 TCK
155 TMS
157 TD0
103 CCLK
PROG SWITCH
This Daughter Board provides a Push button switch for initiating the configuration of the FPGA if
only when the PROM is used. This switch is used to configure FPGA from the already programmed
ISP PROM. Upon activation of the PROG signal the ISP PROM initiates the configuration of the
FPGA.
DONE LED
This LED is used on the FPGA Daughter Board to indicate that the configuration of FPGA has
occurred.
R PIN30 PIN147
G PIN31 PIN150
B PIN32 PIN151
HS PIN33 PIN152
VS PIN34 PIN153
CHAPTER 5
For physical verification of the code, user has to follow VLSI design flow, which is as follows.
1 Design entry
2. Synthesis
3. Gate level simulation
4. Implementation
5. Programming
Design entry
In this, the user can write HDL code either in VHDL or verilog. There are mainly two types which
user has to specify.
Entity
Architecture
Synthesis
Synthesis is a process of conversion of HDL code to Gate level net list of the design. Net list is the
connectivity description of gate level circuit. Synthesis is a target technology dependent issue,
hence user has to specify the target / device correctly including its package type and speed grade.
After synthesis EDA tool will generate EDIF/XNF file.
Simulation
In simulation the user can verify the functionality of design after synthesis. This simulation is also
called gate level simulation. In this user can select required input and output signals, and simulate
Any wrong results obtained from the program have to be rectified by modifying HDL code, re-
synthesis and simulate till user gets desired results.
Implementation
This is also called place and route. Before implementation of design, user must write the UCF
(user constraint file) that describes the pin locking of input and output signals.
At the time of implementation set the UCF file to place and route tool to implement the design and
fix the Input/Output signals as per design requirement.
User can get the gate consumption and pin diagram details by referring the implementation
reports.
Programming
Programming is the process of downloading the final bit file generated by the tool into the target
device. Interface the target device to parallel port of computer through an ALS XILINX
downloading tool.
Select the cable type viz. parallel. Once the cable is sensed then, download the design by using
download option. If the device is configured properly the green LED (Done) given on the FPGA
board will glow indicating proper configuration of the device.
CHAPTER 6
PROGRAMMING PROCEDURE FOR FPGA
FIRST WINDOW
21. In the first text box: Enter the name of the project
22. In the second text box: Enter the path of the program
23. In the third text box: Enter the TOP LEVEL MODULE TYPE as
‘HDL’
SECOND WINDOW: Select the Device and Design flow for the project
In this window following texts are shown. Select the following options present on the right side of
the window.
Click on ‘NEXT’, successively for 3 times and then Press ‘FINISH’. After this, user will
automatically get in to Main window
In the Main window, go to PROJECT MENU, Select NEW SOURCE. A Third window is opened.
DESIGN DOWNLOADING
The ALS FPGA Trainer supports multiple methods of configuring the FPGA. The JTAG port
on the Daughter Board can be used to directly configure the FPGA. The slave serial port on this
Daughter Board can also be used to configure the FPGA.
JTAG interface
The JTAG connector present on the corresponding Daughter Board can be used to
configure the FPGA. The JTAG connector present on the DAUGHTER BOARD is connected to the
downloading tool XILINX. The other end of the downloading tool is connected to the PC parallel
port.
Connect one end of a 10-pin FRC cable to the DAUGHTER BOARD (JTAG for
FPGA) and other end to the 10 PIN FRC connector of JTAG parallel adapter,
the other end of which connects to the PC parallel port.
Short the mode selection jumpers for boundary scan mode i.e. short pins 1
and 2 of JP1 for FPGA.
Run Xilinx JTAG programmer (impact) utility to load the design bit file into
the SPARTAN-3E FPGA.
Click Boundary scan mode.
Clicks automatically connected to cable and identify boundary scan chain
Select the *.bit file for FPGA.
Right click on the device and click program to configure FPGA.
Done LED lights up when programming is succeeded in FPGA.
15. File generation summary will open and then Click on next
16. Click on ADD file
17. Select the bit file to convert as mcs file.
18. Click finish to start generating file.
19. Connect one end of a 10-pin FRC cable to the DAUGHTER BOARD JTAG and other end to
the 10 PIN FRC connector of JTAG parallel adapter, the other end of which connects to the
PC parallel port.
20. Short the 1 and 2 pins of jumper JP1
21. Download the .mcs file into PROM.
22. Right click on the device and click program to configure FPGA-PROM.
23. After downloading short the pins 2 and 3 of JP1
24. Press PROG switch to configure the IC. A done LED will light UP When FPGA is configured
successfully.
NOTE: while generating bit file ensure that the Start up clock is connected to the CCLK clock.