cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
16,911 Views
Registered: ‎01-04-2008

Getting checksum

Hello, I am trying to figure out how to find the checksum of a .mcs file.  Normally I can get it when I load the file onto the Xilinx device using iMPACT.  But I want to know what the checksum will be without having the device physically available.  Is this possible?  Thank you very much for any help you can give.

-Todd
0 Kudos
3 Replies
Highlighted
Newbie
Newbie
16,821 Views
Registered: ‎01-08-2008

 
Hi Todd:
 
 
Try using the -c option in promgen when generating your .mcs file.  This should create a .prm file that includes the checksum for the MCS file.  See example below and reference to promgen in Xilinx manuals.
 
 
Example:
 
> promgen -c -w -u 0x0 test_design.bit -o known_good
Release 9.2.03i - Promgen J.39
Copyright (c) 1995-2007 Xilinx, Inc.  All rights reserved.
0x1acd80 (1756544) bytes loaded up from 0x0
Using generated prom size of 2048K
Writing file "known_good.mcs".
Writing file "known_good.prm".

 
 
> cat known_good.prm
PROMGEN: Xilinx Prom Generator J.39
Copyright (c) 1995-2007 Xilinx, Inc.  All rights reserved.
 
promgen -c -w -u 0x0 test_design.bit -o known_good  
 
PROM known_good.prm map: Tue Dec 11 08:51:38 2007
 
Calculating PROM checksum with fill value ff
 
Format        Mcs86 (32-bit)
Size          2048K
PROM start    0000:0000
PROM end      001f:ffff
PROM checksum 052e6e5d
 
        Addr1        Addr2                     Date File(s)
    0000:0000    001a:cd7f     Dec 11 08:41:11 2007 test_design.bit

 
 
 
Promgen documentation:
http://toolbox.xilinx.com/docsan/xilinx8/books/data/docs/dev/dev0148_21.html
 
 
 
Kind Regards,
 
Greg
0 Kudos
Highlighted
Newbie
Newbie
16,485 Views
Registered: ‎03-26-2008

Greg,
 
Do you know of a way to manually calculate the checksum?  The MCS info in the xilinx documentation only tells about the individual record checksums.  How is the file checksum, as reported by iMPACT or PROMGEN, calculated from the MCS file?  It should be a 32-bit number.
0 Kudos
Highlighted
Anonymous
Not applicable
9,650 Views

Hi,

There is an answer record on how the checksum is calculated, please take a look: http://www.xilinx.com/support/answers/18884.htm

0 Kudos