Jtag Programming - Digilent Genesys 2 Reference Manual

Table of Contents

Advertisement

Page 12 of 35
The FPGA configuration data is stored in files called bitstreams that have the .bit file extension. The ISE or Vivado software
from Xilinx can create bitstreams from VHDL, Verilog, or schematic-based source files (in the ISE toolset, EDK is used for
MicroBlaze™ embedded processor-based designs).
Bitstreams are stored in volatile SRAM-based memory cells within the FPGA. This data defines the FPGA's logic functions
and circuit connections, and it remains valid until it is erased by removing board power, by pressing the reset button attached to
the PROG input, or by writing a new configuration file using the JTAG port.
A Kintex-7 325T bitstream is typically 91,548,896 bits long and can take a long time to transfer depending on the programming
mode. The time it takes to program the Genesys 2 can be decreased by compressing the bitstream before programming, and
then allowing the FPGA to decompress the bitstream itself during configuration. Depending on design complexity,
compression ratios of 10x can be achieved. Bitstream compression can be enabled within the Xilinx tools (ISE or Vivado) to
occur during generation. For instructions on how to do this, consult the Xilinx documentation for the toolset being used. This
option is available for all programming modes.
Mode-specific speed-ups are also available. JTAG clock frequency can be set to the maximum supported by the programming
cable in iMPACT/Vivado Hardware Manager. Similarly, the clock frequency for the SPI Flash can be increased in device
properties (Vivado) or bitstream generation options (ISE). The micro-SD and USB mass-storage device configuration modes
already operate at their maximum possible speed.
After being successfully programmed, the FPGA will cause the "DONE" LED () (LD14) to illuminate. Pressing the "PROG"
button (BTN2) at any time will reset the configuration memory in the FPGA. After being reset, the FPGA will immediately
attempt to reprogram itself from whatever method has been selected by the programming mode jumpers.
The following sections provide greater detail about programming the Genesys 2 using the different methods available.

5.1. JTAG Programming

The Xilinx tools typically communicate with FPGAs using the Test Access Port and Boundary-Scan Architecture, commonly
referred to as JTAG. During JTAG programming, a .bit file is transferred from the PC to the FPGA using the onboard
Digilent USB-JTAG circuitry (port J17) or an external JTAG programmer, such as the Digilent JTAG HS2, attached to port
J19. You can perform JTAG programming at any time after the Genesys 2 has been powered on, regardless of what the mode
jumper (JP5) is set to. If the FPGA is already configured, then the existing configuration is overwritten with the bitstream being
transmitted over JTAG. Setting the mode jumper to the JTAG setting is useful to prevent the FPGA from being configured
from any other bitstream source until a JTAG programming occurs.
Programming the Genesys 2 with an uncompressed bitstream using the on-board USB_JTAG circuitry usually takes around
four seconds with a 30MHz JTAG clock.
JTAG programming can be done using the hardware server in Vivado or the iMPACT tool included with ISE and the Labtools
version of Vivado.
The demonstration project available at digilentinc.com gives an in depth tutorial on how to program your board.
5.2. Quad-SPI Programming

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Genesys 2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents