Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Converting from COE to MIF or HEX

Does anybody knows if there is a piece of software that converts Xilinx`s memory initialization file format - COE, to Altera`s MIF or at least HEX!

Thanks!

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found one very simple solution for this problem,

    1. Open New Memory Initialization File in Quartus II

    2. Set the memory radix to be same as it is in coe file

    3, Copy the actual contents of the memory from the coe file

    4. Paste it from the begining of the newly opened mif file

    5. Save the file`
    • Mathiazhagan's avatar
      Mathiazhagan
      Icon for Occasional Contributor rankOccasional Contributor

      Hi

      I have done the same way what you have mentioned but am not able to copy and paste am getting a error as "Memory value must be of radix hexadecimal" Could u please help me out how to resolve this issue

      Thanks in Advance

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks, I already found the program you attached to your post, but I need one that converts in oposite direction, i.e from coe to mif or at least to HEX, so it seems that I will have to resort to programming!