December 20, 2005
30
xmcsutil.exe
A utility that is used to reverse the
bytes in an MCS file. This is needed
by the xspi_at utility.
xspi_at.exe
This utility is used to erase, program
and verify the Atmel serial flash on
the Virtex-4 MB development board.
prog_flash.bat
This batch file calls the xmcsutil and
xspi_at utilities to erase, program and
verify the Atmel serial flash on the
Virtex-4 MB development board.
spi_cpld.jed
Programming file for the XC9536XV
CPLD
5. Generate a bit file for the FPGA
6. Use iMPACT to generate an MCS file for the bit file generated in the previous step. When
generating the MCS file, select a single platform flash device that will hold the entire
design configuration bits. The following table shows the platform flash devices that must
be used when generating the MCS file in iMPACT for the Virtex-4 MB board:
Table 27 – Platform Flash Selection
FPGA
Platform Flash Used
LX25
XCF08P, XCF16P or XCF32P
LX60
XCF32P
Sx35
XCF16P or XCF32P
7. Un-install JP9 jumpers.
8. Make sure JP12 jumper is un-installed. When JP12 jumper is un-installed, the CPLD
outputs are placed in the tri-state mode allowing the Flash Programming Header to drive
the serial flash SPI bus.
9. Connect a PC4 cable to the Flash Programming Header (JP17) and power up the Virtex-
4 MB development board.
10. Copy the MCS file to the
C:\Flash_Utilities
folder
11. Open a DOS window in the
C:\Flash_Utilities
folder and enter the following command to
program the serial flash:
C:\
Flash_Utilities
> prog_flash design_name.mcs flash_part_number
Where:
design_name.mcs
-> The mcs file generated using
the bit file
flash_part_number
-> Either AT45DB321B or
AT45DB321C (V4MB board is populated with one or
the other device).
The prog_flash batch file will erase the flash, program and verify it.