D
D
i
i
g
g
i
i
l
l
e
e
n
n
t
t
B
B
a
a
s
s
y
y
s
s
B
B
o
o
a
a
r
r
d
d
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
®
www. d igilent inc.com
Revision: August 18, 2007 215 E Main Suite D | Pullman, WA 99163
(509) 334 6306 Voice and Fax
Copyright Digilent, Inc. All rights reserved
12 pages Doc: 502-107
Introduction
The Basys board is a circuit design and
implementation platform that anyone can use
to gain experience building real digital circuits.
Built around a Xilinx Spartan-3E Field
Programmable Gate Array and a Cypress EZ-
USB controller, the Basys board provides
complete, ready-to-use hardware suitable for
hosting circuits ranging from basic logic
devices to complex controllers. A large
collection of on-board I/O devices and all
required FPGA support circuits are included,
so countless designs can be created without
the need for any other components.
Four standard expansion connectors allow
designs to grow beyond the Basys board
using breadboards, user-designed circuit
boards, or Pmods (Pmods are inexpensive
analog and digital I/O modules that offer A/D
& D/A conversion, motor drivers, sensor
inputs, and many other features). Signals on
the 6-pin connectors are protected against
ESD damage and short-circuits, ensuring a
long operating life in any environment. The
Basys board works seamlessly with all
versions of the Xilinx ISE tools, including the free WebPack. It ships with a USB cable that provides
power and a programming interface, so no other power supplies or programming cables are required.
The Basys board can draw power and be programmed via its on-board USB2 port. Digilent’s freely
available PC-based Adept software automatically detects the Basys board, provides a programming
interface for the FPGA and Platform Flash ROM, and allows user data transfers at up to
400Mbytes/sec (see www.digilentinc.com for more information). The Basys board can also be
programmed from within the Xilinx ISE tool environment using a Digilent JTAG3 (or suitable Xilinx
cable) and a separate power supply.
The Basys board is designed to work with the free ISE WebPack CAD software from Xilinx. WebPack
can be used to define circuits using schematics or HDLs, to simulate and synthesize circuits, and to
create programming files. Webpack can be downloaded free of charge from www.xilinx.com/ise/.
The Basys board ships with a built-in self-test stored in its ROM that can be used to test all board
features. To run the test, set the Mode Jumper (see below) to ROM and apply board power. If the test
is erased from the ROM, it can be downloaded and reinstalled at any time. See
www.digilentinc.com/basys for the test project as well as further documentation, reference designs,
and tutorials.
Xilinx Spartan3E-100 TQ144
VGA Port
Platform
Flash
(config ROM)
Settable Clock
Source
(25 / 50 / 100 MHz)
High Speed
USB2 Port
(JTAG and data transfers)
20
JA JB JC JD
JTAG
port
I/O Devices
PS/2
Port
Pmod Connectors
4444
8 bit
color
232
Data
port
100,000-gate Xilinx Spartan 3E FPGA
Cypress EZ-USB Hi-speed USB2 port providing board power
and programming/data transfer interface
Xilinx Platform Flash ROM to store FPGA configurations
8 LEDs, 4-digit 7-segment display, 4 buttons, 8 slide switches
PS/2 port and 8-bit VGA port
User-settable clock (25/50/100MHz), plus socket for 2
nd
clock
Four 6-pin header expansion connectors
ESD and short-circuit protection on all I/O signals.
Figure 1. Basys board block diagram and features
Digilent
Basys Reference Manual
www.digilentinc.com
Copyright Digilent, Inc. Page 2/12 Doc: 502-107
Board Power
The Basys board is typically powered from a USB cable, but a
power jack and battery connector are also provided so that external
supplies can be used. To use USB power, set the power source
switch (SW8) to USB and attach the USB cable. To use an external
wall-plug power supply, set SW8 to EXT and attach a 5VDC to
9VDC supply to the center-positive, 2.1/5.5mm power jack. To use
battery power, set SW8 to EXT and attach a 4V-9V battery pack to
the 2-pin, 100-mil spaced battery connector (four AA cells in series
make a good 6+/- volt supply). Voltages higher than 9V on either
power connector may cause permanent damage. SW8 can also be
used to turn off main power by setting it to the unused power input
(e.g., if USB power is used, setting SW8 to EXT will shut off board
power without unplugging the USB cable).
Input power is routed through the power switch (SW8) to the four 6-
pin expansion connectors and to a National Semiconductor LP8345 voltage regulator. The LP8345
produces the main 3.3V supply for the board, and it also drives secondary regulators to produce the
2.5V and 1.2V supply voltages required by the FPGA. Total board current is dependant on FPGA
configuration, clock frequency, and external connections. In test circuits with roughly 20K gates
routed, a 50MHz clock source, and all LEDs illuminated, about 100mA of current is drawn from the
1.2V supply, 50mA from the 2.5V supply, and 50mA from the 3.3V supply. Required current will
increase if larger circuits are configured in the FPGA, or if peripheral boards are attached.
The Basys board uses a four layer PCB, with the inner layers dedicated to VCC and GND planes. The
FPGA and the other ICs on the board have large complements of ceramic bypass capacitors placed
as close as possible to each VCC pin, resulting in a very clean, low-noise power supply.
Configuration
After power-on, the FPGA on the Basys board
must be configured before it can perform any
useful functions. During configuration, a “bit” file
is transferred into memory cells within the
FPGA to define the logical functions and circuit
interconnects. The free ISE/WebPack CAD
software from Xilinx can be used to create bit
files from VHDL, Verilog, or schematic-based
source files.
Digilent’s PC-based program called Adept can
be used to configure the FPGA with any
suitable bit file stored on the computer. Adept
uses the USB cable to transfer a selected bit
file from the PC to the FPGA (via the FPGA’s
JTAG programming port). Adept can also
program a bit file into an on-board non-volatile ROM called “Platform Flash”. Once programmed, the
Platform Flash can automatically transfer a stored bit file to the FPGA at a subsequent power-on or
reset event if the Mode Jumper is set to ROM. The FPGA will remain configured until it is reset by a
Figure 2. Basys power circuits
FPGA Reset button
and Done LED
USB Connector
and circuit
JTAG Header and
Mode jumper
Figure 3. Basys programming circuit locations