UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor cjsquires
Visitor
7,011 Views
Registered: ‎06-16-2010

Impact batch commands for MCS file

I'm trying to write a batch command file to create a MCS file with non-configuration files in it.

 

I'm able to achieve this through the Imact Create PROM file wizard, but so far haven't figured out how to do it in batch mode.

 

Using the wizard I'm able to add a Xilinx image (download.bit), then three non-configuration files at 0xb0000, 0xd0000, and 0x100000 respectively.

 

What I have so far for my batch file is:

 

setMode -pff
setSubmode -pffbpi
addPromDevice -p 1 -size 16384 -name 16M
addDesign -version 0 -name 0
addDeviceChain -index 0
addDevice -p 1 -file download.bit
addDesign -version 1 -name 1
setCurrentDesign -version 1
addDevice -p 1 -file file1.test

addDesign -version 2 -name 2
setCurrentDesign -version 2
addDevice -p 1 -file file2.test
addDesign -version 3 -name 3
setCurrentDesign -version 3
addDevice -p 1 -file file3.test
generate -format mcs -fillvalue FF -output MCS-Ouput-File

quit

Obviously this doesn't work, as I don't define any addressing, but it fails elsewhere as well (ERROR:iMPACT:1405 - At least one device chain is required to add  a device.).

 

If I remove everything except the download.bit file it works as expected (but obviously doesn't have everything I want):

 

setMode -pff
setSubmode -pffbpi
addPromDevice -p 1 -size 16384 -name 16M
addDesign -version 0 -name 0
addDeviceChain -index 0
addDevice -p 1 -file download.bit

generate -format mcs -fillvalue FF -output MCS-Ouput-File

quit

 

Any help on adding non-configuration files in an impact batch file would be greatly appreciated.

 

Thanks.

 

Chris Squires

0 Kudos
3 Replies
Moderator
Moderator
6,995 Views
Registered: ‎02-16-2010

Re: Impact batch commands for MCS file

Hi,

 

When you do any operation using iMPACT, all the commands will be stored in impact.log file.

 

If you are successful through the Imact Create PROM file wizard, refer to impact.log file for the required commands to be used for the batch mode.

 

Thanks,

Srinadh

------------------------------------------------------------------------------
Don't forget to reply, give kudo and accept as solution
------------------------------------------------------------------------------
0 Kudos
Xilinx Employee
Xilinx Employee
6,991 Views
Registered: ‎08-10-2008

Re: Impact batch commands for MCS file

addDesign -version x -name "xx"
setMode -pff
addDeviceChain -index x

setCurrentDesign -version x

addDevice -p 1 -file "xx.xxx"

setAttribute -design -attr endAddress -value "xxx"

 

You should specify the end address.

 

It's much easier to use the PROMGEN command.

 

 

 

------------------------------------------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
---------------------------------------------------------------------------------------------------------
0 Kudos
Xilinx Employee
Xilinx Employee
6,990 Views
Registered: ‎08-10-2008

Re: Impact batch commands for MCS file

promgen -w -p mcs -c FF -o output.mcs -s 16384 -u 00000000 1.bit -data_file up 17f46a file1.txt -data_file up 17f50b file2.hex -data_file up 47db6d file3.nky -bpi_dc parallel

------------------------------------------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
---------------------------------------------------------------------------------------------------------
0 Kudos