Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Super Contributor
rikusleroux
Posts: 112
Registered: ‎05-21-2009
0

Converting a bit-file to .coe for BRAM

[ Edited ]

Hi guys,

 

Sorry, I apologize. I posted this elsewhere in the forums, but it would seem like this section is more suitable for this type of question. I posted it under "Design Tools" since I figured that the question is more aimed towards the tools.

 

As the subject line indicates, I want to convert a bit-file into a coe file to initialize BRAM with the bitstream. I found a similar question at http://forums.xilinx.com/t5/System-Logic/How-to-convert-bit-to-coe-file/td-p/165696 , but the solution is inconclusive. Unless there is a better approach, I was thinking of following a similar approach to convert my .bit file into a .coe (.bit -> .hex -> .coe) , but I'm not going to use the bin2hex.exe program he referred to. Instead I'll be using iMPACT. (As a side note,  I see that the bin2hex.exe tool referenced is actually for an 8051 microprocessor. Can this still be used to convert the FPGA .bit file to a hex?)

 

In iMPACT (I'm using 13.3), I select create PROM file, but what is the most suitable storage target so select? I see most targets allow the option of creating the .hex file. I was thinking of selecting the Generic Parallel PROM, but maybe the Xilinx Flash/PROM is better? Does this even matter? I was assuming it did.

 

Can anyone provide some insight towards my methodology? Will this work? Is there a better way to convert a .bit to .coe? If not, will I be able to use iMPACT to convert my .bit to .hex and then to use MAKEXCOE to convert the .hex to .coe?

 

Thanks in advance!

Visitor
jjsmitre
Posts: 4
Registered: ‎05-22-2012
0

Re: Converting a bit-file to .coe for BRAM

I am trying to do the samething you describe.  Did you have any success?