Page 1
Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 2
Xilinx reserves the right to make changes, at any time, to the Design as deemed desirable in the sole discretion of Xilinx. Xilinx assumes no obligation to correct any errors contained herein or to advise you of any correction if such be made. Xilinx will not assume any liability for the accuracy or correctness of any engineering or technical support or assistance provided to you in connection with the Design.
... . . 22 Spartan-3A/3AN FPGA Features and Embedded Processing Functions ..22 Other Spartan-3 Generation Development Boards ......23 Spartan-3A and Spartan-3AN FPGAs .
Page 4
............49 Entry Mode Set www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 6
......... . 114 www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 7
............141 Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com...
Page 8
Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 9
There are multiple versions of the Spartan-3A/3AN Starter Kit. This document describes the three kits that include the “Revision D” Spartan-3A/3AN Starter Kit Board, which is an updated version of the “Revision C” Spartan-3A Starter Kit Board. The following table describes the different kits.
Preface: About This Guide Board Revision Code REV C UG334_01_052707 Acknowledgments Xilinx wishes to thank the following companies for their support of the Spartan-3A/3AN Starter Kit board: • STMicroelectronics for the 32 Mbit parallel NOR Flash and 16 Mbit SPI serial Flash memories •...
To find additional documentation, see the Xilinx website at: http://www.xilinx.com/literature. To search the Answer Database of silicon, software, and IP questions and answers, or to create a technical support WebCase, see the Xilinx website at: http://www.xilinx.com/support. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com...
Page 12
Preface: About This Guide www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Spartan-3A or Spartan-3AN FPGA application. Getting Started The Spartan-3A/3AN Starter Kit board is ready for use, right out of the box. The design stored in external Flash exercises the various I/O devices, such as the VGA display and serial ports.
Page 14
UG334_c1_02_052707 Figure 1-2: Default Jumper Settings for Starter Kit Board For more information on the demonstration design, visit the Design Examples web page: • Spartan-3A/3AN Starter Kit Demo Design Overview www.xilinx.com/products/boards/s3astarter/reference_designs.htm#demo • Restoring the “Out of the Box” Flash Programming www.xilinx.com/products/boards/s3astarter/reference_designs.htm#out...
UG330_c1_03_032207 Figure 1-3: Rotating/Zooming Graphics, Menu System Displayed on VGA Screen Rotary Knob/Push-Button Menu System The Spartan-3A/3AN Starter Kit board demonstration design uses the rotary knob and surrounding push-button switches, shown in Figure 2-5, page 27, to implement a menu system.
Figure 1-4: Rotary Knob/Push-Button Menu System Select MultiBoot Configuration Image Spartan-3A/3AN FPGAs support a selectable MultiBoot configuration interface. If the FPGA configures in one of its Master configuration modes, then the FPGA always loads the configuration image stored at address 0 in Flash at power-up, or whenever the PROG_B button is pressed.
In this mode, rotate the knob to control the speaker output volume. Press any of the four push-button switches to restart the AutoPilot function. Press the rotary knob to change to the “Select MultiBoot Configuration Image” mode. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Suspend mode reduces FPGA power consumption while preserving the present state of the FPGA application and the FPGA’s configuration data. Set the SUSPEND switch to RUN or SUSPEND as described in “SUSPEND Switch,” page www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Press a number key on the PC to load the associated MultiBoot bitstream listed in Table 1-2. Key Components and Features The key features of the Spartan-3A Starter Kit board or the Spartan-3AN Starter Kit board are: • Spartan-3A Starter Kit Board: Xilinx 700K-gate XC3S700A...
Page 20
Stereo audio jack using digital I/O pins • ChipScope™ SoftTouch debugging port • Rotary-encoder with push-button shaft • Eight discrete LEDs • Four slide switches • Four push-button switches www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
National Semiconductor specifically to power Spartan-3 Generation FPGAs. This regulator is sufficient for most standalone FPGA applications. Spartan-3A/3AN Starter Kit Design Examples Visit the Spartan-3A/3AN Starter Kit Design Examples web page to download and use the latest applications that specifically target the starter kit board: •...
This design uses a PicoBlaze™ processor to read the unique “Device DNA” identifier embedded in each Spartan-3A/3AN FPGA and then display it on the LCD screen. Choose a Spartan-3 Generation Starter Kit Board for your Needs The Spartan-3A and Spartan-3AN Starter Kit boards are best for prototyping Spartan-3A/3AN FPGA applications.
Spartan-3AN FPGAs require V to be 3.3V while Spartan-3A FPGAs allow V CCAUX CCAUX to be either 2.5V or 3.3V. The Spartan-3A/3AN Starter Kit Board uses a default V CCAUX 3.3V. Spartan-3A and Spartan-3AN FPGAs have different documentation and availability. Verify the latest version of the appropriate documentation on xilinx.com.
Related Resources Refer to the following links for additional information: • Spartan-3A/3AN Starter Kit www.xilinx.com/s3astarter and www.xilinx.com/s3anstarter ♦ Spartan-3A/3AN Rev D Starter Kit user guide www.xilinx.com/bvdocs/userguides/ug334.pdf ♦ Spartan-3A Rev C Starter Kit user guide www.xilinx.com/bvdocs/userguides/ug330.pdf ♦ Example User Constraints File (UCF) www.xilinx.com/products/boards/s3astarter/files/s3astarter.ucf...
Switches, Buttons, and Rotary Knob Slide Switches Locations and Labels The Spartan-3A/3AN Starter Kit board has four slide switches, as shown in Figure 2-1. The slide switches are located in the lower right corner of the board and are labeled SW3 through SW0.
Figure 2-4: UCF Constraints to Enable Suspend Mode For more information on Suspend mode, see the following application note: • XAPP480: Using Suspend Mode in Spartan-3 Generation FPGAs www.xilinx.com/bvdocs/appnotes/xapp480.pdf www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Push-Button Switches Push-Button Switches Locations and Labels The Spartan-3A/3AN Starter Kit board has four momentary-contact push-button switches, shown in Figure 2-5. The push buttons are located in the lower right corner of the board and are labeled BTN_NORTH, BTN_EAST, BTN_SOUTH, and BTN_WEST. The...
2-8. Use an internal pull-down resistor within the FPGA pin to generate a logic Low. Figure 2-11 shows how to specify a pull-down resistor within the UCF. There is no active debouncing circuitry on the push button. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
As shown in Figure 2-10, the chatter can falsely indicate extra rotation events or even indicate rotations in the opposite direction! Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
PULLDOWN Figure 2-11: UCF Constraints for Rotary Push-Button Switch Discrete LEDs Locations and Labels The Spartan-3A/3AN Starter Kit board has eight individual surface-mount LEDs located immediately above the slide switches as shown in Figure 2-12. The LEDs are labeled LED7 through LED0.
= QUIETIO | DRIVE Figure 2-13: UCF Constraints for Eight Discrete LEDs Optional Discrete LEDs The Spartan-3A/3AN Starter Kit board provides two optional LEDs, shown in Figure 2-14. Depending on which features are used by an application, these LED connections may be also used as user-I/O pins.
40, must be in either the “Disabled” or “Enabled during Configuration” setting. The “Always Enabled” setting for Jumper J46 allows the FPGA to read additional data from the Platform Flash PROM after configuration, as described in Xilinx application note XAPP694. Caution! The FPGA’s INIT_B pin also connects to the Platform Flash PROM’s OE/RESET pin.
Chapter 3 Clock Sources Overview The Spartan-3A/3AN Starter Kit board supports three primary clock input sources, as shown in Figure 3-1. • The board includes an on-board 50 MHz clock oscillator. • Clocks can be supplied off-board via an SMA-style connector. Alternatively, the FPGA can generate clock signals or other high-speed signals on the SMA-style connector.
Location Figure 3-2 provides the UCF constraints for the three clock input sources, including the I/O pin assignment and the I/O standard used. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
= LVCMOS33 ; Figure 3-2: UCF Location Constraints for Clock Sources Clock Period Constraints The Xilinx ISE development software uses timing-driven logic placement and routing. Set the clock PERIOD constraint as appropriate. An example constraint appears in Figure 3-3 for the on-board 50 MHz clock oscillator. The CLK_50MHZ frequency is 50 MHz, which equates to a 20 ns period.
Page 36
Chapter 3: Clock Sources www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 4 FPGA Configuration Options The Spartan-3A/3AN Starter Kit board supports a variety of FPGA configuration options: • Program the Spartan-3AN internal SPI Flash memory, then configure the FPGA at power-up. This option is not available in the Spartan-3A Starter Kit.
Page 38
The DONE pin LED lights when the FPGA successfully finishes configuration. Pressing the PROG button forces the FPGA to restart its configuration process. The Xilinx Platform Flash PROM provides easy, JTAG-programmable configuration storage for the FPGA. The FPGA configures from the Platform Flash using Master Serial mode.
0 and incrementing through address “Parallel NOR Flash space. PROM”) Disable the Platform Flash PROM via J46 jumper per Table 4-2. JTAG 1:0:1 Downloaded from host via USB-JTAG port Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Chapter 4: FPGA Configuration Options Xilinx Platform Flash Configuration PROM(s) The Spartan-3A/3AN Starter Kit board includes a Xilinx Platform Flash configuration interface. A single 4 Mbit XCF04S Platform Flash PROM appears in the JTAG chain with the FPGA. Caution! The J46 jumper, shown in...
Figure 4-2: Standard USB Type A/Type B Cable The wider and narrower Type A connector fits the USB connector at the back of the computer. After installing the Xilinx software, connect the square Type B connector to the Spartan- 3A/3AN Starter Kit board, as shown in Figure 4-3.
When the USB cable driver is successfully installed and the board is correctly connected to the PC, a green LED lights up, indicating that the programming cable is ready. The USB connection also has a red LED, which only lights if the Xilinx software is programming firmware updates to the USB interface.
Chapter 5 Character LCD Screen Overview The Spartan-3A/3AN Starter Kit board prominently features a 2-line by 16-character liquid crystal display (LCD). The FPGA controls the LCD via the eight-bit data interface shown in Figure 5-1. The Spartan-3A/3AN Starter Kit board also supports the four-bit data interface to remain compatible with other Xilinx development boards.
UCF Location Constraints Figure 5-2 provides the UCF constraints for the Character LCD, including the I/O pin assignment and the I/O standard used. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Locations 0x10 through 0x27 and 0x50 through 0x67 can be used to store other non-display data. Alternatively, these locations can also store characters that can only be displayed using controller’s display shifting functions. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
DB[3:0] = 0011 binary. As shown in Figure 5-4, the character ‘S’ appears on the screen. English/Roman characters are stored in CG ROM at their equivalent ASCII code addresses. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
CG RAM. Write CG RAM data using the Write Data to CG RAM or DD RAM command, and read CG RAM using the Read Data from CG RAM or DD RAM command. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Table 5-2: LCD Character Display Command Set (4-bit mode) Upper Nibble Lower Nibble Function Clear Display Return Cursor Home Entry Mode Set Display On/Off Cursor and Display Shift www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
This bit either auto-increments or auto-decrements the DD RAM and CG RAM address counter by one location after each Write Data to CG RAM or DD RAM command or Read Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
When the displayed data is shifted repeatedly, both lines move horizontally. The second display line does not shift into the first display line. Execution Time: 40 μs www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Writes data into DD RAM if the command follows a previous Set DD RAM Address command, or writes data into CG RAM if the command follows a previous Set CG RAM Address command. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
However, a display shift is not executed during read operations. Execution Time: 40 μs Operation The board has an eight-bit data interface to the character LCD. Other Xilinx boards use a four-bit interface. As shown in Figure 5-1, the Spartan-3A/3AN Starter Kit board supports both an eight-bit and a four-bit interface for compatibility reasons.
The initialization sequence is simple and ideally suited to the highly-efficient eight-bit PicoBlaze embedded controller. After initialization, the PicoBlaze controller is available for more complex control or computation beyond simply driving the display. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Continuing to write characters, however, eventually falls off the end of the first display line. The additional characters do not automatically appear on the second line because the DD RAM map is not consecutive from the first line to the second. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 6 VGA Display Port The Spartan-3A/3AN Starter Kit board includes a VGA display port via a standard high- density HD-DB15 female connector. Connect this port directly to most PC monitors or flat- panel LCDs using a standard monitor cable. As shown in...
CRT displays, LCDs have evolved to use the same signal timings as CRT displays. Consequently, the following discussion pertains to both CRTs and LCDs. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 59
Modern VGA displays support multiple display resolutions, and the VGA controller dictates the resolution by producing timing signals to control the raster patterns. The controller produces TTL-level synchronizing pulses that set the frequency at which current Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Video data typically comes from a video refresh memory with one or more bytes assigned to each pixel location. The Spartan-3A/3AN Starter Kit board uses 12 bits per pixel, producing one of the 4,096 possible colors. The controller indexes into the video data buffer as the beams move across the display.
= FAST ; Figure 6-4: UCF Constraints for VGA Display Port Related Resources Refer to the following links for additional information: • VESA www.vesa.org • VGA timing information www.epanorama.net/documents/pc/vga_timing.html Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Page 62
Chapter 6: VGA Display Port www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
As shown in Figure 7-1, the Spartan-3A/3AN Starter Kit board has two RS-232 serial ports: a female DB9 DCE connector and a male DB9 DTE connector. The DCE-style port connects directly to the serial port connector available on most personal computers and workstations via a standard straight-through serial cable.
Chapter 8 PS/2 Mouse/Keyboard Port The Spartan-3A/3AN Starter Kit board includes a PS/2 mouse/keyboard port and the standard six-pin mini-DIN connector, labeled J28 on the board. Figure 8-1 shows the PS/2 connector, and Table 8-1 shows the signals on the connector. Use the primary connections indicated to connect a mouse or keyboard directly to the board.
Some keys, called extended keys, send an “E0” ahead of the scan code, and furthermore, they might send more than one scan code. When an extended key is released, an “E0 F0” key-up code is sent, followed by the scan code. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 67
When the keyboard sends data, it generates 11 clock transitions at around 20 to 30 kHz, and data is valid on the falling edge of the clock as shown in Figure 8-2. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
X or Y values exceed their maximum value, an overflow condition. A ‘1’ indicates when an overflow occurs. If the mouse moves continuously, the 33-bit transmissions repeat every 50 ms or so. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
A ‘1’ indicates that the associated mouse button is being pressed. Voltage Supply The PS/2 port on the Spartan-3A/3AN Starter Kit board is powered by 5V. Although the Spartan-3A/3AN FPGA is not a 5V-tolerant device, it can communicate with a 5V device using 270Ω...
Figure 8-7: UCF Location Constraints for PS/2 Port Related Resources Refer to the following links for additional information: • PS/2 Mouse/Keyboard Protocol www.computer-engineering.org/ps2protocol • PS/2 Keyboard Interface www.computer-engineering.org/ps2keyboard • PS/2 Mouse Interface www.computer-engineering.org/ps2mouse www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 9 Analog Capture Circuit The Spartan-3A/3AN Starter Kit board includes a two-channel analog capture circuit, consisting of a programmable scaling pre-amplifier and an analog-to-digital converter (ADC), as shown in Figure 9-1. Linear Tech LTC1407A-1 Dual A/D SPI_SCK: (AA20) AD_CONV: (Y6)
VINA or VINB. The maximum range of the ADC is ±1.25V, centered around the reference voltage, 1.65V. Hence, 1.25V appears in the denominator to scale the analog input accordingly. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
The gain of each amplifier is programmable from -1 to -100, as shown in Table 9-2. Table 9-2: Programmable Gain Settings for Pre-Amplifier Input Voltage Range Gain Minimum Maximum 1.025 2.275 Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
All timing is minimum in nanoseconds unless otherwise noted. UG230_c10_04_022306 Figure 9-4: SPI Timing When Communicating with Amplifier The amplifier interface is relatively slow, supporting only about a 10 MHz clock frequency. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
The maximum sample rate is approximately 1.5 MHz. The ADC presents the digital representation of the sampled analog values as a 14-bit, two’s complement binary value. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Refer to the following links for additional information: • Xilinx PicoBlaze Soft Processor http://www.xilinx.com/picoblaze • LTC6912 Dual Programmable Gain Amplifiers with Serial Digital Interface http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1154,C1009,C1121,P7596,D5359 • LTC1407A-1 Serial 14-bit Simultaneous Sampling ADCs with Shutdown http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1155,C1001,C1158,P2420,D1295 Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Page 78
Chapter 9: Analog Capture Circuit www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 10 Digital-to-Analog Converter (DAC) The Spartan-3A/3AN Starter Kit board includes an SPI-compatible, four-channel, serial Digital-to-Analog Converter (DAC). The DAC device is a Linear Technology LTC2624 quad DAC with 12-bit unsigned resolution. The four outputs from the DAC appear on the...
SPI_SCK clock signal. The bus is fully static and supports clock rates up to the maximum of 50 MHz. However, check all timing parameters using the LTC2624 data sheet if operating at or close to the maximum speed. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Related Resources Refer to the following links for additional information: • LTC2624 Quad DAC Data Sheet http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1155,C1005,C1156,P2048,D2170 • Xilinx PicoBlaze Soft Processor http://www.xilinx.com/picoblaze • Digilent, Inc. Peripheral Modules http://www.digilentinc.com/Products/Catalog.cfm?Nav1=Products&Nav2=Peripheral&Cat=Peripheral www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Although the XC3S700A/AN FPGA only requires just slightly over 2.6 Mbits per uncompressed configuration image, the FPGA-to-Flash interface on the board supports up to a 256 Mbit Flash. The Spartan-3A/3AN Starter Kit board ships with a 32 Mbit device. Address lines SF_A<25:22> are not used.
Page 85
Bit 0 of a data byte and a 16-bit halfword. (SPI_MISO) Connects to FPGA pin D0/DIN to support the BPI configuration. Shared with other SPI peripherals and Platform Flash PROM. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
SPI serial Flash PROMs and the serial output from the Platform Flash PROM as shown in Table 11-2, page 87. To avoid contention, the FPGA application must ensure that only one data source is active at any time. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
# They are available as user I/Os but do not connect to anything on the board CONFIG PROHIBIT = B22; CONFIG PROHIBIT = B21; CONFIG PROHIBIT = G18; CONFIG PROHIBIT = G17; Figure 11-2: UCF Location Constraints for Flash Address Signals Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Table 11-3. The Spartan-3A/3AN FPGA families do not support the BPI Down mode that is available in the Spartan-3E FPGA family. Also be sure to disable the Platform Flash PROM by removing jumper J46, as shown in Table 11-3.
Refer to the following links for additional information: • STMicroelectronics M29DW323DT 32 Mbit Parallel NOR Flash PROM www.st.com/stonline/products/literature/ds/8516.pdf • Design Example: Programmer for the STMicroelectronics M29DW323DT Parallel NOR Flash www.xilinx.com/products/boards/s3astarter/reference_designs.htm#parallel_flash _programmer Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Page 90
Chapter 11: Parallel NOR Flash PROM www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 12 SPI Serial Flash The Spartan-3A/3AN Starter Kit board includes two different styles of SPI serial Flash, as shown in Figure 12-1. Only one style is available to configure the FPGA. After configuration, however, the FPGA application has full access to both PROMs for data storage or Flash update purposes.
Page 92
PROM. Has external 4.7kΩ pull-up resistor. ST_SPI_WP FPGA PROM Write-protect input to ST M25P16 PROM. Must be High to program the PROM. Has external 4.7kΩ pull-up resistor. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Jumper J26 Settings Enable (J46) Master SPI 0:0:1 DONE PROM • Select one of the SPI serial Flash PROMs as the SPI configuration source, as shown in Table 12-2. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Refer to the “Master SPI Mode” chapter in the Spartan-3 Generation Configuration User Guide for information on how to create and format FPGA configuration images for SPI serial Flash and how to program SPI Flash using the Xilinx iMPACT software. •...
Connect the cable directly to the J23 header block, as illustrated in Figure 12-5. These cables are not provided with the Spartan-3A/3AN Starter Kit board but can be purchased separately. a) JTAG3 Parallel Connector b) Parallel Cable III or Parallel Cable IV...
Click Direct SPI Configuration from within iMPACT, as shown in Figure 12-6. UG332_c4_03_101006 Figure 12-6: iMPACT Supports Direct Programming for SPI Serial Flash Memories Right-click in the area indicated. Select Add SPI Device. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 99
Click Open. Select the Part Name for a supported SPI serial Flash, as shown in Figure 12-8. UG332_c4_05_101006 Figure 12-8: Select a Supported SPI Flash Memory Device Click OK. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Page 100
UG332_c4_07_101006 Figure 12-10: SPI PROM Programming Options 11. Check Verify. Unchecking Verify reduces programming time but the iMPACT software can only guarantee correct programming for a verified PROM. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
18. Reapply power. Indirect Programming Method Indirect programming support is available starting with Xilinx ISE 9.1i, Service Pack 2 and later releases. In Indirect mode, the iMPACT software programs the memory attached to the FPGA through the FPGA’s JTAG port.
Indirect programming method, follow the steps outlined below. Invoke iMPACT and select Configure devices using Boundary Scan (JTAG), as shown in Figure 12-11. UG332_c4_22_032807 Figure 12-11: Indirect Programming Method Uses JTAG Select Finish. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 103
TCK. The SPI Flash image is not affected. This warning is safely ignored. UG332_c4_24_032807 Figure 12-13: iMPACT Uses the JTAG Clock Input TCK for Startup Clock when Programming via JTAG Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Page 104
Click Open. Select the part number for the attached SPI Flash PROM, as shown in Figure 12-15. UG332_c4_27_032907 Figure 12-15: Select SPI Flash PROM Type 10. Click OK. www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 105
Figure 12-17, the iMPACT software then displays the JTAG chain for the XC3S700A Spartan-3A FPGA followed by the XCF04S Platform Flash PROM. A similar display will be seen for the XC3S700AN Spartan-3AN FPGA. Click to highlight the FLASH memory attached to the XC3S700A FPGA. This action enables the command options shown in Step 13.
15. Check Verify. Unchecking Verify reduces programming time but the iMPACT software can only guarantee correct programming for a verified PROM. 16. Check Erase Before Programming. Unchecking the Erase option reduces programming time. However, Xilinx recommends erasing the PROM when downloading a new FPGA bitstream. 17. Click OK.
Page 107
Related Resources • Universal Scan SPI Flash Programming via JTAG Training Video www.ricreations.com/JTAG-Software-Downloads.htm Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Page 108
Chapter 12: SPI Serial Flash www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 13 DDR2 SDRAM The Spartan-3A/3AN Starter Kit board includes a 512 Mbit (32M x 16) Micron Technology DDR2 SDRAM (MT47H32M16) with a 16-bit data interface, as shown in Figure 13-1. 5.0V (SSTL_18 Termination Voltage) 0.9V (DDR2 SDRAM Supply Voltage) 1.8V...
FPGA. Put another way, the loopback trace must be one round trip time to and from the memory. Also, the loopback signal should be in the center of the data interface pins for best results, not near the edge or in another FPGA I/O bank. The Spartan-3A/3AN Starter Kit board was designed accordingly.
Page 115
Xilinx Embedded Development Kit (EDK) www.xilinx.com/ise/embedded_design_prod/platform_studio.htm • MT47H32M16 (32M x 16) DDR2 SDRAM Data Sheet download.micron.com/pdf/datasheets/dram/ddr2/512MbDDR2.pdf • Multi-Channel OPB DDR2 Controller Xilinx IP Core www.xilinx.com/bvdocs/ipcenter/data_sheet/mch_opb_ddr2.pdf • Memory Interface Generator (MIG), Version 1.7 or later www.xilinx.com/memory Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com...
Page 116
Chapter 13: DDR2 SDRAM www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Page 117
Chapter 14 10/100 Ethernet Physical Layer Interface The Spartan-3A/3AN Starter Kit board includes a Standard Microsystems LAN8700 10/100 Ethernet physical layer (PHY) interface and an RJ-45 connector, as shown in Figure 14-1. With an Ethernet Media Access Controller (MAC) implemented in the FPGA, the board can optionally connect to a standard Ethernet network.
E_TXD<0> E_TX_EN Transmit Enable E_TX_CLK Transmit Clock. 25 MHz in 100Base-TX mode and 2.5 MHz in 10Base-T mode. E_RXD<4> Receive Data from the PHY E_RXD<3> E_RXD<2> E_RXD<1> E_RXD<0> www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
65 MHz or higher for 100 Mbps Ethernet operations and 6.5 MHz or faster for 10 Mbps Ethernet operations. The hardware evaluation versions of the Ethernet MAC cores operate for approximately eight hours in silicon before timing out. To order the full version of the core, visit the Xilinx website at: www.xilinx.com/ipcenter/processor_central/processor_ip/10-100emac/ 10-100emac_order_register.htm...
• Standard Microsystems SMSC LAN8700 10/100 Ethernet PHY http://www.smsc.com/main/catalog/lan8700.html • Xilinx OPB Ethernet Media Access Controller (EMAC) (v1.02a) http://www.xilinx.com/bvdocs/ipcenter/data_sheet/opb_ethernet.pdf • Xilinx OPB Ethernet Lite Media Access Controller (v1.01a) The Ethernet Lite MAC controller core uses fewer FPGA resources and is ideal for applications the do not require support for interrupts, back-to-back data transfers, and statistics counters.
Page 121
Chapter 15 Expansion Connectors The Spartan-3A/3AN Starter Kit board provides a variety of expansion connectors for easy interface flexibility to other off-board components. The board includes the I/O expansion headers shown in Figure 15-1. • A Hirose 100-pin edge connector with 43 associated FPGA user-I/O pins •...
I/O pins. Expansion Connector Compatibility For the majority of applications, the FX2 connector on the Spartan-3A/3AN Starter Kit board is compatible with the other Xilinx development boards. The Spartan-3E Starter Kit board and XC3S1600E Starter Kit board optionally provide limited differential I/O capability on the FX2 connector.
• Video Decoder Board (VDEC1) from Digilent, Inc. http://www.digilentinc.com/Products/Detail.cfm?Prod=VDEC1 Mating Receptacle Connectors The Spartan-3A/3AN Starter Kit board uses a Hirose FX2-100P-1.27DS header connector. The header mates with any compatible 100-pin receptacle connector, including board- mounted and non-locking cable connectors. •...
Chapter 15: Expansion Connectors Differential I/O Connectors The Spartan-3A/3AN Starter Kit board includes stake pin headers with excellent signal integrity and matched impedance traces to demonstrate high-performance differential I/O. Each differential pair supports approximately 600 Mbits per second (Mbps) data rates.
The second option, called on-chip differential termination, is highlighted on the Spartan- 3A/3AN Starter Kit board (see Figure 15-4b). This feature uses the DIFF_TERM attribute available on differential I/O signals. Each differential I/O pin includes a circuit that Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
Spartan-3AN FPGAs, differential outputs are only supported on I/O Bank 0 or 2. Differential outputs are powered by the respective I/O bank output voltage, V . On the Spartan-3A/3AN Starter Kit board, I/O Banks 0, 1, and 2 are all powered by a 3.3V supply. FPGA OBUFDS...
Page 129
Bank 2 All traces routed with 100Ω matched impedance. All “transmit” pairs routed with matched trace lengths within 0.25 inches. “Transmit” Header (J15) UG330_c12_15_012407 Figure 15-6: Differential I/O Layout Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
SPI and other serial protocols. PMODs allow more effective design partitions by routing analog signals and power supplies only where they are needed and away from digital controller boards. • Digilent, Inc. Peripheral Modules http://www.digilentinc.com/Products/Catalog.cfm?Cat=Peripheral www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Agilent, provides an interface to a logic analyzer. This debugging port is intended primarily for the Xilinx ChipScope Pro software with the Agilent FPGA Dynamic Probe. It can, however, be used with either the Agilent or Tektronix probes, without the ChipScope software, using FPGA Editor’s probe command.
Page 134
Signal Name FPGA Pin Landing Pads FPGA Pin Signal Name FX2_IO1 FX2_IO2 FX2_IO3 FX2_IO4 FX2_IO5 FX2_IO6 FX2_IO7 FX2_IO8 FX2_IO9 FX2_IO10 FX2_IO11 FX2_IO12 FX2_IO13 FX2_IO14 FX2_IO15 FX2_IO16 FX2_IO17 FX2_IO18 www.xilinx.com Spartan-3A/3AN Starter Kit Board User Guide UG334 (v1.0) May 28, 2007...
Chapter 16 Miniature Stereo Audio Jack The Spartan-3A/3AN Starter Kit board includes a miniature stereo audio jack plug, as highlighted in Figure 16-1. The jack plug is located in the upper right corner of the board, immediately above the SUSPEND slide switch.
= QUIETIO ; Figure 16-3: UCF Constraints for Audio Connector Related Resources The demonstration design shipped with the board includes an audio example. • Spartan-3A/3AN Starter Kit Demo Design Overview www.xilinx.com/products/boards/s3astarter/reference_designs.htm#demo • Restoring the “Out of the Box” Flash Programming www.xilinx.com/products/boards/s3astarter/reference_designs.htm#out www.xilinx.com...
UG330_cx_01_021507 Figure 17-1: Spartan-3A/3AN Starter Kit Board Voltage Supplies The Spartan-3A/3AN Starter Kit board requires a 5.0V DC voltage input, typically supplied by the AC wall adapter included with the kit. However, there is also a provision to connect the board directly to a 5.0V DC supply using through-hole mounting solder pads.
Page 138
0.9V) VREF inputs (VREF_3) The board exploits all four regulator outputs for testing and evaluation purposes. However, a typical Spartan-3A/3AN FPGA application uses far fewer rails. • The board uses a separate supply for V and sets it to 3.3V by default. In a CCAUX typical application, the FPGA’s V...
Set the meter to measure DC Amperes. Initially set the meter to the Ampere range. If appropriate, switch to a lower range (for example, 200 mA) after initially measuring current in the Ampere range. Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...
(E13) IC19 REG1_SDA REG1-SDA (D13) Possible Applications For experimentation purposes only, Xilinx only recommends adjusting the two supplies listed below: • By default, the V supply to the FPGA is set to 3.3V, as required for Spartan-3AN CCAUX FPGAs. On Spartan-3A FPGAs, V can be either 2.5V or 3.3V, with potentially...
Related Resources Refer to the following link for additional information: • National Semiconductor LP3906 Dual High-Current Step-Down DC/DC and Dual Linear Regulator with I C Compatible Interface www.national.com/pf/LP/LP3906.html Spartan-3A/3AN Starter Kit Board User Guide www.xilinx.com UG334 (v1.0) May 28, 2007...