UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
13,449 Views
Registered: ‎08-31-2010

bit or bin file

In one of the forums i read

"u can download either bit or bin files through JTAG directly to Spartan or other Xilinx FPGA devices"

 

Will both work same. What is use of bin file if bit file is there??

0 Kudos
4 Replies
Teacher eteam00
Teacher
13,444 Views
Registered: ‎07-21-2009

Re: bit or bin file


moonnightingale wrote:

In one of the forums i read

"u can download either bit or bin files through JTAG directly to Spartan or other Xilinx FPGA devices"

Will both work same. What is use of bin file if bit file is there??


The header information in .bit files isn't particularly useful for JTAG configuration, but is useful for programming PROMs (or generating images which will be used for FPGA non-JTAG configuration).  Promgen uses the .bit file as its input source.

 

.bin file is just the configuration data, no header.

 

example (.bin file excerpt first, .bit file with header second):

 

.bin file excerpt
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
00000010 AA 99 55 66 30 A1 00 07 20 00 31 A1 04 30 31 41 ª™Uf0¡.. .1¡.01A
00000020 3D 00 31 61 09 EE 31 C2 04 00 20 93 30 E1 00 CF =.1a.î1Â.. “0á.Ï

.bit file excerpt
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 00 09 0F F0 0F F0 0F F0 0F F0 00 00 01 61 00 32 ...ð.ð.ð.ð...a.2
00000010 73 75 70 65 72 63 68 69 6D 70 2E 6E 63 64 3B 48 superchimp.ncd;H
00000020 57 5F 54 49 4D 45 4F 55 54 3D 46 41 4C 53 45 3B W_TIMEOUT=FALSE;
00000030 55 73 65 72 49 44 3D 30 78 46 46 46 46 46 46 46 UserID=0xFFFFFFF
00000040 46 00 62 00 0D 36 73 6C 78 31 36 63 73 67 33 32 F.b..6slx16csg32
00000050 34 00 63 00 0B 32 30 31 30 2F 31 32 2F 31 30 00 4.c..2010/12/10.
00000060 64 00 09 30 36 3A 35 35 3A 35 39 00 65 00 07 15 d..06:55:59.e...
00000070 44 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF Dÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
00000080 FF AA 99 55 66 30 A1 00 07 20 00 31 A1 04 30 31 ÿª™Uf0¡.. .1¡.01
00000090 41 3D 00 31 61 09 EE 31 C2 04 00 20 93 30 E1 00 A=.1a.î1Â.. “0á.

-- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Xilinx Employee
Xilinx Employee
13,392 Views
Registered: ‎08-10-2008

Re: bit or bin file

bin is usually used in a CPU/MCU configuration.
------------------------------------------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
---------------------------------------------------------------------------------------------------------
Teacher eteam00
Teacher
13,387 Views
Registered: ‎07-21-2009

Re: bit or bin file

bin is usually used in a CPU/MCU configuration.

Agreed.  From UG380 v2.2, Table 5-4:

File Extension     Description

BIT                Binary configuration data file containing header information

                   that does not need to be downloaded to the FPGA. Used to program

                   devices from iMPACT software with a programming cable.

 

BIN                Binary configuration data file with no header information.
                   Similar to BIT file. Can be used for custom configuration
                   solutions (for example, microprocessors), or in some cases to
                   program third-party PROMs.

- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Historian
Historian
13,370 Views
Registered: ‎02-25-2008

Re: bit or bin file

 


eteam00 wrote:

bin is usually used in a CPU/MCU configuration.

Agreed.  From UG380 v2.2, Table 5-4:

File Extension     Description

BIT                Binary configuration data file containing header information

                   that does not need to be downloaded to the FPGA. Used to program

                   devices from iMPACT software with a programming cable.

 

BIN                Binary configuration data file with no header information.
                   Similar to BIT file. Can be used for custom configuration
                   solutions (for example, microprocessors), or in some cases to
                   program third-party PROMs.

- Bob Elkind


 

And I think this explains why my microcontroller-based V4 configuration mechanism isn't working. I'm using the .bit file generated by whichever tool does that, and the FPGA is rejecting that bitstream.

 

Thanks!

----------------------------Yes, I do this for a living.
0 Kudos