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: 
Newbie osutodd24
Newbie
16,708 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
Newbie gharri01
Newbie
16,618 Views
Registered: ‎01-08-2008

Re: Getting checksum

 
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
Newbie tdpike
Newbie
16,282 Views
Registered: ‎03-26-2008

Re: Getting checksum

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
Xilinx Employee
Xilinx Employee
9,447 Views
Registered: ‎08-02-2007

Re: Getting checksum

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