Forum Discussion
VMize
New Contributor
8 years agoMemory data misplaced when initializing from .hex file
I`m using Quartus Prime 18.1 Lite, Model Sim 10.5 Starter, and Cyclone IV FPGA. I`ve created a 1-PORT ROM from Basic Functions library, with 256 words of 16 bits. I`m trying to initialize it with fo...
schendel_nsf
New Contributor
8 years agoI am too lazy to try to run your symbolic entry code, but it seems that your hex file is correct, the documentation that I found gives no indication that it should be different. You can find a description of the Intel hex file format in Wikipedia.
However, we have some files where we do it differently:
1. We have only one memory word per hex-file line:
:020000000001FD
:020002000002FA
:020004000003F7
:020006000004F4
:020008000005F1
...
:00000001FF
2. Our hex file has a header line that sets the start Extended segment address. This should not be necessary, but perhaps the tool expects it. So if point 1 does not help, you could try to add it as well:
:020000020000FC