1 |
157 |
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 attaches an SPI Flash or BPI Flash #
|
31 |
|
|
# device to an existing FPGA. The Flash device will be programmed through the #
|
32 |
|
|
# FPGA. Applicable in Boundary Scan mode. #
|
33 |
|
|
# -p - Specifies the position of the FPGA device in the chain.#
|
34 |
|
|
# -spi - Specifies the SPI Flash device to attach to the FPGA. #
|
35 |
|
|
# -bpi - Specifies the BPI Flash device to attach to the FPGA. #
|
36 |
|
|
#-----------------------------------------------------------------------------#
|
37 |
|
|
attachflash -position 1 -spi "N25Q128"
|
38 |
|
|
|
39 |
|
|
#-----------------------------------------------------------------------------#
|
40 |
|
|
# Indirect programming command which assigns a new configuration file to an #
|
41 |
|
|
# existing BPI or SPI Flash device attached to an FPGA. The Flash device will #
|
42 |
|
|
# be programmed through the FPGA. Applicable in Boundary Scan mode. #
|
43 |
|
|
# -p - Specifies the position of the FPGA device in the chain. #
|
44 |
|
|
# -file - Specifies the name of the configuration file. #
|
45 |
|
|
#-----------------------------------------------------------------------------#
|
46 |
|
|
assignfiletoattachedflash -p 1 -file "./PROM_NAME.mcs"
|
47 |
|
|
|
48 |
|
|
#-----------------------------------------------------------------------------#
|
49 |
|
|
# Programs a device with options to erase first, then verify after #
|
50 |
|
|
# programming. Applicable to all configuration modes. #
|
51 |
|
|
# -p - Refers to the position of the device(s) in the chain. #
|
52 |
|
|
# -e - Erases the device before programming. #
|
53 |
|
|
# -v - Verifies the device has been programmed. #
|
54 |
|
|
# -w - Write protects the device. #
|
55 |
|
|
# -loadfpga - Sends JTAG instruction to the PROM which causes it to #
|
56 |
|
|
# automatically load the FPGA after PROM programming is complete. #
|
57 |
|
|
#-----------------------------------------------------------------------------#
|
58 |
|
|
Program -p 1 -dataWidth 1 -spionly -e -v -loadfpga
|
59 |
|
|
|
60 |
|
|
#-----------------------------------------------------------------------------#
|
61 |
|
|
# Exits iMPACT #
|
62 |
|
|
#-----------------------------------------------------------------------------#
|
63 |
|
|
quit
|