Skip to content

Instantly share code, notes, and snippets.

@warmonkey
warmonkey / Xilinx_bit_file_explained.txt
Last active March 5, 2023 09:33
Internal structure of Xilinx bitstream (.bit) file
The Xilinx .bit format is pretty simple. It uses keys and lengths to
divide the file.
Parser source code: https://gist.github.com/warmonkey/49dd574fda39f88b5eed5edc92707cf2
Here is an example. Below is a hex dump from the beginning of a .bit file:
00000000: 00 09 0f f0 0f f0 0f f0 0f f0 00 00 01 61 00 0a .............a..
00000010: 78 66 6f 72 6d 2e 6e 63 64 00 62 00 0c 76 31 30 xform.ncd.b..v10
00000020: 30 30 65 66 67 38 36 30 00 63 00 0b 32 30 30 31 00efg860.c..2001