Forum Discussion

aiedb's avatar
aiedb
Icon for Occasional Contributor rankOccasional Contributor
6 months ago

checksum of pof file inside cfm sector

hii i have general question

if i have a pof file after compiling my vhdl design , is the checksum of the pof file get written into the cfm0 sector , and if i want to read the cheksum how can i do it ?

5 Replies

  • FvM's avatar
    FvM
    Icon for Super Contributor rankSuper Contributor
    Hi,
    a .pof file involves different checksum and crc fields. There's an overall crc16 in the two last bytes of the file which is verified when loading the file in programmer. The programmer displays a 32 bit checksum over the total configuration part of the file which may include multiple sectors, e.g. cfm0, cfm1 and ufm for max10, it's apparently only used to distinguish different versions and not stored in the file or verified. Individual sector data may contain additional check fields but they are not documented anywhere as far as I'm aware of. Thus there's no simple way to check configuration data consistency.
  • aiedb's avatar
    aiedb
    Icon for Occasional Contributor rankOccasional Contributor

    hii thanks for reply is the crc16 calculated upon my vhdl design? and deos it get stored in the cfm ?

  • FakhrulA_altera's avatar
    FakhrulA_altera
    Icon for Regular Contributor rankRegular Contributor

    Hi aiedb,


    From my understanding - To answer your question, no, the CRC16 at the end of the .pof isn’t calculated from your VHDL design directly. It’s generated when you build the .pof, mainly for the Quartus programmer to check file integrity during programming. This CRC16 doesn’t get written into the CFM sectors, so you can’t read it from the device later. Basically, it’s just for checking the .pof file itself, not stored inside the FPGA.


    Regards,

    Fakhrul


  • FakhrulA_altera's avatar
    FakhrulA_altera
    Icon for Regular Contributor rankRegular Contributor

    As we haven't received a response to our previous notification, this thread will be transitioned to community support. We hope all your concerns have been addressed. If you have any new questions, please feel free to open a new thread to receive support from Intel experts. Otherwise, community users will continue to assist you here. Thank you.


    • aiedb's avatar
      aiedb
      Icon for Occasional Contributor rankOccasional Contributor

      hii thanks for your reply and help