1 |
153 |
olivier.gi |
|
2 |
|
|
#-----------------------------------------------------------------------------#
|
3 |
|
|
# Sets the operating mode for PROM file generation. #
|
4 |
|
|
#-----------------------------------------------------------------------------#
|
5 |
|
|
setMode -pff
|
6 |
|
|
|
7 |
|
|
#-----------------------------------------------------------------------------#
|
8 |
|
|
# Switches to the Slave SPI sub-mode of PROM File Generation mode. #
|
9 |
|
|
#-----------------------------------------------------------------------------#
|
10 |
|
|
setSubmode -pffserial
|
11 |
|
|
|
12 |
|
|
#-----------------------------------------------------------------------------#
|
13 |
|
|
# Adds a single 128MB PROM to position 1. #
|
14 |
|
|
#-----------------------------------------------------------------------------#
|
15 |
|
|
addPromDevice -p 1 -size 0 -name xcf02s
|
16 |
|
|
|
17 |
|
|
#-----------------------------------------------------------------------------#
|
18 |
|
|
# Adds a single design set. #
|
19 |
|
|
# The version and name need to be set to zero for a PROM file generation #
|
20 |
|
|
# sequence, and only needs to be set once. #
|
21 |
|
|
#-----------------------------------------------------------------------------#
|
22 |
|
|
addDesign -version 0 -name 0
|
23 |
|
|
|
24 |
|
|
#-----------------------------------------------------------------------------#
|
25 |
|
|
# Adds a single chain to the design set. #
|
26 |
|
|
# The index needs to be set to zero for PROM file generation sequence, and #
|
27 |
|
|
# only needs to be set once. #
|
28 |
|
|
#-----------------------------------------------------------------------------#
|
29 |
|
|
addDeviceChain -index 0
|
30 |
|
|
|
31 |
|
|
#-----------------------------------------------------------------------------#
|
32 |
|
|
# Adds a device to the first position in the target chain and assigns #
|
33 |
|
|
# the *.bit configuration file to the device. #
|
34 |
|
|
#-----------------------------------------------------------------------------#
|
35 |
|
|
addDevice -p 1 -file "./BITSTREAM_NAME.bit"
|
36 |
|
|
|
37 |
|
|
#-----------------------------------------------------------------------------#
|
38 |
|
|
# Generate *.mcs #
|
39 |
|
|
# The PROM checksum is calculated based on the devices expected fill value. #
|
40 |
|
|
# The default fill value for checksum calculations is FF, which corresponds #
|
41 |
|
|
# to the erased state of the PROM. #
|
42 |
|
|
#-----------------------------------------------------------------------------#
|
43 |
|
|
generate -format mcs -fillvalue FF -output BITSTREAM_NAME
|
44 |
|
|
|
45 |
|
|
#-----------------------------------------------------------------------------#
|
46 |
|
|
# Exits iMPACT #
|
47 |
|
|
#-----------------------------------------------------------------------------#
|
48 |
|
|
quit
|