]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - tools/rbt2c.pl
3 # This tool converts a Xilinx xxx.rbt FPGA bitstream to a table that will
4 # compile as C source code. The output format is DWORDs, MSB first.
6 print "// Generated by rbt2c.pl, do not edit!\n\n";
15 #include <proxmark3.h>
17 const DWORD FpgaImage[] = {
23 for $b (split(//, $_)) {
31 printf("\t0x%08x,\n", $v);
37 const DWORD FpgaImageLen = sizeof(FpgaImage) / sizeof(FpgaImage[0]);