Forum Discussion
Reading and calculating image checksum directly from FPGA
- 2 years ago
The checksum from programmer or map file uses only the data which will be programmed to the configuration device.
For pof and jic file, there is some information like quartus version and device information in the head and CRC data in the end, which is excluded in checksum.
https://www.intel.com/content/www/us/en/support/programmable/articles/000078447.html
I have not deeply looked into the pof file, but for the jic file, the checksum (shows in programmer) is calculated from the the data after several dot notation, end at before several dot notation. See the attached capture. I think the pof file is the same algorithm as the jic file.
If you want to get the checksum of the entire data of the pof, please use the tcl command.
Thanks,
Ethan
Hi,
This is Ethan from Intel AE team.
Do you generate the pof file from the CPF(Convert programming file)?
If yes, you can generate the .map file in the same time.
Please check the checksum in the map file with the sum of the data in the flash.
The checksum in the map file is the same as the one shows in programmer.
<< Simle Example of checksum calculation >>
[Data] 0xC0 0xA8 0xFF 0x58
[Checksum] 0xC0 + 0xA8 + 0xFF + 0x58 = 0x2BF
Thanks,
Ethan