| 1 |
153 |
olivier.gi |
|
| 2 |
|
|
|
| 3 |
|
|
#-----------------------------------------------------------------------------#
|
| 4 |
|
|
# Sets the operating mode for Boundary-Scan (JTAG). #
|
| 5 |
|
|
#-----------------------------------------------------------------------------#
|
| 6 |
|
|
setMode -bscan
|
| 7 |
|
|
|
| 8 |
|
|
#-----------------------------------------------------------------------------#
|
| 9 |
|
|
# Tells iMPACT to automatically detect the cable. A Xilinx programming cable #
|
| 10 |
|
|
# must be connected to your computer. #
|
| 11 |
|
|
#-----------------------------------------------------------------------------#
|
| 12 |
|
|
setCable -port auto
|
| 13 |
|
|
|
| 14 |
|
|
#-----------------------------------------------------------------------------#
|
| 15 |
|
|
# Identifies the devices in the Boundary-Scan chain and adds each device to #
|
| 16 |
|
|
# the list of devices to be configured. Applicable in Boundary-Scan #
|
| 17 |
|
|
# configuration mode. #
|
| 18 |
|
|
#-----------------------------------------------------------------------------#
|
| 19 |
|
|
Identify -inferir
|
| 20 |
|
|
identifyMPM
|
| 21 |
|
|
|
| 22 |
|
|
#-----------------------------------------------------------------------------#
|
| 23 |
|
|
# Assigns a new configuration file to an existing device. #
|
| 24 |
|
|
# -p - Specifies the position of the device in the chain. #
|
| 25 |
|
|
# -file - Specifies the name of the configuration file. #
|
| 26 |
|
|
#-----------------------------------------------------------------------------#
|
| 27 |
|
|
assignFile -p 1 -file "./PROM_NAME.bit"
|
| 28 |
|
|
|
| 29 |
|
|
#-----------------------------------------------------------------------------#
|
| 30 |
|
|
# Indirect programming command which assigns a new configuration file to an #
|
| 31 |
|
|
# existing BPI or SPI Flash device attached to an FPGA. The Flash device will #
|
| 32 |
|
|
# be programmed through the FPGA. Applicable in Boundary Scan mode. #
|
| 33 |
|
|
# -p - Specifies the position of the FPGA device in the chain. #
|
| 34 |
|
|
# -file - Specifies the name of the configuration file. #
|
| 35 |
|
|
#-----------------------------------------------------------------------------#
|
| 36 |
|
|
assignFile -p 2 -file "./PROM_NAME.mcs"
|
| 37 |
|
|
#setAttribute -position 2 -attr packageName -value ""
|
| 38 |
|
|
|
| 39 |
|
|
#-----------------------------------------------------------------------------#
|
| 40 |
|
|
# Programs a device with options to erase first, then verify after #
|
| 41 |
|
|
# programming. Applicable to all configuration modes. #
|
| 42 |
|
|
# -p - Refers to the position of the device(s) in the chain. #
|
| 43 |
|
|
# -e - Erases the device before programming. #
|
| 44 |
|
|
# -v - Verifies the device has been programmed. #
|
| 45 |
|
|
# -w - Write protects the device. #
|
| 46 |
|
|
# -loadfpga - Sends JTAG instruction to the PROM which causes it to #
|
| 47 |
|
|
# automatically load the FPGA after PROM programming is complete. #
|
| 48 |
|
|
#-----------------------------------------------------------------------------#
|
| 49 |
|
|
Program -p 2 -e -v
|
| 50 |
|
|
Program -p 1
|
| 51 |
|
|
|
| 52 |
|
|
#-----------------------------------------------------------------------------#
|
| 53 |
|
|
# Exits iMPACT #
|
| 54 |
|
|
#-----------------------------------------------------------------------------#
|
| 55 |
|
|
quit
|