OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [xilinx_avnet_lx9microbard/] [synthesis/] [xilinx/] [scripts/] [impact_program_fpga.batch] - Rev 161

Go to most recent revision | Compare with Previous | Blame | View Log



#-----------------------------------------------------------------------------#
# Sets the operating mode for Boundary-Scan (JTAG).                           #
#-----------------------------------------------------------------------------#
setMode -bscan

#-----------------------------------------------------------------------------#
# Tells iMPACT to automatically detect the cable. A Xilinx programming cable  #
# must be connected to your computer.                                         #
#-----------------------------------------------------------------------------#
setCable -port auto

#-----------------------------------------------------------------------------#
# Identifies the devices in the Boundary-Scan chain and adds each device to   #
# the list of devices to be configured. Applicable in Boundary-Scan           #
# configuration mode.                                                         #
#-----------------------------------------------------------------------------#
Identify -inferir 
identifyMPM 

#-----------------------------------------------------------------------------#
# Assigns a new configuration file to an existing device.                     #
#  -p    <pos>      - Specifies the position of the device in the chain.      #
#  -file <fileName> - Specifies the name of the configuration file.           #
#-----------------------------------------------------------------------------#
assignFile -p 1 -file "./PROM_NAME.bit"

#-----------------------------------------------------------------------------#
# Indirect programming command which attaches an SPI Flash or BPI Flash       #
# device to an existing FPGA. The Flash device will be programmed through the #
# FPGA. Applicable in Boundary Scan mode.                                     #
# -p   <pos>         - Specifies the position of the FPGA device in the chain.#
# -spi <spiPartName> - Specifies the SPI Flash device to attach to the FPGA.  #
# -bpi <bpiPartName> - Specifies the BPI Flash device to attach to the FPGA.  #
#-----------------------------------------------------------------------------#
attachflash -position 1 -spi "N25Q128"

#-----------------------------------------------------------------------------#
# Indirect programming command which assigns a new configuration file to an   #
# existing BPI or SPI Flash device attached to an FPGA. The Flash device will #
# be programmed through the FPGA. Applicable in Boundary Scan mode.           #
# -p    <pos>      - Specifies the position of the FPGA device in the chain.  #
# -file <fileName> - Specifies the name of the configuration file.            #
#-----------------------------------------------------------------------------#
assignfiletoattachedflash -p 1 -file "./PROM_NAME.mcs"

#-----------------------------------------------------------------------------#
# Programs a device with options to erase first, then verify after            #
# programming. Applicable to all configuration modes.                         #
# -p  <pos> - Refers to the position of the device(s) in the chain.           #
# -e        - Erases the device before programming.                           #
# -v        - Verifies the device has been programmed.                        #
# -w        - Write protects the device.                                      #
# -loadfpga - Sends JTAG instruction to the PROM which causes it to           #
#             automatically load the FPGA after PROM programming is complete. #
#-----------------------------------------------------------------------------#
Program -p 1 -dataWidth 1 -spionly -e -v -loadfpga 

#-----------------------------------------------------------------------------#
# Exits iMPACT                                                                #
#-----------------------------------------------------------------------------#
quit

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.