A .coe file is just a list of the memory contents with a simple header.
For example:
Code:
memory_initialization_radix = 2;
memory_initialization_vector =
1111111111111111100000000000001000,
1111111111111111100000000000011001,
1111111111111111100000000000101010,
1111111111111111100000000000111011,
1111111111111111100000000001001011,
1111111111111111100000000000101010,
1111111111111111100000000000111011,
1111111111111111100000000000111011;
If you data is decimal , make the radix 10, and if it is hex, use a radix of 16.
If the amount of data is small, just hand edit your text file. If if is large, you would usually write a Perl script or similar to modify the text file.
r.b.