URL
https://opencores.org/ocsvn/openmsp430/openmsp430/trunk
Subversion Repositories openmsp430
[/] [openmsp430/] [trunk/] [fpga/] [xilinx_diligent_s3board/] [synthesis/] [xilinx/] [scripts/] [impact_program_fpga.batch] - Rev 191
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 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. #
#-----------------------------------------------------------------------------#
assignFile -p 2 -file "./PROM_NAME.mcs"
#setAttribute -position 2 -attr packageName -value ""
#-----------------------------------------------------------------------------#
# 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 2 -e -v
Program -p 1
#-----------------------------------------------------------------------------#
# Exits iMPACT #
#-----------------------------------------------------------------------------#
quit
Go to most recent revision | Compare with Previous | Blame | View Log