Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to convert .txt to .coe file

Status
Not open for further replies.

symlet

Member level 1
Member level 1
Joined
Oct 12, 2012
Messages
41
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,616
Hai all;

I try to do some tutorial about create a ram using coregen in xilinx. I follow the steps listed in the pdf file (I get from google). However, I didn't have the .coe file and I try to create my own .coe file. My question is how to create .coe file? And if possible, how to convert a .txt file to .coe file? Maybe this is a simple question, but I have try to search and try simple tutorial,but I not get the right way. Need helps from expert. Thanks in advance.
 

Attachments

  • CORE.pdf
    1.7 MB · Views: 273

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.
 

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.

Hai rberek,

Can I write the list of memory contents with a simple header in notepad? How to save it by .coe? Or there is any free software to create .coe file? Thanks for reply
 

The special free software you need is a text editor ;-). Just save it as a .coe file. Or rename it to a .coe file after you save it. Either way will work.

r.b.
 
The special free software you need is a text editor ;-). Just save it as a .coe file. Or rename it to a .coe file after you save it. Either way will work.

r.b.

Hai rberek,

Just use text editor to create the .coe file. Thanks for give me the solution
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top