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: 
Highlighted
Adventurer
Adventurer
546 Views
Registered: ‎05-16-2014

Vivado: How to generate a .bin file

Jump to solution

I have a non-project mode TCL script.

I generate a .BIT file using the following"

write_bitstream -force $projectDir/bitstream/basedesign.bit

I then generate a .MCS file using:

write_cfgmem -format mcs \
             -interface bpix16 \
             -size 128 \
             -loadbit "up 0x0 $projectDir/bitstream/basedesign.bit" \
             -file $projectDir/bitstream/basedesign.mcs

Both works good.

Now, I would like to generate a .BIN file. (It's a bit file without the header.)

How? I cannot find in the literature where it explicity tells one how. All the forums

talk about ISE. This is Vivado not ISE.

Is there an option for write_bitstream? I haven't read about it.

 

Thanks,

Swimteam

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
540 Views
Registered: ‎06-05-2013

Re: Vivado: How to generate a .bin file

Jump to solution

Yes. You can use write_bitstream -bin_file else you can set that option in bitstream settings. Here is the snapshot: 

 

binn.JPG

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
2 Replies
Moderator
Moderator
541 Views
Registered: ‎06-05-2013

Re: Vivado: How to generate a .bin file

Jump to solution

Yes. You can use write_bitstream -bin_file else you can set that option in bitstream settings. Here is the snapshot: 

 

binn.JPG

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
504 Views
Registered: ‎05-16-2014

Re: Vivado: How to generate a .bin file

Jump to solution

Thanks. I apparently missed that option reading ug835 (v 2012.4) Dec 18, 2012.

 

I also found that the syntax cannot include the extension like .bit or .bin. The tool complains. Also found that you have to use the -force option or else the tool complains.

But it works. Syntax I used was the following:

write_bitstream -force -bin_file $projectDir/basedesign

 

0 Kudos