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: 
Visitor kdua
Visitor
5,389 Views
Registered: ‎04-27-2011

How can I extract LUTs' contents form my bitfile?

Hey guys, I've modified some LUTs in the edif file, now I'm trying to extract all of the LUTs' contents from the bitfile to see if that has worked. All the tools I can find is the JBits SDK, but it only support up to V2, and my device is V2pro xc2vp30. I have to get all the LUT's contents, is there any tools I can use or simple ways to do this, after all it's not my major course. Thanks a lot.
0 Kudos
6 Replies
Advisor eilert
Advisor
5,382 Views
Registered: ‎08-14-2007

Re: How can I extract LUTs' contents form my bitfile?

Hi,

the bitfile format is Xilinx company confidential information.

Over the years many attempts have been made to reengineer this with more or less success.

However, with the growing complexity of the chips this task becomes incredibly more complicated over time.

 

If you want to inspect the correctness of some LUT contents, you can use the fpga-editor (or fpga-edlin, which is scriptable).

 

Another way would be using chipscope. Connect it to your LUT of choice and check the outputs and inputs.

Will be time consuming to do this for many LUTs.

 

 

Besides, do you have doubts that the information from the netlist is not correctly transfered into the bitstream?

If so, why?

 

Have a nice synthesis

  Eilert

0 Kudos
Visitor kdua
Visitor
5,375 Views
Registered: ‎04-27-2011

Re: How can I extract LUTs' contents form my bitfile?

I tried to leave some marks on the netlist, by replacing some LUTs' contents with Equivalent logics. Then I can check out the bitfile to see if this bitfile was generated by me. By comparing bitfiles, I can see the change was made, but just don't know if the marks was really made cos I'm not sure what is inside those LUTs actually.

FPGA editor works with ngc file, but can't deal with bitfile. Or if there's any thing can reverse bitfiles to ngc files?

0 Kudos
Highlighted
Advisor eilert
Advisor
5,350 Views
Registered: ‎08-14-2007

Re: How can I extract LUTs' contents form my bitfile?

Hi,

did I understand it right that you are trying to put some kind of "watermarks" in the bitfile by manipulating the netlist?

What's the point of this?

A bitfile is a very unique thing, so a simple MD5 would show you wether it's your file or not.

 

Also what do you mean with "equivalent logic"? Logic is made from LUTs in general. So creating the equivalent logic for some LUT could only be done by spliting up the logic to more than one LUT, thus having impact on the timing of that path.

 

Yes, the fpga-editor can just visualize netlists, but what more do you need?

Converting a netlist to a bitfile should always create the same result, except for some date/time information bits that may be contained in the bitfile.

So, if you make changes to the netlist, you can check them with the fpga-editor, or you can make the desired changes even simpler from within the fpga-editor.

 

 

So what's your idea of the flow?

1) make a design and test it.

2) manipulate the netlist to leave some "marks"

3) create bitfile containing these "marks"

4) configuring FPGA

  And then...what?

 

What are you trying to acheive with these marks, and how?

Have you spent enough thoughts on your concept?

 

Have a nice synthesis

  Eilert

 

 

 

0 Kudos
Visitor kdua
Visitor
5,337 Views
Registered: ‎04-27-2011

Re: How can I extract LUTs' contents form my bitfile?

Well, you're right. :P

If that works, that means that I can give my netlist to others under my authority, by testing their bitfile I can easily know if others is using this netlist.

It's a concept researsh, and I' jamed-up at this step.
0 Kudos
Teacher rcingham
Teacher
5,317 Views
Registered: ‎09-09-2010

Re: How can I extract LUTs' contents form my bitfile?

If you examine the .BIT file with a hex editor, you will see that there is a date+time-stamp near the top. Some of the other parts of the preamble might have interesting fields you could perhaps manipulate.

But the easiest way to check someone's bitfile to see if it was yours would be with a binary file comparison tool, wouldn't it?


------------------------------------------
"If it don't work in simulation, it won't work on the board."
0 Kudos
Visitor kdua
Visitor
5,238 Views
Registered: ‎04-27-2011

Re: How can I extract LUTs' contents form my bitfile?

I think I've figured out a way to extract all the LUT's contents, directly read from bitfile, but no configuretion data cos it is not in my sight.

 

Now I was wondering is it legal to publish my method?

0 Kudos