fpganow / LabVIEW_Scripts

Scripts to Change Bitstream Files in lvbitx
8 stars 0 forks source link

Parse Bitstream to strip off header properly #2

Closed JohnStratoudakis closed 5 years ago

JohnStratoudakis commented 5 years ago

It appears to me that the bitstream header is a variable length specification and that always selecting offset 0xa8 will at some point fail.

Here are a few links: (Some more fun to read and not necessary required)

https://groups.google.com/forum/#!topic/comp.arch.fpga/8X3qFMFZjjc http://www.fpga-faq.com/FAQ_Pages/0026_Tell_me_about_bit_files.htm

https://github.com/wkoszek/libxbf/blob/master/xbf.c https://www.kc8apf.net/2018/05/unpacking-xilinx-7-series-bitstreams-part-1/

JohnStratoudakis commented 5 years ago

This was fixed in PR#1 https://github.com/fpganow/LabVIEW_Scripts/pull/3