glip  0.1.0-dev
The Generic Logic Interfacing Project
ZTEX USB-FPGA 1.15d Loopback Demo

This demo implements a loopback in the device.


Before you get started with this demo, make sure that you have the necessary hardware ready and the software installed and configured.

You also need a synthesis toolchain.

Synthesize the design

In the end we want to get from the Verilog sources to a bitstream. In this demo, we use Synopsys Synplify together with Xilinx ISE.

Build and flash the FX2 firmware

The Cypress FX2 chip on the ZTEX boards needs firmware to work properly. Connect the board to your PC and execute the following steps to build and flash the firmware.

$> cd GLIP_DIR/src/backend_cypressfx2/fw/ztex
$> make fw-115.ihx
$> make flash-115

The firmware is written to the EEPROM and does not need to be reloaded after you unplug your board (until you have overwritten it).

Configure the FPGA

When the bitstream has been succesfully generated, you can configure the FPGA with through the Cypress FX2 chip using the ZTEX tools. Adjust the path to the bitstream as given in the section above.

$> FWLoader -c -rf -uf PATH/TO/BITSTREAM.bit

Execute the loopback measurement tool

Execute the GLIP tool "Loopback Mesasure" that measures the loopback performance.

$> glip_loopback_measure -b cypressfx2 -ousb_vid=0x221a,usb_pid=0x0100

The performance should be around 20 MByte/s bidirectional.