Difference between revisions of "How to program a Xilinx Spartan-3A DSP Starter Kit PROM"
From steamWiki
| Line 10: | Line 10: | ||
#Download and install [https://secure.xilinx.com/webreg/register.do?group=dlc&htmlfile=&emailFile=&cancellink=&eFrom=&eSubject=&version=10.1&akdm=1&filename=pgmtools_sfd.tar Xilinx iMPACT 10.1] if you don't already have it. | #Download and install [https://secure.xilinx.com/webreg/register.do?group=dlc&htmlfile=&emailFile=&cancellink=&eFrom=&eSubject=&version=10.1&akdm=1&filename=pgmtools_sfd.tar Xilinx iMPACT 10.1] if you don't already have it. | ||
#Download and unzip the [http://steamforge.net/files/Xil3S1800ADSP_Rev1_serial_flash_config_v10.1.zip Xilinx XIP Tool]. | #Download and unzip the [http://steamforge.net/files/Xil3S1800ADSP_Rev1_serial_flash_config_v10.1.zip Xilinx XIP Tool]. | ||
| − | # Copy your .bit file into the folder with the XIP tools. This guide will assume your .bit file is called <span style="color:#55E439">awesome.bit</span>. | + | #Copy your .bit file into the folder with the XIP tools. This guide will assume your .bit file is called <span style="color:#55E439">awesome.bit</span>. |
| − | # Edit <span style="color:#55E439">burn_intel_s33.bat</span> by modifying line 30 to point to your .bit file's name. (ie: change to "set bitstream=awesome"). | + | #Edit <span style="color:#55E439">burn_intel_s33.bat</span> by modifying line 30 to point to your .bit file's name. (ie: change to "set bitstream=awesome"). |
| − | # Ensure that the path to impact.exe is in your <span style="color:#55E439">PATH</span> (typically <span style="color:#55E439">impact.exe</span> is located at something like <span style="color:#55E439">C:\Xilinx\10.1\ISE\bin\nt64\</span>) | + | #Ensure that the path to impact.exe is in your <span style="color:#55E439">PATH</span> (typically <span style="color:#55E439">impact.exe</span> is located at something like <span style="color:#55E439">C:\Xilinx\10.1\ISE\bin\nt64\</span>) |
| − | # With the board power Off, place a jumper on <span style="color:#55E439">JP7</span> & ensure that there is no jumper on <span style="color:#55E439">JP8</span>. | + | #With the board power Off, place a jumper on <span style="color:#55E439">JP7</span> & ensure that there is no jumper on <span style="color:#55E439">JP8</span>. Ensure that both center columns of <span style="color:#55E439">JP9</span> (M1 & M2) are jumpered. |
| − | # Attach a Xilinx Programming Cable (with flying leads) to <span style="color:#55E439">J10</span>. The silkscreen on the board will explain which lead goes where. | + | #Attach a Xilinx Programming Cable (with flying leads) to <span style="color:#55E439">J10</span>. The silkscreen on the board will explain which lead goes where. |
| − | # Power on the board. | + | #Power on the board. |
| − | # Double click on <span style="color:#55E439">burn_intel_s33.bat</span>. | + | #Double click on <span style="color:#55E439">burn_intel_s33.bat</span>. |
| − | + | #Once the process has completed, turn off board power, remove <span style="color:#55E439">JP7</span>, and reapply board power. | |
| + | <br /> | ||
| + | <br /> | ||
=== iMPACT === | === iMPACT === | ||
| + | This technique will only with with iMPACT 11.1 or earlier as later versions removed the Direct SPI Configuration mode. | ||
| + | <br /> | ||
| + | #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 | ||
| + | ##Target a 3rd party SPI PROM, PROM format MCS, name file and set destination as desired | ||
| + | ##Select SPI PROM density as 64M. Leave Add Data Files unchecked. | ||
| + | ##Finish. | ||
| + | ##Click OK and navigate to desired .bit file. Click Open, and double-click Generate File | ||
| + | #Turn off board power | ||
| + | #Connect JTAG to J10 | ||
| + | #Connect jumper to both pins of JP7. Center columns of JP9 should be jumpered (M1 & M2). | ||
| + | #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 | ||
Revision as of 10:19, 1 September 2011
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.
- 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").
- 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\)
- With the board power Off, place a jumper on JP7 & ensure that there is no jumper on JP8. Ensure that both center columns of JP9 (M1 & M2) are jumpered.
- Attach a Xilinx Programming Cable (with flying leads) to J10. The silkscreen on the board will explain which lead goes where.
- 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
- Target a 3rd party SPI PROM, PROM format MCS, name file and set destination as desired
- Select SPI PROM density as 64M. Leave Add Data Files unchecked.
- Finish.
- Click OK and navigate to desired .bit file. Click Open, and double-click Generate File
- Turn off board power
- Connect JTAG to J10
- Connect jumper to both pins of JP7. Center columns of JP9 should be jumpered (M1 & M2).
- 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