Coregen Memory Initialization (.coe file format)

Oct 21, 2005 0 Replies

Hi, I am trying to use Coregen to generate a single port memory with its content initialized. I defined a memory with depth 16 and width 8. In the options, I chose the following .coe file to initialize the contents:



-----------------------------code starts-------------------------------



; This .COE file specifies initialization values for a



; block memory of depth=16, and width=8. In this case,



; values are specified in hexadecimal format.



memory_initialization_radix=16;



memory_initialization_vector=



ff,



ab,



f0,


11,


11,


00,


01,



aa,



bb,



cc,



dd,



ef,



ee,



ff,


00,

ff;


---------- code ends --------------



When I tried to generate this code, the following error occurs:



ERROR: sim - Invalid commmand: CSET coefficient_file = C:\Coregen Memory\data_new.coe WARNING:encore - Error whilst reading C:\Coregen Memory\rob_memory.xco


I don't know what's wrong with this. Any help would be appreciated.



Robert.



Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required