Spartan-3 Starter Kit Board User Guide: UG130 (v1.0) April 26, 2004
Spartan-3 Starter Kit Board User Guide: UG130 (v1.0) April 26, 2004
Spartan-3 Starter Kit Board User Guide: UG130 (v1.0) April 26, 2004
"Xilinx" and the Xilinx logo shown above are registered trademarks of Xilinx, Inc. Any rights not expressly granted herein are reserved. CoolRunner, RocketChips, Rocket IP, Spartan, StateBENCH, StateCAD, Virtex, XACT, XC2064, XC3090, XC4005, and XC5210 are registered trademarks of Xilinx, Inc.
The shadow X shown above is a trademark of Xilinx, Inc. ACE Controller, ACE Flash, A.K.A. Speed, Alliance Series, AllianceCORE, Bencher, ChipScope, Configurable Logic Cell, CORE Generator, CoreLINX, Dual Block, EZTag, Fast CLK, Fast CONNECT, Fast FLASH, FastMap, Fast Zero Power, Foundation, Gigabit Speeds...and Beyond!, HardWire, HDL Bencher, IRL, J Drive, JBits, LCA, LogiBLOX, Logic Cell, LogiCORE, LogicProfessor, MicroBlaze, MicroVia, MultiLINX, NanoBlaze, PicoBlaze, PLUSASM, PowerGuide, PowerMaze, QPro, Real-PCI, RocketIO, SelectIO, SelectRAM, SelectRAM+, Silicon Xpresso, Smartguide, Smart-IP, SmartSearch, SMARTswitch, System ACE, Testbench In A Minute, TrueMap, UIM, VectorMaze, VersaBlock, VersaRing, Virtex-II Pro, Virtex-II EasyPath, Wave Table, WebFITTER, WebPACK, WebPOWERED, XABEL, XACTFloorplanner, XACT-Performance, XACTstep Advanced, XACTstep Foundry, XAM, XAPP, X-BLOX +, XC designated products, XChecker, XDM, XEPLD, Xilinx Foundation Series, Xilinx XDTV, Xinfo, XSI, XtremeDSP and ZERO+ are trademarks of Xilinx, Inc. The Programmable Logic Company is a service mark of Xilinx, Inc. All other trademarks are the property of their respective owners. Xilinx, Inc. does not assume any liability arising out of the application or use of any product described or shown herein; nor does it convey any license under its patents, copyrights, or maskwork rights or any rights of others. Xilinx, Inc. reserves the right to make changes, at any time, in order to improve reliability, function or design and to supply the best product possible. Xilinx, Inc. will not assume responsibility for the use of any circuitry described herein other than circuitry entirely embodied in its products. Xilinx provides any design, code, or information shown or described herein "as is." By providing the design, code, or information as one possible implementation of a feature, application, or standard, Xilinx makes no representation that such implementation is free from any claims of infringement. You are responsible for obtaining any rights you may require for your implementation. Xilinx expressly disclaims any warranty whatsoever with respect to the adequacy of any such implementation, including but not limited to any warranties or representations that the implementation is free from claims of infringement, as well as any implied warranties of merchantability or fitness for a particular purpose. Xilinx, Inc. devices and products are protected under U.S. Patents. Other U.S. and foreign patents pending. Xilinx, Inc. does not represent that devices shown or products described herein are free from patent infringement or from any other third party right. Xilinx, Inc. assumes no obligation to correct any errors contained herein or to advise any user of this text of any correction if such be made. Xilinx, Inc. will not assume any liability for the accuracy or correctness of any engineering or software support or assistance provided to a user. Xilinx products are not intended for use in life support appliances, devices, or systems. Use of a Xilinx product in such applications without the written consent of the appropriate Xilinx officer is prohibited. The contents of this manual are owned and copyrighted by Xilinx. Copyright 1994-2004 Xilinx, Inc. All Rights Reserved. Except as stated herein, none of the material may be copied, reproduced, distributed, republished, downloaded, displayed, posted, or transmitted in any form or by any means including, but not limited to, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Xilinx. Any unauthorized use of any material contained in this manual may violate copyright laws, trademark laws, the laws of privacy and publicity, and communications regulations and statutes.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
The following table shows the revision history for this document.. Version 04/26/04 1.0 Initial Xilinx release. Revision
www.xilinx.com 1-800-255-7778
Table of Contents
Preface: About This Guide
Guide Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Typographical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Online Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1: Introduction
Key Components and Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Component Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 7: RS-232 Port Chapter 8: Clock Sources Chapter 9: FPGA Configuration Modes and Functions
FPGA Configuration Mode Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
Expansion Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Preface
Guide Contents
This manual contains the following chapters: Chapter 1, Introduction Chapter 2, Fast, Asynchronous SRAM Chapter 3, Four-Digit, Seven-Segment LED Display Chapter 4, Switches and LEDs Chapter 5, VGA Port Chapter 6, PS/2 Mouse/Keyboard Port Chapter 7, RS-232 Port Chapter 8, Clock Sources Chapter 9, FPGA Configuration Modes and Functions Chapter 10, Platform Flash Configuration Storage Chapter 11, JTAG Programming/Debugging Ports Chapter 12, Power Distribution Appendix A, Board Schematics Appendix B, Reference Material for Major Components
Additional Resources
For additional information, go to http://support.xilinx.com. The following table lists some of the resources you can access from this website. You can also directly access these resources using the provided URLs. Resource Tutorials Description/URL Tutorials covering Xilinx design flows, from design entry to verification and debugging http://support.xilinx.com/support/techsup/tutorials/index.htm Answer Browser Database of Xilinx solution records http://support.xilinx.com/xlnx/xil_ans_browser.jsp
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
Data Sheets
Device-specific information on Xilinx device characteristics, including readback, boundary scan, configuration, length count, and debugging http://support.xilinx.com/xlnx/xweb/xil_publications_index.jsp
Interactive tools that allow you to troubleshoot your design issues http://support.xilinx.com/support/troubleshoot/psolvers.htm Latest news, design tips, and patch information for the Xilinx design environment http://www.support.xilinx.com/xlnx/xil_tt_home.jsp
Conventions
This document uses the following conventions. An example illustrates each convention.
Typographical
The following typographical conventions are used in this document: Convention Courier font Meaning or Use Messages, prompts, and program files that the system displays Literal commands that you enter in a syntactical statement Commands that you select from a menu Keyboard shortcuts Variables in a syntax statement for which you must supply values Italic font References to other manuals Example speed grade: - 100
Courier bold
ngdbuild design_name File Open Ctrl+C ngdbuild design_name See the Development System Reference Guide for more information. If a wire is drawn so that it overlaps the pin of a symbol, the two nets are not connected. ngdbuild [option_name] design_name
Helvetica bold
Emphasis in text An optional entry or parameter. However, in bus specifications, such as bus[7:0], they are required.
Square brackets [ ]
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Conventions
Meaning or Use A list of items from which you must choose one or more Separates items in a list of choices
Example lowpwr ={on|off} lowpwr ={on|off} IOB #1: Name = QOUT IOB #2: Name = CLKIN . . . allow block block_name loc1 loc2 ... locn;
Online Document
The following conventions are used in this document: Convention Meaning or Use Cross-reference link to a location in the current document Cross-reference link to a location in another document Hyperlink to a website (URL) Example See the section Additional Resources for details. Refer to Title Formats in Chapter 1 for details. See Figure 2-5 in the Virtex-II Handbook. Go to http://www.xilinx.com for the latest speed files.
Blue text
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 1
Introduction
The Xilinx Spartan-3 Starter Kit provides a low-cost, easy-to-use development and evaluation platform for Spartan-3 FPGA designs.
4,320 logic cell equivalents Twelve 18K-bit block RAMs (216K bits) Twelve 18x18 hardware multipliers Four Digital Clock Managers (DCMs) Up to 173 user-defined I/O signals
1Mbit non-volatile data or application code storage available after FPGA configuration Jumper options allow FPGA application to read PROM data or FPGA configuration from other sources 3
4
1M-byte of Fast Asynchronous SRAM (bottom side of board, see Figure 1-3)
Two 256Kx16 ISSI IS61LV25616AL-10T 10 ns SRAMs Configurable memory architecture Single 256Kx32 SRAM array, ideal for MicroBlaze code images Two independent 256Kx16 SRAM arrays
DB9 9-pin female connector (DCE connector) Maxim MAX3232 RS-232 transceiver/translator
7
Uses straight-through serial cable to connect to computer or workstation serial port Second RS-232 transmit and receive channel available on board test points
8
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
Chapter 1: Introduction
22
A1 Expansion Header XCF02S 2Mbit Configuration PROM A2 Expansion Header B1 Expansion Header Configuration DONE LED
1
21
20
19
18
17
16
RS-232 Port Serial Port PS/2 Port 4 Character 7-Segment LED 8 Slide Switches
RS-232 Driver
10
13
11
12
Power On LED
26
3.3V 27 Regulator
2.5V 28 Regulator
1.2V 29 Regulator
UG130_c1_01_042504
Figure 1-1:
13
10
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Component Locations
50 MHz crystal oscillator clock source (bottom side of board, see Figure 1-3) Socket for an auxiliary crystal oscillator clock source
15 16
14
Push button switch to force FPGA reconfiguration (FPGA configuration happens automatically at power-on) 17 LED indicates when FPGA is successfully configured
18
Three 40-pin expansion connection ports to extend and enhance the Spartan-3 Starter Kit Board 19 20 21
See www.xilinx.com/s3board for compatible expansion cards Compatible with Digilent, Inc. peripheral boards https://digilent.us/Sales/boards.cfm#Peripheral FPGA serial configuration interface signals available on the A2 and B1 connectors PROG_B, DONE, INIT_B, CCLK, DONE
22
JTAG port
23 23
JTAG download/debug port compatible with the Xilinx Parallel Cable IV and MultiPRO Desktop Tool 24 AC power adapter input for included international unregulated +5V power supply 25 Power-on indicator LED On-board 3.3V
27 26 28
, 2.5V
, and 1.2V
29
regulators
Component Locations
Figure 1-2 and Figure 1-3 indicate the component locations on the top side and bottom side of the board, respectively.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
11
Chapter 1: Introduction
21
20
A1 Expansion Connector
22 5 31 27 16 24
A2 Expansion Connector
2 19 3
3.3V
17
18 DONE
25
POWER
6
7 15 12 10 30
RS-232
PS/2
11 13
ug130_c1_02_042604
B1 Expansion Connector
5 6
ug130_c1_03_042604
2Mbit PlatformFlash
VGA
256Kx16 SRAM
256Kx16 SRAM
2.5V
28
29
50 MHz
14
1.2V
12
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 2
I/O[15:0] A[17:0]
CE UB LB WE
IC10
Spartan-3 FPGA
(see Table 2-4) (see Table 2-4) (see Table 2-1) (see Table 2-1)
IC11
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
13
The SRAM array forms either a single 256Kx32 SRAM memory or two independent 256Kx16 arrays. Both SRAM devices share common write-enable (WE#), output-enable (OE#), and address (A[17:0]) signals. However, each device has a separate chip select (CS#) control and individual byte-enable controls to select the high or low byte in the 16-bit data word, UB and LB, respectively. The 256Kx32 configuration is ideally suited to hold MicroBlaze instructions. However, it alternately provides high-density data storage for a variety of applications, such as digital signal processing (DSP), large data FIFOs, and graphics buffers.
Address Bit A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
14
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
15
Table 2-4:
SRAM IC11 Connections Signal IO15 IO14 IO13 IO12 IO11 IO10 IO9 IO8 IO7 IO6 IO5 IO4 IO3 IO2 IO1 IO0 FPGA Pin N1 M1 K2 C3 F5 G1 E2 D2 D1 E1 G2 J1 K1 M2 N2 P2 N5 R4 P5
CE2 (chip enable IC11) UB2 (upper byte enable IC11) LB2 (lower byte enable IC11)
16
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 3
0
(E14)
a 0 0 1 0 0 1 0
A B C D E F G (R16) (F13)
a b f g b f
a b g f
a b g
f
(N16)
(G13)
e d
(P15)
(N15)
e d
e d
e d
1 DP
dp
(P16)
dp
dp
dp
UG130_c3_01_042404
Figure 3-1: Seven-Segment LED Digit Control Table 3-1 lists the FPGA connections that drive the individual LEDs comprising a sevensegment character. Table 3-2 lists the connections to enable a specific character. Table 3-3 shows the patterns required to display hexadecimal characters.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
17
Table 3-1:
FPGA Connections to Seven-Segment Display (Active Low) Segment A B C D E F G DP FPGA Pin E14 G13 N15 P15 R16 F13 N16 P16
Table 3-2:
Digit Enable (Anode Control) Signals (Active Low) AN3 E13 AN2 F14 AN1 G14 AN0 D14
Table 3-3:
Character 0 1 2 3 4 5 6 7 8 9 A b C d E F
18
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
The LED control signals are time-multiplexed to display data on all four characters, as shown in Figure 3-2. Present the value to be displayed on the segment control inputs and select the specified character by driving the associated anode control signal Low. Through persistence of vision, the human brain perceives that all four characters appear simultaneously, similar to the way the brain perceives a TV display.
DISP3
DISP2
DISP1
DISP0
UG130_c3_02_042404
Figure 3-2:
This scanning technique reduces the number of I/O pins required for the four characters. If an FPGA pin were dedicated for each individual segment, then 32 pins are required to drive four 7-segment LED characters. The scanning technique reduces the required I/O down to 12 pins. The drawback to this approach is that the FPGA logic must continuously scan data out to the displaysa small price to save 20 additional I/O pins.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
19
20
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 4
When in the UP or ON position, a switch connects the FPGA pin to VCCO, a logic High. When DOWN or in the OFF position, the switch connects the FPGA pin to ground, a logic Low. The switches typically exhibit about 2 ms of mechanical bounce and there is no active debouncing circuitry, although such circuitry could easily be added to the FPGA design programmed on the board. A 4.7K series resistor provides nominal input protection.
Pressing a push button generates a logic High on the associated FPGA pin. Again, there is no active debouncing circuitry on the push button. The left-most button, BTN3, is also the default User Reset pin. BTN3 electrically behaves identically to the other push buttons. However, when applicable, BTN3 resets the provided reference designs.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
21
LEDs
The Spartan-3 Starter Kit board has eight individual surface-mount LEDs located above the push button switches, indicated by 12 in Figure 1-2. The LEDs are labeled LED7 through LED0. LED7 is the left-most LED, LED0 the right-most LED. Table 4-3 shows the FPGA connections to the LEDs. Table 4-3: LED FPGA Pin LED Connections to the Spartan-3 FPGA LD7 P11 LD6 P12 LD5 N12 LD4 P13 LD3 N14 LD2 L12 LD1 P14 LD0 K12
The cathode of each LED connects to ground via a 270 resistor. To light an individual LED, drive the associated FPGA control signal High, which is the opposite polarity from lighting one of the 7-segment LEDs.
22
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 5
VGA Port
The Spartan-3 Starter Kit board includes a VGA display port and DB15 connector, indicated as 5 in Figure 1-2. Connect this port directly to most PC monitors or flat-panel LCD displays using a standard monitor cable.
Pin 5 Pin 10
Pin 1 Pin 6 Pin 11 DB15 VGA Connector (front view) 270 R 270 G 270 B (R11) (T12) (R12)
Pin 15
Green
HS (R9) (T10)
Vertical Sync
VS
UG130_c5_01_042604
As shown in Figure 5-1, the Spartan-3 FPGA controls five VGA signals: Red (R), Green (G), Blue (B), Horizontal Sync (HS), and Vertical Sync (VS), all available on the VGA connector. The FPGA pins that drive the VGA port appear in Table 5-1. A detailed schematic is in Figure A-7.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
23
Table 5-1:
VGA Port Connections to the Spartan-3 FPGA Signal FPGA Pin R12 T12 R11 R9 T10
Red (R) Green (G) Blue (B) Horizontal Sync (HS) Vertical Sync (VS)
Each color line has a series resistor to provide 3-bit color, with one bit each for Red, Green, and Blue. The series resistor uses the 75 VGA cable termination to ensure that the color signals remain in the VGA-specified 0V to 0.7V range. The HS and VS signals are TTL level. Drive the R, G, and B signals High or Low to generate the eight possible colors shown in Table 5-2. Table 5-2: Red (R) 0 0 0 0 1 1 1 1 3-Bit Display Color Codes Green (G) 0 0 1 1 0 0 1 1 Blue (B) 0 1 0 1 0 1 0 1 Resulting Color Black Blue Green Cyan Red Magenta Yellow White
VGA signal timing is specified, published, copyrighted, and sold by the Video Electronics Standards Association (VESA). The following VGA system and timing information is provided as an example of how the FPGA might drive VGA monitor in 640 by 480 mode. For more precise information or for information on higher VGA frequencies, refer to documents available on the VESA website or other electronics websites: Video Electronics Standards Association http://www.vesa.org VGA Timing Information http://www.epanorama.net/documents/pc/vga_timing.html
24
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
same signal timings as CRT displays. Consequently, the following discussion pertains to both CRTs and LCD displays. Within a CRT display, current waveforms pass through the coils to produce magnetic fields that deflect electron beams to transverse the display surface in a raster pattern, horizontally from left to right and vertically from top to bottom. As shown in Figure 5-2, information is only displayed when the beam is moving in the forward directionleft to right and top to bottomand not during the time the beam returns back to the left or top edge of the display. Much of the potential display time is therefore lost in blanking periods when the beam is reset and stabilized to begin a new horizontal or vertical display pass.
pixel 0,0
pixel 0,639
640 pixels are displayed each time the beam traverses the screen
pixel 479,0
pixel 479,639
Total horizontal time time "front porch" HS Horizontal sync signal sets the retrace frequency
Figure 5-2: CRT Display Timing Example The size of the beams, the frequency at which the beam traces across the display, and the frequency at which the electron beam is modulated determine the display resolution.
"back porch"
UG130_c5_02_042404
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
25
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 flows through the deflection coils, and it ensures that pixel or video data is applied to the electron guns at the correct time. Video data typically comes from a video refresh memory with one or more bytes assigned to each pixel location. The Spartan-3 Starter Kit board uses three bits per pixel, producing one of the eight possible colors shown in Table 5-2. The controller indexes into the video data buffer as the beams move across the display. The controller then retrieves and applies video data to the display at precisely the time the electron beam is moving across a given pixel. As shown in Figure 5-2, the VGA controller generates the HS (horizontal sync) and VS (vertical sync) timings signals and coordinates the delivery of video data on each pixel clock. The pixel clock defines the time available to display one pixel of information. The VS signal defines the refresh frequency of the display, or the frequency at which all information on the display is redrawn. The minimum refresh frequency is a function of the displays phosphor and electron beam intensity, with practical refresh frequencies in the 60 Hz to 120 Hz range. The number of horizontal lines displayed at a given refresh frequency defines the horizontal retrace frequency.
TS Tdisp Tfp
Tpw
Figure 5-3: VGA Control Timing
Tbp
UG130_c5_03_042404
26
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Generally, a counter clocked by the pixel clock controls the horizontal timing. Decoded counter values generate the HS signal. This counter tracks the current pixel display location on a given row. A separate counter tracks the vertical timing. The vertical-sync counter increments with each HS pulse and decoded values generate the VS signal. This counter tracks the current display row. These two continuously running counters form the address into a video display buffer. For example, the on-board fast SRAM is an ideal display buffer. No time relationship is specified between the onset of the HS pulse and the onset of the VS pulse. Consequently the counters can be arranged to easily form video RAM addresses, or to minimize decoding logic for sync pulse generation.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
27
28
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 6
2 4 6
1 3 5
UG130_c6_01_042404
Figure 6-1: PS/2 DIN Connector Table 6-1: PS/2 Connections to the Spartan-3 FPGA Signal DATA (PS2D) Reserved GND Voltage Supply CLK (PS2C) Reserved FPGA Pin M15 GND M16
Both a PC mouse and keyboard use the two-wire PS/2 serial bus to communicate with a host device, the Spartan-3 FPGA in this case. The PS/2 bus includes both clock and data. Both a mouse and keyboard drive the bus with identical signal timings and both use 11-bit words that include a start, stop and odd parity bit. However, the data packets are organized differently for a mouse and keyboard. Furthermore, the keyboard interface allows bidirectional data transfers so the host device can illuminate state LEDs on the keyboard. The PS/2 bus timing appears Table 6-2 and Figure 6-2. The clock and data signals are only driven when data transfers occur, and otherwise they are held in the idle state at logic
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
29
High. The timings define signal requirements for mouse-to-host communications and bidirectional keyboard communications. Table 6-2: TCK TSU THLD PS/2 Bus Timing Parameter Clock High or Low time Data-to-clock setup time Clock-to-data hold time Min 30 s 5 s 5 s Max 50 s 25 s 25 s
Symbol
TCK TCK
Edge 10
THLD
Keyboard
The keyboard uses open-collector drivers so that either the keyboard or the host can drive the two-wire bus. If the host never sends data to the keyboard, then the host can use simple input pins. A PS/2-style keyboard uses scan codes to communicate key press data. Nearly all keyboards in use today are PS/2 style. Each key has a single, unique scan code that is sent whenever the corresponding key is pressed. The scan codes for most keys appear in Figure 6-3. If the key is pressed and held, the keyboard repeatedly sends the scan code every 100 ms or so. When a key is released, the keyboard sends a F0 key-up code, followed by the scan code of the released key. The keyboard sends the same scan code, regardless if a key has different shift and non-shift characters and regardless whether the Shift key is pressed or not. The host determines which character is intended. Some keys, called extended keys, send an E0 ahead of the scan code and furthermore, they may send more than one scan code. When an extended key is released, a E0 F0 keyup code is sent, followed by the scan code.
30
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Keyboard
ESC 76 `~ 0E TAB 0D
Caps Lock
F1 05 1! 16 2@ 1E Q 15 A 1C Z 1Z W 1D
F2 06 3# 26
F3 04 4$ 25 E 24 D 23 C 21
F4 0C 5% 2E R 2D F 2B V 2A T 2C G 34 6^ 36
F5 03 7& 3D Y 35 H 33
F6 0B 8* 3E U 3C J 3B
F7 83 9( 46 I 43 K 42
F8 0A 0) 45 O 44 L 4B >. 49 P 4D
F9 01 -_ 4E
F10 09 =+ 55 [{ 54 '" 52
F11 78
F12 07
E0 75
Back Space
E0 74 E0 6B E0 72
58 Shift 12 Ctrl 14
S 1B X 22 Alt 11
;: 4C /? 4A Alt E0 11
B 32
N 31 Space 29
M 3A
,< 41
UG130_c6_03_042404
Figure 6-3:
The host can also send data to the keyboard. Table 6-3 provides a short list of some oftenused commands. Table 6-3: ED Common PS/2 Keyboard Commands Description Turn on/off Num Lock, Caps Lock, and Scroll Lock LEDs. The keyboard acknowledges receipt of an ED command by replying with an FA, after which the host sends another byte to set LED status. The bit positions for the keyboard LEDs appear in Table 6-4. Write a 1 to the specific bit to illuminate the associated keyboard LED. Table 6-4: Keyboard LED Control 7 6 5 Ignored 4 3 2 Caps Lock 1 Num Lock 0 Scroll Lock
Command
EE F3 FE FF
Echo. Upon receiving an echo command, the keyboard replies with the same scan code EE. Set scan code repeat rate. The keyboard acknowledges receipt of an F3 by returning an FA, after which the host sends a second byte to set the repeat rate. Resend. Upon receiving a resend command, the keyboard resends the last scan code sent. Reset. Resets the keyboard. The keyboard sends data to the host only when both the data and clock lines are High, the Idle state. Because the host is the bus master, the keyboard checks whether the host is sending data before driving the bus. The clock line can be used as a clear to send signal. If the host pulls the clock line Low, the keyboard must not send any data until the clock is released. The keyboard sends data to the host in 11-bit words that contain a 0 start bit, followed by eight bits of scan code (LSB first), followed by an odd parity bit and terminated with a 1 stop bit. 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 6-2.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
31
Mouse
A mouse generates a clock and data signal when moved; otherwise, these signals remain High indicating the Idle state. Each time the mouse is moved, the mouse sends three 11-bit words to the host. Each of the 11-bit words contains a 0 start bit, followed by 8 data bits (LSB first), followed by an odd parity bit, and terminated with a 1 stop bit. Each data transmission contains 33 total bits, where bits 0, 11, and 22 are 0 start bits, and bits 10, 21, and 32 are 1 stop bits. The three 8-bit data fields contain movement data as shown in Figure 6-4. Data is valid at the falling edge of the clock, and the clock period is 20 to 30 kHz.
X direction byte 0 X0 X1 X2 X3 X4 X5 X6 X7 P 1
Stop bit
Start bit
Stop bit
Figure 6-4: PS/2 Mouse Transaction As shown in Figure 6-5, a PS/2 mouse employs a relative coordinate system wherein moving the mouse to the right generates a positive value in the X field, and moving to the left generates a negative value. Likewise, moving the mouse up generates a positive value in the Y field, and moving down represents a negative value. The XS and YS bits in the status byte define the sign of each value, where a 1 indicates a negative value.
+Y values (YS=0)
-X values (XS=1)
+X values (XS=0)
-Y values (YS=1)
UG130_c6_05_042404
Figure 6-5:
The magnitude of the X and Y values represent the rate of mouse movement. The larger the value, the faster the mouse is moving. The XV and YV bits in the status byte indicate when the 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. The L and R fields in the status byte indicate Left and Right button presses. A 1 indicates that the associated mouse button is being pressed.
32
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Voltage Supply
Voltage Supply
Most modern keyboards and mice work equally well from a 3.3V or 5V supply. The voltage supply for the PS/2 port is selectable via the JP2 jumper, indicated as 30 in Figure 1-2, located immediately above the PS/2 connector along the right edge. The 3.3V setting is preferred as the FPGAs output signals operate from the 3.3V supply. The JP2 jumper should be positioned as shown in Table 6-5 by default. Table 6-5: PS/2 Port Supply Voltage Options Jumper JP2 Setting
3.3V JP2 VU VU JP2
Some older keyboards and mice are 5V only. Consequently, the JP2 jumper should be set for 5V operation as shown in Table 6-5. The Spartan-3 FPGA can tolerate 5V signals due to the 270 series resistors on the PS/2 data and clock signals connected to the FPGA. See the schematic in Figure A-7 for more details.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
3.3V
5V
33
34
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 7
RS-232 Port
The Spartan-3 Starter Kit board has an RS-232 serial port. The RS-232 transmit and receive signals appear on the female DB9 connector, labeled J2, indicated as 6 in Figure 1-2. The connector is a DCE-style port and connects to the DB9 DTE-style serial port connector available on most personal computers and workstations. Use a standard straight-through serial cable to connect the Spartan-3 Starter Kit board to the PCs serial port. Figure 7-1 shows the connection between the FPGA and the DB9 connector, including the Maxim MAX3232 RS-232 voltage converter, indicated as 7 in Figure 1-2. The FPGA supplies serial output data as LVTLL or LVCMOS levels to the Maxim device, which in turn, converts the logic value to the appropriate RS-232 voltage level. Likewise, the Maxim device converts the RS-232 serial input data to LVTLL levels for the FPGA. A series resistor between the Maxim output pin and the FPGAs RXD pin protects against accidental logic conflicts. A detailed schematic appears in Figure A-7. Hardware flow control is not supported on the connector. The ports DCD, DTR, and DSR signals connect together, as shown in Figure 7-1. Similarly, the ports RTS and CTS signals connect together.
Pin 5 Pin 1
Pin 9 DB9 Connector Maxim MAX3232 1 6 2 7 3 8 4 9 5 RS-232 Voltage Converter GND 13 12 14 11 TXD RXD T13 R13 DB9 Serial Port Connector (front view)
Pin 6
Spartan-3 FPGA
UG130_c7_01_042404
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
35
The FPGA connections to the Maxim RS-232 translator appear in Table 7-1. Table 7-1: Accessory Port Connections to the Spartan-3 FPGA FPGA Pin T13 R13 N10 T14
An auxiliary RS-232 serial channel from the Maxim device is available on two 0.1-inch stake pins, indicated as J1 in the schematic and 8 in Figure 1-2. The FPGA connections driving the Maxim device appear in Table 7-1 with signals RXD-A and TXD-A.
36
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 8
Clock Sources
The Spartan-3 Starter Kit board has a dedicated 50 MHz Epson SG-8002JF series clock oscillator source and an optional socket for another clock oscillator source. Figure A-5 provides a detailed schematic for the clock sources. The 50 MHz clock oscillator is mounted on the bottom side of the board, indicated as 14 in Figure A-5. Use the 50 MHz clock frequency as is or derive other frequencies using the FPGAs Digital Clock Managers (DCMs). Using Digital Clock Managers (DCMs) in Spartan-3 FPGAs http://www.xilinx.com/bvdocs/appnotes/xapp462.pdf
15
Clock Oscillator Sources Oscillator Source 50 MHz (IC4) Socket (IC8) FPGA Pin T9 D9
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
37
38
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 9
Description DEFAULT. The FPGA automatically boots from the Platform Flash.
MODE
or
JP1 JP1
M0 M1 M2
The FPGA attempts to boot from a serial configuration source attached to either expansion connector A2 or B1. Another device connected to either the A2 or B1 expansion connector provides serial data and clock to load the FPGA.
M0 M1 M2
MODE
GND J8
JP1
M0 M1 M2
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
MODE
GND J8
JP1
The FPGA attempts to boot from a parallel configuration source attached to the B1 expansion connector.
www.xilinx.com 1-800-255-7778
39
Table 9-1:
Description Another device connected to the B1 expansion connector provides parallel data and clock to load the FPGA.
JTAG <1:0:1>
GND J8
M0 M1 M2 MODE
JP1
The FPGA waits for configuration via the four-wire JTAG interface.
VGA
17 18
VGA
DONE PROG
UG130_c9_03_042604
40
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 10
Description The FPGA boots from Platform Flash. No additional data storage is available. The FPGA boots from Platform Flash, which is permanently enabled. The FPGA can read additional data from Platform Flash. Jumper removed. Platform Flash is disabled. Other configuration data source provides FPGA boot data.
Default Option
For most applications, this is the default jumper setting. As shown in Figure 10-1, the Platform Flash is enabled only during configuration when the FPGAs DONE pin is Low. When the DONE pin goes High at the end of configuration, the Platform Flash is disabled and placed in low-power mode.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
41
Spartan-3 FPGA
M0 M1 M2
J8 MODE
Platform Flash
JP1
D0 OE/RESET CE CLK
Default
Spartan-3 FPGA
M0 M1 M2
J8 MODE
Platform Flash
JP1
(M11) (N9)
D0 OE/RESET CE CLK
Flash Read
USER I/O
(A14) RCLK
UG130_c10_02_042504
Figure 10-2:
Read Additional Data from Platform Flash by Setting the JP1 Jumper
The resistor between the CCLK output and FPGA pin A14 prevents any accidental conflicts between the two signals.
42
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Disable Option
Additional FPGA logic is required to read the Platform Flash data, as described in the following application note. XAPP694: Reading User Data from Configuration PROMs http://www.xilinx.com/bvdocs/appnotes/xapp694.pdf
Disable Option
If the JP1 jumper is removed, then the Platform Flash is disabled, potentially allowing configuration via an expansion board connected to one of the expansion connectors.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
43
44
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 11
PlatformFlash (XCF02S)
2 1 4
10 4 6
TDO
TDO
UG130_c11_01_042504
Figure 11-1:
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
45
20
Figure 11-2: Digilent JTAG Cable Provided with Kit Connects to the J7 Header The J7 header also supports the Xilinx Parallel Cable 3 (PC3) download/debugging cable when using the flying leaders. Again, make sure that the signals at the end of the JTAG cable align with the labels listed on the board. Figure A-4 provides a detailed schematic of the J7 header and the JTAG programming chain.
Use the 14-pin ribbon cable supplied with both cables to connect to the J5 header. DO NOT use the flying leads that are also provided with some cables. Although the MultiPro Desktop Tool and the Parallel Cable IV support multiple FPGA configuration modes, the Spartan-3 Starter Kit board only supports the JTAG configuration method. The header is designed for a keyed socket. However, the Spartan-3 Starter Kit uses only stake pins. The outline of the keyed connector appears around the J5 header, as shown in Figure 11-3. When properly inserted, the keyed header matches the outline on the board and the ribbon cable crosses over the top edge of the board. The red-colored lead indicates pin 1 on the cable and should be on the left side.
46
www.xilinx.com 1-800-255-7778
J7
22
UG130_c11_02_042504
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
24
Figure 11-3:
Use 14-Pin Ribbon Cable to Connect Parallel Cable IV or the MultiPro Desktop Tool to the J5 Header
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
47
48
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 12
Power Distribution
AC Wall Adapter
The Spartan-3 Starter Kit includes an international-ready AC wall adapter that produces a +5V DC output. Connect the AC wall adapter to the barrel connector along the left edge of the board, indicated as 25 in Figure 1-2. There is no power switch to the board. To disconnect power, remove the AC adapter from the wall or disconnect the barrel connector. The POWER indicator LED, shown as 26 in Figure 1-2, lights up when power is properly applied to the board. If the jumpers in the J8 header and JP1 header are properly configured and there is a valid design in the Platform Flash memory, then the DONE indicator LED, shown as 18 in Figure 1-2, also lights up. The AC wall adapter is directly compatible for North America, Japan, and Taiwan locales. Other locations might require a socket adapter to convert from the North American standard to the local power socket standard. The AC wall adapter operates from 100V to 240V AC input, at 50 or 60 Hz.
Voltage Regulators
There are multiple voltages supplied on the Spartan-3 Starter Kit Board, as summarized in Table 12-1. Table 12-1: Voltage +5V DC Voltage Supplies and Sources Source AC Wall Adapter, 5V switching power supply ( 25 in Figure 1-2) 3.3V regulator Optionally, PS/2 port via jumper JP2 setting Pin 1 (VU) on A1, A2, B1 expansion connectors +3.3V DC National Semiconductor LM1086CS-ADJ 3.3V regulator ( 27 in Figure 1-2) 2.5V and 1.2V regulators VCCO supply input for all FPGA I/O banks Most components on the board Pin 3 on A1, A2, B1 expansion connectors +2.5V DC +1.2V DC STMicroelectronics LF25CDT 2.5V regulator ( 28 in Figure 1-2) 1.2V regulator (
29
Supplies
in Figure 1-2)
Overall, the 5V DC switching power supply that connects to AC wall power powers the board. A 3.3V regulator, powered by the 5V DC supply, generates power for the 2.5V and
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
49
1.2V regulators. Similarly, the 3.3V supply feeds all the VCCO voltage supply inputs to the FPGAs I/O banks and powers most of the components on the board. The 2.5V regulator, powered by the 3.3V regulator, supplies power to the FPGAs VCCAUX supply inputs. The VCCAUX voltage input supplies power to Digital Clock Managers (DCMs) within the FPGA and supplies some of the I/O structures. In specific, all of the FPGAs dedicated configuration pins, such as DONE, PROG_B, CCLK, and the FPGAs JTAG pins, are powered by VCCAUX. The FPGA configuration interface on the board is powered by 3.3V. Consequently, the 2.5V supply has a current shunt resistor to prevent back current. Finally, a 1.2V regulator supplies power to the FPGAs VCCINT voltage inputs, which power the FPGAs core logic. The board uses three discrete regulators to generate the necessary voltages. However, various power supply vendors are developing integrated solutions specifically for Spartan-3 FPGAs. Figure A-3 provides a detailed schematic of the various voltage regulators. Similarly, Figure A-6 shows the power decoupling capacitors.
50
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Chapter 13
A1 Expansion Connector
A2 Expansion Connector
19
UG130_c12_01_042504
Figure 13-1:
Table 13-1 summarizes the capabilities of each expansion port. Port A1 supports a maximum of 32 user I/O pins, while the other ports provide up to 34 user I/O pins. Some pins are shared with other functions on the board, which may reduce the effective I/O count for specific applications. For example, pins on the A1 port are shared with the SRAM address signals and the SRAM OE# and WE# control signals. Table 13-1: Connector A1 A2 B1 Expansion Connector Features User I/O 32 34 34 SRAM Address JTAG Serial Configuration Parallel Configuration
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
B1 Expansion Connector
51
Each port offers some ability to program the FPGA on the Spartan-3 Starter Kit Board. For example, port A1 provides additional logic to drive the FPGA and Platform Flash JTAG chain. Similarly, ports A2 and B1 provide connections for Master or Slave Serial mode configuration. Finally, port B1 also offers Master or Slave Parallel configuration mode. Each 40-pin expansion header, shown in Figure 13-2, uses 0.1-inch (100 mil) DIP spacing. Pin 1 on each connector is always GND. Similarly, pin 2 is always the +5V DC output from the switching power supply. Pin 3 is always the output from the +3.3V DC regulator.
Pin 39 Pin 3: +3.3V Pin 1: GND Pin 39
Figure 13-2:
The pinout information for each connector appears below. The tables include the connections between the FPGA and the expansion connectors plus the signal names used in the detailed schematic in Figure A-1.
A1 Connector Pinout
The A1 expansion connector is located along the top edge of the board, on the left, as indicated by 21 in Figure 1-2. Table 13-2 provides the pinout for the A1 connector. The FPGA connections are specified in parentheses. Table 13-2: Pinout for A1 Expansion Connector FPGA Pin Connector 1 VCCO (all banks) (N7) (T8) (R6) (T5) (R5) (C2) (C1) 3 5 7 9 11 13 15 17 2 4 6 8 10 12 14 16 18 (N8) (L5) SRAM A0 (N3) SRAM A1 (M4) SRAM A2 (M3) SRAM A3 (L4) SRAM A4 (G3) SRAM WE# (K4) SRAM OE# FPGA Pin Schematic Name VU (+5V) ADR0 ADR1 ADR2 ADR3 ADR4 ADR5 WE OE
Schematic Name GND VCCO (+3.3V) DB0 DB1 DB2 DB3 DB4 DB5 DB6
52
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Expansion Connectors
Table 13-2:
Pinout for A1 Expansion Connector (Continued) FPGA Pin (B1) (M7) (F3) SRAM A6 (E3) SRAM A8 (G5) SRAM A10 (H4) SRAM A12 (J3) SRAM A14 (K5) SRAM A16 (L3) SRAM A17 (C13) FPGA JTAG TMS Platform Flash JTAG TDO Connector 19 21 23 25 27 29 31 33 35 37 39 20 22 24 26 28 30 32 34 36 38 40 FPGA Pin (P9) FPGA DOUT/BUSY (M10) (G4) SRAM A5 (F4) SRAM A7 (E4) SRAM A9 (H3) SRAM A11 (J4) SRAM A13 (K3) SRAM A15 JTAG Isolation (C14) FPGA JTAG TCK Header J7, pin 3 Schematic Name CSA MA1-DB0 MA1-DB2 MA1-DB4 MA1-DB6 MA1-ASTB MA1-WRITE MA1-RESET JTAG Isolation TCK TDO-A
Schematic Name DB7 LSBCLK MA1-DB1 MA1-DB3 MA1-DB5 MA1-DB7 MA1-DSTB MA1-WAIT MA1-INT TMS TDO-ROM
The A1 expansion connector shares connections with the 256Kx16 SRAM devices, specifically the SRAM address lines, and the OE# and WE# control signals. Similarly, the JTAG chain is available on pins 36 through 40. Pin 20 is the FPGA DOUT/BUSY configuration signal and toggles during the FPGA configuration process.
A2 Connector Pinout
The A2 expansion connector is located along the top edge of the board, on the right, as indicated by 20 in Figure 1-2. Figure 13-3 provides the pinout for the A2 connector. The FPGA connections are specified in parentheses. Most of the A2 expansion connector pins connect only with the FPGA and are not shared. Pin 35 connects to the auxiliary clock socket, if an oscillator is installed in the socket. Pins 36 through 40 include the signals required to configure the FPGA in Master or Slave Serial mode.
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
53
Table 13-3:
Pinout for A2 Expansion Connector FPGA Pin Connector 1 VCCO (all banks) (D5) (D6) (E7) (D7) (D8) (D10) (B4) (B5) (B6) (A7) (A8) (B10) (B11) (A12) (A13) (D9) Oscillator socket (R14) FPGA DONE (T15) FPGA CCLK Connects to (A14) via 390 resistor 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 (E6) (C5) (C6) (C7) (C8) (C9) (A3) (A4) (A5) (B7) (B8) (A9) (A10) (B12) (B13) (B14) (B3) FPGA PROG_B (N9) FPGA INIT_B (M11) FPGA Pin Schematic Name VU (+5V) PA-IO1 PA-IO3 PA-IO5 PA-IO7 PA-IO9 PA-IO11 PA-IO13 PA-IO15 PA-IO17 MA2-DB0 MA2-DB2 MA2-DB4 MA2-DB6 MA2-ASTB MA2-WRITE MA2-RESET PROG-B INIT DIN
Schematic Name GND VCCO (+3.3V) PA-IO2 PA-IO4 PA-IO6 PA-IO8 PA-IO10 PA-IO12 PA-IO14 PA-IO16 PA-IO18 MA2-DB1 MA2-DB3 MA2-DB5 MA2-DB7 MA2-DSTB MA2-WAIT MA2-INT/GCK4 DONE CCLK
B1 Connector Pinout
The B1 expansion connector is located on the right edge of the board, as indicated by 19 in Figure 1-2. Table 13-4 provides the pinout for the B1 connector. The FPGA connections are specified in parentheses. Most of the B1 expansion connector pins connect only with the FPGA and are not shared. Pins 36 through 40 include the signals required to configure the FPGA in Master or Slave Serial mode. These same pins plus pins 5, 7, 9, 11, 13, 15, 17, 19, and 20 provide the signals required to configure the FPGA in Master or Slave Parallel mode.
54
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Expansion Connectors
Table 13-4:
Pinout for B1 Expansion Connector FPGA Pin Connector 1 VCCO (all banks) (T3) FPGA RD_WR_B config (N11) FPGA D1 config (P10) FPGA D2 config (R10) FPGA D3 config (T7) FPGA D4 config (R7) FPGA D5 config (N6) FPGA D6 config (M6) FPGA D7 config (C15) (D15) (E15) (F15) (G16) (H16) (K16) (L15) (R14) FPGA DONE (T15) FPGA CCLK Connects to (A14) via 390 resistor 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 (C10) (E10) (C11) (D11) (C12) (D12) (E11) (B16) (R3) FPGA CS_B config (C16) (D16) (E16) (G15) (H15) (J16) (K15) (B3) FPGA PROG_B (N9) FPGA INIT_B (M11) FPGA Pin Schematic Name VU (+5V) PB-ADR0 PB-ADR1 PB-ADR2 PB-ADR3 PB-ADR4 PB-ADR5 PB-WE PB-OE PB-CS MB1-DB0 MB1-DB2 MB1-DB4 MB1-DB6 MB1-ASTB MB1-WRITE MB1-RESET PROG-B INIT DIN
Schematic Name GND VCCO (+3.3V) PB-DB0 PB-DB1 PB-DB2 PB-DB3 PB-DB4 PB-DB5 PB-DB6 PB-DB7 PB-CLK MB1-DB1 MB1-DB3 MB1-DB5 MB1-DB7 MB1-DSTB MB1-WAIT MB1-INT DONE CCLK
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
55
Expansion Boards
Various expansion boards plug into the A1, A2, or B1 connectors as listed below: Spartan-3 Starter Kit Expansion Boards http://www.xilinx.com/s3boards Digilent Expansion Boards https://digilent.us/Sales/boards.cfm#Peripheral Digilent Breakout Probe Header (TPH1) https://digilent.us/Sales/Product.cfm?Prod=TPH1 Digilent Breadboard (DBB1) https://digilent.us/Sales/Product.cfm?Prod=DBB1 Digilent Wire-wrap Board (DWR1) https://digilent.us/Sales/Product.cfm?Prod=DWR1 Digilent SPP, EPP, ECP Parallel Port (PIO1) https://digilent.us/Sales/Product.cfm?Prod=PIO1
56
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Appendix A
Board Schematics
This appendix provides the schematics for the Spartan-3 Starter Kit Board: Figure A-1, A1, A2, and B1 Expansion Connectors Figure A-2, Slide Switches, Push Buttons, LEDs, and Four-Character 7-Segment Display Figure A-3, Voltage Regulators, JP2 Jumper Setting for PS/2 Port Voltage Figure A-4, FPGA Configuration Interface, Platform Flash, JTAG Connections, Jumper JP1 Figure A-5, FPGA I/O Connections, Clock Sources Figure A-6, Power Decoupling Capacitors Figure A-7, RS-232 Serial Port, VGA Port, PS/2 Port, Parallel Cable IV JTAG Interface Figure A-8, 2x256Kx16 Fast Asynchronous SRAM Interface Figure A-9, Digilent JTAG3 Low-Cost JTAG Download/Debug Cable
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
57
UG130_ApA_01_042604
Figure A-1:
58
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
UG130_ApA_02_042604
Figure A-2: Slide Switches, Push Buttons, LEDs, and Four-Character 7-Segment Display
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
59
UG130_ApA_03_042604
Figure A-3:
60
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
UG130_ApA_04_042604
Figure A-4:
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
61
UG130_ApA_05_042604
62
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
UG130_ApA_06_042604
Figure A-6:
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
63
UG130_ApA_07_042604
Figure A-7:
RS-232 Serial Port, VGA Port, PS/2 Port, Parallel Cable IV JTAG Interface
64
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
UG130_ApA_08_042604
Figure A-8:
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
65
UG130_ApA_09_042604
Figure A-9:
66
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
Appendix B
Major Components and Data Sheet Links Vendor Xilinx, Inc. Xilinx, Inc. Integrated Silicon Solutions, Inc. (ISSI) Maxim Epson Interex National Semiconductor STMicroelectronics ? Part Number XC3S200-4FT256C XCF02SVO20C IS61LV25616AL-10T MAX3232 SG-8002JF APA-101M-05 LM1086CS-ADJ LF25CDT Description/Data Sheet Link Spartan-3 FPGA
http://www.xilinx.com/bvdocs/publications/ds099.pdf
14
25 27
28
2.5V Regulator
http://www.st.com/stonline/books/pdf/docs/2574.pdf
29
1.2V Regulator
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004
www.xilinx.com 1-800-255-7778
67
68
www.xilinx.com 1-800-255-7778
Spartan-3 Starter Kit Board User Guide UG130 (v1.0) April 26, 2004