- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to convert .bit to .coe file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-20-2011 01:14 AM
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 :
How to simple convert a hex or mif file to .coe file?
But the file is huge and the out file is fail (write 000000....).
Do you know any others solution, please ?
Best Regards
Dayn
Re: How to convert .bit to .coe file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-20-2011 07:19 AM
Looking at the COE syntax from http://www.xilinx.com/support/documentation/sw_man
------------------------------------------
"If it don't work in simulation, it won't work on the board."
Re: How to convert .bit to .coe file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-20-2011 02:32 PM
Use an rbt or bin file (output from bitgen), this will make your life easier. PROMGen is also a useful tool for converting to different formats. Is your goal here to store an entire FPGA image in BRAM or something? There are probably easier ways to do this, although I don't really know exactly what you are trying to do.
Re: How to convert .bit to .coe file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-21-2011 03:06 AM
Thanks for your reply.
The BIT is produced by PlanAhead using Configuration Partial. This BIT is a Partial Module.
The .hex file size create with .bit file is 169Ko (2247 lines). The .bit file size is 71Ko.
I have to make 4 Partial Modules with approximatly the same size.
So, perhaps I can try to hand edit my CEO but here my .hex file is look like:
:2000000000090FF00FF00FF00FF0000001610026636F6E666
:200020006E63643B5573657249443D3078464646464646464
:20004000746666313733380063000B323031312F30372F323
:2000600034006500011854FFFFFFFFFFFFFFFFFFFFFFFFFFF
:20008000FFFFFFFFFFFFFF000000BB11220044FFFFFFFFFFF
:2000A00000800100000007200000002000000030018001033
:2000C00000000030002001001186802000000030004000500
:2000E0000000000000000000000000000000E000000000000
:2001000000000000000000000000000000000000000000000
:2001200000000000000000000008830000000000000000000
:2001400000000000000000000000000000000000000000000
:2001600000000000000000000000000000000000000000000
:2001800000000000000000000000000000000000000000000
...
And I have to make COE file with 8, 16 or 32 bits size by line like (example) :
MEMORY_INITIALIZATION_RADIX=16;
MEMORY_INITIALIZATION_VECTOR=
1,
54F5A98E,
F45B7440,
45883201,
54786E12,
....
I show you the first line hex file transform:
HEX file:
:2000000000090FF00FF00FF00FF0000001610026636F6E666
:20000000 00090FF00FF00FF00FF0000001610026636F6E6669675F335F
data = 00090FF00FF00FF00FF0000001610026636F6E6669675F335F
to a COE file :
MEMORY_INITIALIZATION_RADIX=16;
MEMORY_INITIALIZATION_VECTOR=
00090FF00FF00FF00FF0000001610026636F6E6669675F335F
...
Is it true ?
In my mind it's hard to hand edit CEO file like that
Is there any solution to make it more easily ?
Best Regards
Dayn
Re: How to convert .bit to .coe file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-21-2011 03:12 AM
thanks for your reply
I want to test Reconfiguration Partial.
I try to save 4 bitstreams in each 4 memory in the FPGA (Virtex5).
Those memory are link to ICAP interface.
Memry and ICAP are controlled by FSM.
I think everything you need to know is in my preview reply (.bit size ...).
Don't hesitate, if you are more request about what I want to do !!
Re: How to convert .bit to .coe file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-02-2011 06:08 AM
Please any one can tell me how to convert .bit file into .hex file and also .bit to text file
How to convert .bit to .C format
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-02-2011 06:31 AM
Hi,
The .bit file which is generated from Xilinx ISE, I wanna convert .bit into .c format for the source code. Does any one have the idea how to do this.
Waiting for the reply,
Thanks in advance
Re: How to convert .bit to .coe file
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-02-2011 08:50 AM - edited 08-02-2011 10:02 PM
What do you hope to achieve by converting the BIT file to each of these formats (HEX, TXT, C)?
Have you tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
Re: How to convert .bit to .C format
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-09-2011 03:13 PM - edited 08-09-2011 03:14 PM
srineshthakur wrote:
Hi,
The .bit file which is generated from Xilinx ISE, I wanna convert .bit into .c format for the source code. Does any one have the idea how to do this.
Waiting for the reply,
Thanks in advance
This is probably what you are looking for: http://www.xilinx.com/tools/autoesl.htm. Or actually this sounds like the opposite of what you want to do....
Re: How to convert .bit to .C format
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-20-2012 03:40 AM - edited 02-20-2012 03:41 AM
Hi guys,
Sorry to revive such an old post. I just want to find out if this issue was resolved.
dayn, did you manage to convert the file? If so, how did you do it?











