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.
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.
> 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.
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.