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 simple convert a hex or mif file to .coe file?

Status
Not open for further replies.

lts85

Newbie level 3
Joined
Apr 13, 2007
Messages
4
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,307
hex to coe convert

How to simple convert a .hex or .mif file from Altera to Xilinx .coe file? Because I need to load a initial file into ROM (From IP Core Generate of ISE).
Do you know any little software?
Please help me!
Thanks so much.
:cry:
 

Hello_world.

Junior Member level 3
Joined
Oct 29, 2006
Messages
30
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Activity points
1,412
mif to coe

Hi Its85
Here is file ..... MAKEXCOE for Hex to Coe with XILINX and MAKEMIF to MIF for altera..... I ever to use makexcoe only... and not yet in makemif

Regards,
 
  • Like
Reactions: bugme and blooz

    blooz

    Points: 2
    Helpful Answer Positive Rating

    bugme

    Points: 2
    Helpful Answer Positive Rating

hnreda

Newbie level 5
Joined
Apr 22, 2003
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
28
hex to coe

i just need it, tks a lot
 

AK51

Newbie level 1
Joined
Feb 16, 2010
Messages
1
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
HK
Activity points
1,287
Re: mif to coe

Hi Its85
Here is file ..... MAKEXCOE for Hex to Coe with XILINX and MAKEMIF to MIF for altera..... I ever to use makexcoe only... and not yet in makemif

Regards,

Hi, I just tried your MAKEXCOE
I create a memory file (32 x 16 bits) mif in Altera Quartus, and then, save as hex in Quartus.
The looks is this
:02000000FFFA05
:02000100406459
:02000200905517
...
Data is FFFA,4064,9055,...
After I ran your program makexcoe xxx.hex
the coe looks like this
MEMORY_INITIALIZATION_RADIX=16;
MEMORY_INITIALIZATION_VECTOR=
6440,
22D,
BFB0,
...

It doesn't look right. Any comment? Or I did anything wrong? Thx
 

Attachments

  • TXMIXER0.rar
    1.2 KB · Views: 34

    V

    Points: 2
    Helpful Answer Positive Rating

Dayn

Newbie level 4
Joined
Feb 16, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
Re: mif to coe

I have a question next to your request !!

Is there any solution to convert .bit to .coe file ?

I have to initialise a single port RAM (create with Block Memory Generator) with a bitstream in a FPGA virtex5 (Xilinx)
So, I'm looking for any soft to convert my .bit file.

I try to convert it to .hex file with BIN2HEX.EXE available here :

File Utilities

And try to convert .hex file to .coe. with MAKEXCOE available here :

http://www.edaboard.com/threads/126942/

But the file is huge and the out file is fail (write 000000....). :sad:


Do you know any others solution, please ?

Best Regards

Dayn
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top