Previous

Testing the Design Using a Demonstration Board

The FPGA demonstration board includes both an XC3000 family socket and an XC4000 family socket. This tutorial only targets the XC4000 family.

Figure 9.1 FPGA Demonstration Board Components

Preparing the Design for Readback

If you are verifying the schematic design, be sure that you have placed the DEBUG_CKT macro in your design as explained in the “Hardware Verification -- Startup and Readback (Optional)” section of the “In-Depth Tutorial - Schematic-Based Design” chapter of this tutorial in order to enable the Readback functionality. (The HDL design already contains the DEBUG_CKT macro.) This step is not necessary if you intend only to perform design download and not readback verification.

.

Figure 9.2 DEBUG_CKT Symbol Connections

The DEBUG_CKT macro provides three functions used in debugging the Watch design: Readback, Startup, and clock Mux. These are not all necessary but are offered as examples for accommodating in-circuit testing.

Generating a Bitstream

You have already created the bitstream for this design when you implemented the design in the “In-Depth Tutorial - Design Implementation” chapter. You will use this bitstream file to configure the FPGA on the Xilinx demonstration board.

Connecting the Cable

To load the configuration bitstream to the demonstration board, you need one of the three available hardware cables: an XChecker cable, a parallel cable, or a serial cable. All three cables work with any of the Xilinx demonstration boards; however, the XChecker cable is the only cable that supports readback verification and debugging.

Before physically downloading the design into the FPGA on a Xilinx demonstration board, you must correctly hook up the board to your computer.

You must also connect several control and power pins between the board and the cable. The bundles of leads supplied with the cables are labeled to help you connect the board to the cable.

Finally, you must connect a pair of power and ground pins to a regulated 5 volt power supply to provide power to the board and cable.

  1. Plug one end of the cable into the back of your computer.

    If you are using a parallel cable, attach the cable to a parallel port. If you are using a serial cable or the XChecker cable, connect the cable to a serial port.

  2. Connect the other end of the cable to your demonstration board. If using the XChecker cable, you should have two different sets of jumpers available.

    “Flying Leads” are bound and keyed at one end, and separate and labeled at the other. Flying Leads are shipped with each cable type.

    “XChecker Jumpers” are bound and keyed at both ends. They are shorter than the flying leads and are not labeled. XChecker Jumpers are only shipped with the demonstration board.

    To download the Watch Tutorial, Xilinx recommends using the Flying Leads since using the XChecker Jumpers requires some additional jumpers not supplied. However, in general to download to the demonstration board, the XChecker Jumpers are a fast and easy method for attaching the XChecker Cable.

    Cable connections to download to the demonstration board are shown in the following table.

    Table 9_1 Cable Connections (Downloading)

    Cable Label
    FPGA Board (XC4000E)
    VCC
    J2-1
    GND
    J2-3
    No Connection
    J2-5
    CCLK
    J2-7
    D/P
    J2-9
    DIN
    J2-11
    XChecker and Serial Download Cable
    PROG
    J2-13
    XChecker Cable Only
    INIT
    J2-15
    RST
    J2-17 (Pin 56)




    NOTE

    The RST connection is not necessary for downloading XC4000 designs. This connection is used by the Hardware Debugger for resetting the FPGA design after configuration. If you are using the Flying Lead connectors, then connect the RST lead to Pin 56 of the XC4003E. To make this connection if you are using the XChecker Jumpers, you must close the J7 jumpers on the demonstration board.


    The “FPGA Design Demonstration Board” chapter of the Hardware User Guide discusses in detail the demonstration board and how to hook it up.

  3. Connect the RT and RD pins, which are used for triggering and capturing readback data. Refer to the following table for pin location information.



    Table 9_2 Cable Connections (Verification and Debugging)

    XChecker Cable Label
    FPGA Board (XC4000E)
    CCLK
    J2-7
    RT
    J2-2
    RD
    J2-4
    TRIG
    J2-6
    CLKI
    J2-16
    CLKO
    J2-18 (Pin 13)



  4. Connect the CLKO lead to Pin 13 of the XC4003E. The CLKI and TRIG lead can be left unconnected.


    NOTE

    For synchronous debugging, if you are using the XChecker Jumpers, then another jumper connection must be made from J10 Pin 3 to Pin 13.


  5. Ensure that the power supply is connected to the demonstration board at J9 and is turned on.

    The power connections for the demonstration board are shown in the following table.

Table 9_3 Demonstration Board Power Connections

FPGA Board
J9-1
+5 volts
J9-2
Gnd

Make sure the FPGA demonstration board is set up for slave mode configuration. The configuration mode for the XC4000E family part is controlled by the SW2 bank of switches. Set the switches as shown in the following table.

Table 9_4 SW2 Switch Settings for XC4000E Configuration

Switch
Label
Setting
SW2-1
PWR
Don't Care
SW2-2
MPE
Open
SW2-3
SPE
Open
SW2-4
M0
Closed
SW2-5
M1
Closed
SW2-6
M2
Closed
SW2-7
RST
Closed
SW2-8
INIT
Open


NOTE

The RST switch SW2-7 must be Open in order to configure the XC4000E device without disturbing the XC3000 if it has already been configured. However, this tutorial utilizes only the XC4000E, and the Watch design requires this connection to be Closed so that the RESET button is connected to the GSR input at Pin 56.


Next