How to program a Xilinx Spartan-3A DSP Starter Kit PROM
From steamWiki
This guide explains how to program a Xilinx Spartan-3A DSP Starter Kit PROM which is a non-trivial task when compared to other boards designed to work with iMPACT.
There are two versions of the board: one that requires a special XIP tool for programming and another that can be program via older versions of iMPACT. Most of the Spartan-3A DSP Starter Kit's that I have come into contact with have required the XIP tool for programming so I'll describe that procedure 1st.
XIP
The XIP tool is fairly simple to use but appears to only work with iMPACT 10.1 (I was unsuccessful in getting it to work with 11.1 or 13.2.
- Download and install Xilinx iMPACT 10.1 if you don't already have it.
- Download and unzip the Xilinx XIP Tool.
- Generate .bit file as usual from within XPS (be sure to Update Bitstream with latest software)
- Copy your .bit file into the folder with the XIP tools. This guide will assume your .bit file is called awesome.bit.
- Edit burn_intel_s33.bat by modifying line 30 to point to your .bit file's name. (ie: change to "set bitstream=awesome").
- Note that the .bit extension is not used
- Ensure that the path to impact.exe is in your PATH (typically impact.exe is located at something like C:\Xilinx\10.1\ISE\bin\nt64\)
- Ensure the Board is Powered OFF
- Jumper pins 1 & 2 (both pins) on JP7
- Jumper pins 3 to 4 and 5 to 6 (M1 & M2, both center columns) on JP9
- Ensure there is NO Jumper on JP8
- Attach a Xilinx Programming Cable (with flying leads) to J10. The silkscreen on the board will explain which lead goes where.
- VCC Red
- GDN Black
- TCK Yellow
- TDO Violet
- TDI White
- TMS Green
- Power on the board.
- Double click on burn_intel_s33.bat.
- Once the process has completed, turn off board power, remove JP7, and reapply board power.
iMPACT
This technique will only with with iMPACT 11.1 or earlier as later versions removed the Direct SPI Configuration mode.
- Generate .bit file as usual from within XPS (be sure to Update Bitstream with latest software).
- Convert .bit file into a .mcs file using iMPACT
- Open iMPACT
- Create new project
- Prepare a PROM file
- Click Create PROM File (PROM File Formatter) from the iMPACT Flows pane on the upper left
- Select SPI Flash... Configure Single FPGA in Step 1
- Select 64M from the Storage Device (bits) Drop Down & click Add Storage Device in Step 2
- Select Output file Name, Output File Location, and File Format in Step 3
- Click OK
- Select your .bit file from the Add Device window that pops up
- Double click Generate File... from the iMPACT Processes pane in the lower left
- Turn OFF Board Power
- Connect JTAG Programming Cable to J10 as indicated by the table below
LEAD CLR | LEAD LBL | BRD J10 # | BRD J10 LBL |
---|---|---|---|
Red | VREF | 11 | VCC |
Black | GND | 9 | GND |
Yellow | TCK | 7 | SCK |
Grey | HALT | ||
Purple | TDO | 5 | MISO |
White | TMS | 3 | MOSI |
Green | TDI | 1 | SEL |
- Jumper pins 1 & 2 (both pins) on JP7
- Jumper pins 3 to 4 and 5 to 6 (M1 & M2, both center columns) on JP9
- Turn ON Board Power
- Program with iMPACT
- Open iMPACT
- Create New Project
- Choose Configure Devices --> Using Direct SPI Configuration mode
- Finish
- Navigate to desired .mcs file (the one generated in step 2)
- Choose Part Name M25P64
- Check Verify and Erase options as desired, then OK.
- Double-click Program. It takes a minute or two before the progress bar moves.
- Turn OFF Board Power, disconnect the jumper from JP7.
- Turn ON Board Power